|
fop 0.95 | ||||||||||
| 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.EnumNumber
A number quantity in XSL which is specified as an enum, such as "no-limit".
| Field Summary |
| Fields inherited from class org.apache.fop.fo.properties.Property |
log |
| Method Summary | |
boolean |
equals(java.lang.Object obj)
|
int |
getDimension()
Return the dimension of this numeric. Plain numbers has a dimension of 0 and length has a dimension of 1. Other dimension can occur as a result of multiplications and divisions. |
int |
getEnum()
This method expects to be overridden by subclasses |
static EnumNumber |
getInstance(Property enumProperty)
Returns the canonical EnumNumber instance corresponding to the given Property |
Numeric |
getNumeric()
This method expects to be overridden by subclasses |
double |
getNumericValue()
Return the value of this Numeric logs an error, because it's not supposed to be called |
double |
getNumericValue(PercentBaseContext context)
Return the value of this Numeric logs an error, because it's not supposed to be called |
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 value of this numeric as an int. logs an error, because it's not supposed to be called |
int |
getValue(PercentBaseContext context)
Returns the value of this numeric as an int. logs an error, because it's not supposed to be called |
int |
hashCode()
|
boolean |
isAbsolute()
Return true if the numeric is an absolute value. Relative values are percentages and table-column-units. All other numerics are absolute. Always true for instances of this type |
| Methods inherited from class org.apache.fop.fo.properties.Property |
getCharacter, getColor, getCondLength, getKeep, getLength, getLengthPair, getLengthRange, getList, getNCname, getNumber, getSpace, getSpecifiedValue, isAuto, setSpecifiedValue, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
public static EnumNumber getInstance(Property enumProperty)
enumProperty - the base EnumProperty
public int getEnum()
getEnum in interface NumericgetEnum in class Propertypublic java.lang.String getString()
getString in class Propertypublic java.lang.Object getObject()
getObject in class Propertypublic boolean equals(java.lang.Object obj)
public int hashCode()
public int getDimension()
getDimension in interface Numericpublic boolean isAbsolute()
true for instances of this type
isAbsolute in interface Numeric
public double getNumericValue(PercentBaseContext context)
throws PropertyException
getNumericValue in interface Numericcontext - The context for the length calculation (for percentage based lengths)
PropertyExceptionpublic int getValue(PercentBaseContext context)
getValue in interface Numericcontext - the context for the length calculation (for percentage based lengths)
public int getValue()
getValue in interface Numericpublic double getNumericValue()
getNumericValue in interface Numericpublic Numeric getNumeric()
getNumeric in class Property
|
fop 0.95 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||