|
fop 0.93 | ||||||||||
| 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.expr.NumericProperty
A numeric property which hold the final absolute result of an expression calculations.
| Field Summary |
| Fields inherited from class org.apache.fop.fo.properties.Property |
log |
| Constructor Summary | |
protected |
NumericProperty(double value,
int dim)
Construct a Numeric object by specifying one or more components, including absolute length, percent length, table units. |
| Method Summary | |
java.awt.Color |
getColor(FOUserAgent foUserAgent)
This method expects to be overridden by subclasses |
int |
getDimension()
Return the dimension. |
Length |
getLength()
This method expects to be overridden by subclasses |
java.lang.Number |
getNumber()
This method expects to be overridden by subclasses |
Numeric |
getNumeric()
This method expects to be overridden by subclasses |
double |
getNumericValue()
Return the value. |
double |
getNumericValue(PercentBaseContext context)
Return the value of this Numeric |
java.lang.Object |
getObject()
This method expects to be overridden by subclasses |
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 of the numeric is absolute. |
java.lang.String |
toString()
|
| Methods inherited from class org.apache.fop.fo.properties.Property |
getCharacter, getCondLength, getEnum, getKeep, getLengthPair, getLengthRange, getList, getNCname, getSpace, getSpecifiedValue, getString, isAuto, setSpecifiedValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.fop.datatypes.Numeric |
getEnum |
| Constructor Detail |
protected NumericProperty(double value,
int dim)
value - The value of the numeric.dim - The dimension of the value. 0 for a Number, 1 for a Length
(any type), >1, <0 if Lengths have been multiplied or divided.| Method Detail |
public int getDimension()
getDimension in interface NumericNumeric.getDimension()public double getNumericValue()
getNumericValue in interface NumericNumeric.getNumericValue()public double getNumericValue(PercentBaseContext context)
Numeric
getNumericValue in interface Numericcontext - The context for the length calculation (for percentage based lengths)
Numeric.getNumericValue(PercentBaseContext)public boolean isAbsolute()
isAbsolute in interface NumericNumeric.isAbsolute()public Numeric getNumeric()
Property
getNumeric in class PropertyProperty.getNumeric()public java.lang.Number getNumber()
Property
getNumber in class PropertyProperty.getNumber()public int getValue()
Numeric
getValue in interface NumericNumeric.getValue()public int getValue(PercentBaseContext context)
Numeric
getValue in interface Numericcontext - the context for the length calculation (for percentage based lengths)
Numeric.getValue(PercentBaseContext)public Length getLength()
Property
getLength in class PropertyProperty.getLength()public java.awt.Color getColor(FOUserAgent foUserAgent)
Property
getColor in class PropertyfoUserAgent - FOP user agent
Property.getColor(FOUserAgent)public java.lang.Object getObject()
Property
getObject in class PropertyProperty.getObject()public java.lang.String toString()
toString in class PropertyObject.toString()
|
fop 0.93 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||