org.apache.fop.datatypes
Class Length
- Direct Known Subclasses:
- CondLength, MixedLength, PercentLength
- public class Length
a length quantity in XSL
Constructor Summary |
Length(double numRelUnits, int iCurFontSize) Set the length given a number of relative units and the current
font size in base units. |
Length(double numUnits, String units) Set the length given a number of units and a unit name. |
Length(int baseUnits) set the length as a number of base units |
Method Summary |
double | getTableUnits() Return the number of table units which are included in this
length specification. |
boolean | isAuto() |
int | mvalue() return the length in 1/1000ths of a point |
String | toString() |
AUTO
public final static Length AUTO
Length
public Length(double numRelUnits, int iCurFontSize)
- Set the length given a number of relative units and the current
font size in base units.
Length
public Length(double numUnits, String units)
- Set the length given a number of units and a unit name.
Length
public Length(int baseUnits)
- set the length as a number of base units
getTableUnits
public double getTableUnits()
- Return the number of table units which are included in this
length specification.
This will always be 0 unless the property specification used
the proportional-column-width() function (only only table
column FOs).
If this value is not 0, the actual value of the Length cannot
be known without looking at all of the columns in the table to
determine the value of a "table-unit".
- Returns: The number of table units which are included in this
length specification.
isAuto
public boolean isAuto()
mvalue
public int mvalue()
- return the length in 1/1000ths of a point
toString
public String toString()
to Class org.apache.fop.datatypes.Length