|
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.properties.LengthProperty
org.apache.fop.fo.properties.FixedLength
An absolute length quantity in XSL
| Nested Class Summary |
| Nested classes inherited from class org.apache.fop.fo.properties.LengthProperty |
LengthProperty.Maker |
| Field Summary |
| Fields inherited from class org.apache.fop.fo.properties.Property |
log |
| Constructor Summary | |
FixedLength(double numRelUnits,
int iCurFontSize)
Set the length given |
|
FixedLength(double numUnits,
java.lang.String units)
Set the length given a number of units and a unit name. |
|
FixedLength(int baseUnits)
|
|
| Method Summary | |
protected void |
convert(double dvalue,
java.lang.String unit)
Convert the given length to a dimensionless integer representing a whole number of base units (milli-points). |
double |
getNumericValue()
Return the value of this Numeric |
double |
getNumericValue(PercentBaseContext context)
Return the value of this Numeric |
int |
getValue()
Returns the length in 1/1000ths of a point (millipoints) |
int |
getValue(PercentBaseContext context)
Returns the length in 1/1000ths of a point (millipoints) |
boolean |
isAbsolute()
Return true since FixedLength are always absolute. |
java.lang.String |
toString()
|
| Methods inherited from class org.apache.fop.fo.properties.LengthProperty |
getDimension, getLength, getNumeric, getObject, getTableUnits |
| Methods inherited from class org.apache.fop.fo.properties.Property |
getCharacter, getColor, getCondLength, getEnum, getKeep, getLengthPair, getLengthRange, getList, getNCname, getNumber, 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 |
public FixedLength(double numRelUnits,
int iCurFontSize)
numRelUnits - the number of relative unitsiCurFontSize - the current font size in base units.
public FixedLength(double numUnits,
java.lang.String units)
numUnits - quantity of input unitsunits - input unit specifier (in, cm, etc.)public FixedLength(int baseUnits)
baseUnits - the length as a number of base units (millipoints)| Method Detail |
protected void convert(double dvalue,
java.lang.String unit)
dvalue - quantity of input unitsunit - input unit specifier (in, cm, etc.)public int getValue()
Length
Numeric.getValue()public int getValue(PercentBaseContext context)
Length
context - The context for the length calculation (for percentage based lengths)
Numeric.getValue(PercentBaseContext)public double getNumericValue()
Numeric
Numeric.getNumericValue()public double getNumericValue(PercentBaseContext context)
Numeric
context - The context for the length calculation (for percentage based lengths)
Numeric.getNumericValue(PercentBaseContext)public boolean isAbsolute()
Numeric.isAbsolute()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 | ||||||||||