org.apache.fop.fo.properties
Class FixedLength
- Length, Numeric
public final class FixedLength
An absolute length quantity in XSL
static String | CM - Describes the unit centimeter.
|
static String | INCH - Describes the unit inch.
|
static String | MM - Describes the unit millimeter.
|
static String | MPT - Describes the unit millipoint.
|
static String | PICA - Describes the unit pica.
|
static String | POINT - Describes the unit point.
|
static FixedLength | ZERO_FIXED_LENGTH - canonical zero-length instance
|
getCharacter , getColor , getCondLength , getEnum , getKeep , getLength , getLengthPair , getLengthRange , getList , getNCname , getNumber , getNumeric , getObject , getSpace , getSpecifiedValue , getString , isAuto , setSpecifiedValue , toString |
CM
public static final String CM
Describes the unit centimeter.
INCH
public static final String INCH
Describes the unit inch.
MM
public static final String MM
Describes the unit millimeter.
MPT
public static final String MPT
Describes the unit millipoint.
PICA
public static final String PICA
Describes the unit pica.
POINT
public static final String POINT
Describes the unit point.
ZERO_FIXED_LENGTH
public static final FixedLength ZERO_FIXED_LENGTH
canonical zero-length instance
equals
public boolean equals(Object obj)
getInstance
public static FixedLength getInstance(double numUnits)
Return the cached
FixedLength
instance corresponding
to the computed value.
This method assumes 'millipoints' (non-standard) as units,
and an implied source-resolution of 1 (1px = 1pt).
- the canonical FixedLength instance corresponding
to the given number of units and unit specifier
getInstance
public static FixedLength getInstance(double numUnits,
String units)
Return the cached
FixedLength
instance corresponding
to the computed value
This method assumes a source-resolution of 1 (1px = 1pt)
numUnits
- input unitsunits
- unit specifier
- the canonical FixedLength instance corresponding
to the given number of units and unit specifier
getInstance
public static FixedLength getInstance(double numUnits,
String units,
float sourceResolution)
Return the cached
FixedLength
instance corresponding
to the computed value in base-units (millipoints).
numUnits
- quantity of input unitsunits
- input unit specifiersourceResolution
- input/source resolution (= ratio of pixels per pt)
- the canonical FixedLength instance corresponding
to the given number of units and unit specifier
in the given resolution
hashCode
public int hashCode()
isAbsolute
public boolean isAbsolute()
Return true since a FixedLength is always absolute.
- isAbsolute in interface Numeric
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.