|
fop 0.92beta | ||||||||||
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.NumberProperty
Class for handling numeric properties
Nested Class Summary | |
static class |
NumberProperty.Maker
Inner class for making NumberProperty objects |
Field Summary |
Fields inherited from class org.apache.fop.fo.properties.Property |
log |
Constructor Summary | |
NumberProperty(double num)
Constructor for double input |
|
NumberProperty(int num)
Constructor for integer input |
|
NumberProperty(java.lang.Number num)
Constructor for Number input |
Method Summary | |
ColorTypeProperty |
getColorType()
Convert NumberProperty to a ColorType. |
int |
getDimension()
Plain number always has a dimension of 0. |
java.lang.Number |
getNumber()
This method expects to be overridden by subclasses |
Numeric |
getNumeric()
Convert NumberProperty to Numeric object |
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 |
int |
getValue()
Returns the value of this numeric as an int. |
int |
getValue(PercentBaseContext context)
Return the value |
boolean |
isAbsolute()
Return true because all numbers are absolute. |
Methods inherited from class org.apache.fop.fo.properties.Property |
getCharacter, getCondLength, getEnum, getKeep, getLength, getLengthPair, getLengthRange, getList, getNCname, getSpace, getSpecifiedValue, getString, isAuto, setSpecifiedValue, toString |
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 |
public NumberProperty(java.lang.Number num)
num
- Number object value for propertypublic NumberProperty(double num)
num
- double numeric value for propertypublic NumberProperty(int num)
num
- integer numeric value for propertyMethod Detail |
public int getDimension()
getDimension
in interface Numeric
Numeric.getDimension()
public double getNumericValue()
getNumericValue
in interface Numeric
Numeric.getNumericValue()
public double getNumericValue(PercentBaseContext context)
getNumericValue
in interface Numeric
context
- Evaluation context
Numeric.getNumericValue(PercentBaseContext)
public int getValue()
Numeric
getValue
in interface Numeric
public int getValue(PercentBaseContext context)
getValue
in interface Numeric
context
- Evaluation context
Numeric.getValue(PercentBaseContext)
public boolean isAbsolute()
isAbsolute
in interface Numeric
Numeric.isAbsolute()
public java.lang.Number getNumber()
Property
getNumber
in class Property
public java.lang.Object getObject()
Property
getObject
in class Property
public Numeric getNumeric()
getNumeric
in class Property
public ColorTypeProperty getColorType()
getColorType
in class Property
|
fop 0.92beta | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |