|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PropertyValue
Interface for all XSL-FO property values.
| Method Summary | |
|---|---|
boolean |
canEvalColor()
Indicates whether this property value has the ability to express itself as a Color. |
boolean |
canEvalInteger()
Indicates whether this property value has the ability to express itself as an integer Numeric item. |
boolean |
canEvalKeyword()
Indicates whether this property value can evaluate to a keyword. |
boolean |
canEvalLength()
Indicates whether this expression can be evaluated to a unit power = 1 (length) or not. |
boolean |
canEvalNumeric()
Indicates whether this property value has the ability to express itself as a Numeric item. |
boolean |
canEvalPercentage()
Indicates whether this property value can evaluate to a percentage. |
Color |
evalColor()
Return the color value of "this". |
int |
evalInteger()
Return this value as an int. |
PvKeyword |
evalKeyword()
Returns the keyword value of this property value. |
int |
evalLength(int fontSize)
Evaluates the expression to a unit power of 1 (length). |
double |
evalNumeric()
Return the raw numeric value of "this", without regard to unit power. |
float |
evalPercentage()
Returns the percentage value of this property value. |
byte |
getUnitPower()
Each numeric has a "unit power". |
boolean |
lengthRequiresFontSize()
Indicates whether the computation of the length will require an accurate font-size parameter. |
| Method Detail |
|---|
boolean canEvalNumeric()
double evalNumeric()
boolean canEvalInteger()
int evalInteger()
canEvalInteger() returns true.
Doing so on other instances may result in an
IllegalStateException.
byte getUnitPower()
Expr.UNIT_POWER_NUMERIC or Expr.UNIT_POWER_LENGTH.boolean canEvalLength()
int evalLength(int fontSize)
fontSize - The point size, in millipoints, of the font.
This is used in calculations that are relative to the point size.
In cases where the computation of the font-size is expensive, check
lengthRequiresFontSize() first.
If that method returns false, zero or some other constant can safely
be passed, as it will be ignored anyway.
Integer.MIN_VALUE otherwise.
The value is expressed in millipoints.boolean lengthRequiresFontSize()
boolean canEvalPercentage()
float evalPercentage()
canEvalPercentage() returns true.
Doing so on other instances may result in an
IllegalStateException.
boolean canEvalColor()
Color evalColor()
boolean canEvalKeyword()
PvKeyword evalKeyword()
canEvalKeyword() returns true.
Doing so on other instances may result in an
IllegalStateException.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||