|
fop 0.95 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for classes that can participate in numeric operations. All the numeric operation (+, -, *, ...) are expressed in terms of this Numeric interface. Numerics has a value (getNumericValue) and a dimension (getDimension). Numerics can be either absolute or relative. Relative numerics must be resolved against base value before the value can be used.
To support relative numerics internally in the expresion parser and during evaulation one additional methods exists: isAbsolute() which return true for absolute numerics and false for relative numerics.
Method Summary | |
int |
getDimension()
Return the dimension of this numeric. |
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 |
int |
getValue()
Returns the value of this numeric as an int. |
int |
getValue(PercentBaseContext context)
Returns the value of this numeric as an int. |
boolean |
isAbsolute()
Return true if the numeric is an absolute value. |
Method Detail |
public double getNumericValue() throws PropertyException
PropertyException
public double getNumericValue(PercentBaseContext context) throws PropertyException
context
- The context for the length calculation (for percentage based lengths)
PropertyException
public int getDimension()
public boolean isAbsolute()
public int getValue()
public int getValue(PercentBaseContext context)
context
- the context for the length calculation (for percentage based lengths)
public int getEnum()
|
fop 0.95 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |