|
fop 0.94 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.fo.properties.Property
org.apache.fop.fo.properties.LengthProperty
org.apache.fop.fo.properties.FixedLength
public class FixedLength
An absolute length quantity in XSL
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.fop.fo.properties.LengthProperty |
---|
LengthProperty.Maker |
Field Summary |
---|
Fields inherited from class org.apache.fop.fo.properties.Property |
---|
log |
Constructor Summary | |
---|---|
FixedLength(int baseUnits)
|
Method Summary | |
---|---|
protected void |
convert(double dvalue,
java.lang.String unit)
Convert the given length to a dimensionless integer representing a whole number of base units (milli-points). |
boolean |
equals(java.lang.Object obj)
|
static FixedLength |
getInstance(double numUnits,
java.lang.String units)
Return the canonical FixedLength instance corresponding to the computed value |
double |
getNumericValue()
Return the value of this Numeric |
double |
getNumericValue(PercentBaseContext context)
Return the value of this Numeric |
int |
getValue()
Returns the length in 1/1000ths of a point (millipoints) |
int |
getValue(PercentBaseContext context)
Returns the length in 1/1000ths of a point (millipoints) |
int |
hashCode()
|
boolean |
isAbsolute()
Return true since FixedLength are always absolute. |
java.lang.String |
toString()
|
Methods inherited from class org.apache.fop.fo.properties.LengthProperty |
---|
getDimension, getLength, getNumeric, getObject, getTableUnits |
Methods inherited from class org.apache.fop.fo.properties.Property |
---|
getCharacter, getColor, getCondLength, getEnum, getKeep, getLengthPair, getLengthRange, getList, getNCname, getNumber, getSpace, getSpecifiedValue, getString, isAuto, setSpecifiedValue |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.fop.datatypes.Numeric |
---|
getEnum |
Constructor Detail |
---|
public FixedLength(int baseUnits)
baseUnits
- the length as a number of base units (millipoints)Method Detail |
---|
public static FixedLength getInstance(double numUnits, java.lang.String units)
numUnits
- input unitsunits
- unit specifier
protected void convert(double dvalue, java.lang.String unit)
dvalue
- quantity of input unitsunit
- input unit specifier (in, cm, etc.)public int getValue()
Length
Numeric.getValue()
public int getValue(PercentBaseContext context)
Length
context
- The context for the length calculation (for percentage based lengths)
Numeric.getValue(PercentBaseContext)
public double getNumericValue()
Numeric
Numeric.getNumericValue()
public double getNumericValue(PercentBaseContext context)
Numeric
context
- The context for the length calculation (for percentage based lengths)
Numeric.getNumericValue(PercentBaseContext)
public boolean isAbsolute()
Numeric.isAbsolute()
public java.lang.String toString()
toString
in class Property
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
|
fop 0.94 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |