org.apache.fop.fo.properties
Class FixedLength
- Length, Numeric
An absolute length quantity in XSL
getCharacter , getColor , getCondLength , getEnum , getKeep , getLength , getLengthPair , getLengthRange , getList , getNCname , getNumber , getNumeric , getObject , getSpace , getSpecifiedValue , getString , isAuto , setSpecifiedValue , toString |
FixedLength
public FixedLength(int baseUnits)
baseUnits
- the length as a number of base units (millipoints)
convert
protected void convert(double dvalue,
String unit)
Convert the given length to a dimensionless integer representing
a whole number of base units (milli-points).
dvalue
- quantity of input unitsunit
- input unit specifier (in, cm, etc.)
equals
public boolean equals(Object obj)
java.lang.Object.equals(Object)
getInstance
public static FixedLength getInstance(double numUnits,
String units)
Return the canonical FixedLength instance corresponding
to the computed value
numUnits
- input unitsunits
- unit specifier
hashCode
public int hashCode()
java.lang.Object.hashCode()
isAbsolute
public boolean isAbsolute()
Return true since FixedLength are always absolute.
- isAbsolute in interface Numeric
toString
public String toString()
- toString in interface Property
java.lang.Object.toString()
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.