Class EnumLength
java.lang.Object
org.apache.fop.fo.properties.Property
org.apache.fop.fo.properties.LengthProperty
org.apache.fop.fo.properties.EnumLength
A length quantity in XSL which is specified as an enum, such as "auto"
-
Nested Class Summary
Nested classes/interfaces inherited from class LengthProperty
LengthProperty.Maker -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEnumLength(Property enumProperty) Construct an enumerated length from an enum property. -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetEnum()This method expects to be overridden by subclassesdoubleReturn the value of this NumericdoublegetNumericValue(PercentBaseContext context) Return the value of this NumericThis method expects to be overridden by subclassesThis method expects to be overridden by subclasses.intgetValue()Returns the length in 1/1000ths of a point (millipoints)intgetValue(PercentBaseContext context) Returns the length in 1/1000ths of a point (millipoints)inthashCode()booleanReturn true if the numeric is an absolute value.Methods inherited from class LengthProperty
getDimension, getLength, getNumericMethods inherited from class Property
getCharacter, getColor, getCondLength, getKeep, getLengthPair, getLengthRange, getList, getNCname, getNumber, getSpace, getSpecifiedValue, isAuto, setSpecifiedValue, toString
-
Field Details
-
enumProperty
-
-
Constructor Details
-
EnumLength
Construct an enumerated length from an enum property.- Parameters:
enumProperty- the enumeration property
-
-
Method Details
-
getEnum
-
isAbsolute
public boolean isAbsolute()Description copied from interface:NumericReturn true if the numeric is an absolute value. Relative values are percentages and table-column-units. All other numerics are absolute.- Returns:
- true if absolute
-
getValue
public int getValue()Returns the length in 1/1000ths of a point (millipoints)- Returns:
- the length in millipoints
-
getValue
Returns the length in 1/1000ths of a point (millipoints)- Parameters:
context- The context for the length calculation (for percentage based lengths)- Returns:
- the length in millipoints
-
getNumericValue
public double getNumericValue()Return the value of this Numeric- Returns:
- the computed value.
-
getNumericValue
Return the value of this Numeric- Parameters:
context- The context for the length calculation (for percentage based lengths)- Returns:
- the computed value.
-
getString
-
getObject
This method expects to be overridden by subclasses- Overrides:
getObjectin classLengthProperty- Returns:
- this.length cast as an Object
-
hashCode
-
equals
-