|
fop 0.90alpha1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.fop.fo.properties.Property | +--org.apache.fop.fo.expr.NumericProperty
A numeric property which hold the final absolute result of an expression calculations.
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 | |
ColorTypeProperty |
getColorType()
Cast this as a ColorTypeProperty. |
int |
getDimension()
Return the dimension. |
Length |
getLength()
Cast this as a length. |
java.lang.Number |
getNumber()
Cast this as a number. |
Numeric |
getNumeric()
Cast this as a Numeric. |
double |
getNumericValue()
Return the value. |
double |
getNumericValue(PercentBaseContext context)
Return the value of this Numeric |
java.lang.Object |
getObject()
Cast this as an Object. |
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()
Return a string representation of this Numeric. |
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 Numeric
Numeric.getDimension()
public double getNumericValue()
getNumericValue
in interface Numeric
Numeric.getNumericValue()
public double getNumericValue(PercentBaseContext context)
Numeric
getNumericValue
in interface Numeric
Numeric.getNumericValue(PercentBaseContext)
public boolean isAbsolute()
isAbsolute
in interface Numeric
Numeric.isAbsolute()
public Numeric getNumeric()
getNumeric
in class Property
org.apache.fop.fo.properties.Property
public java.lang.Number getNumber()
getNumber
in class Property
org.apache.fop.fo.properties.Property
public int getValue()
Numeric
getValue
in interface Numeric
Numeric.getValue()
public int getValue(PercentBaseContext context)
Numeric
getValue
in interface Numeric
Numeric.getValue(PercentBaseContext)
public Length getLength()
getLength
in class Property
org.apache.fop.fo.properties.Property
public ColorTypeProperty getColorType()
getColorType
in class Property
org.apache.fop.fo.properties.Property
public java.lang.Object getObject()
getObject
in class Property
org.apache.fop.fo.properties.Property
public java.lang.String toString()
toString
in class Property
org.apache.fop.fo.properties.Property
Object.toString()
|
fop 0.90alpha1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |