org.apache.fop.fo.properties
Class EnumLength
java.lang.Object
|
+--org.apache.fop.fo.properties.Property
|
+--org.apache.fop.fo.properties.LengthProperty
|
+--org.apache.fop.fo.properties.EnumLength
- All Implemented Interfaces:
- Length, Numeric
- public class EnumLength
- extends LengthProperty
A length quantity in XSL which is specified as an enum, such as "auto"
Fields inherited from class org.apache.fop.fo.properties.Property |
log |
Method Summary |
int |
getEnum()
Return the enum value that is stored in this numeric. |
double |
getNumericValue()
Return the value of this Numeric |
double |
getNumericValue(PercentBaseContext context)
Return the value of this Numeric |
java.lang.Object |
getObject()
This method expects to be overridden by subclasses |
java.lang.String |
getString()
This method expects to be overridden by subclasses. |
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) |
boolean |
isAbsolute()
Return true if the numeric is an absolute value. |
Methods inherited from class org.apache.fop.fo.properties.Property |
getCharacter, getColor, getCondLength, getKeep, getLengthPair, getLengthRange, getList, getNCname, getNumber, getSpace, getSpecifiedValue, isAuto, setSpecifiedValue, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EnumLength
public EnumLength(Property enumProperty)
getEnum
public int getEnum()
- Description copied from interface:
Numeric
- Return the enum value that is stored in this numeric.
- Overrides:
getEnum
in class Property
- See Also:
Numeric.getEnum()
isAbsolute
public boolean isAbsolute()
- Description copied from interface:
Numeric
- Return true if the numeric is an absolute value. Relative values are
percentages and table-column-units. All other numerics are absolute.
- Following copied from interface:
org.apache.fop.datatypes.Numeric
- Returns:
- true when the numeric is absolute.
getValue
public int getValue()
- Description copied from interface:
Length
- Returns the length in 1/1000ths of a point (millipoints)
- See Also:
Numeric.getValue()
getValue
public int getValue(PercentBaseContext context)
- Description copied from interface:
Length
- Returns the length in 1/1000ths of a point (millipoints)
- See Also:
Numeric.getValue(PercentBaseContext)
getNumericValue
public double getNumericValue()
- Description copied from interface:
Numeric
- Return the value of this Numeric
- See Also:
Numeric.getNumericValue()
getNumericValue
public double getNumericValue(PercentBaseContext context)
- Description copied from interface:
Numeric
- Return the value of this Numeric
- See Also:
Numeric.getNumericValue()
getString
public java.lang.String getString()
- Description copied from class:
Property
- This method expects to be overridden by subclasses.
- Overrides:
getString
in class Property
- See Also:
Property.getString()
getObject
public java.lang.Object getObject()
- Description copied from class:
Property
- This method expects to be overridden by subclasses
- Overrides:
getObject
in class LengthProperty
- See Also:
Property.getString()
Copyright 1999-2006 The Apache Software Foundation. All Rights Reserved.