org.apache.fop.fo.properties

Class LengthProperty

Implemented Interfaces:
Length, Numeric
Known Direct Subclasses:
EnumLength, FixedLength, PercentLength, TableColLength

public abstract class LengthProperty
extends Property
implements Length, Numeric

Superclass for properties wrapping a Length value.

Nested Class Summary

static class
LengthProperty.Maker
Inner class for making instances of LengthProperty

Field Summary

Fields inherited from class org.apache.fop.fo.properties.Property

log

Method Summary

int
getDimension()
Length
getLength()
Numeric
getNumeric()
Object
getObject()
double
getTableUnits()
Return the number of table units which are included in this length specification.

Methods inherited from class org.apache.fop.fo.properties.Property

getCharacter, getColor, getCondLength, getEnum, getKeep, getLength, getLengthPair, getLengthRange, getList, getNCname, getNumber, getNumeric, getObject, getSpace, getSpecifiedValue, getString, isAuto, setSpecifiedValue, toString

Method Details

getDimension

public int getDimension()
Specified by:
getDimension in interface Numeric
Returns:
the numeric dimension. Length always a dimension of 1

getLength

public Length getLength()
Overrides:
getLength in interface Property
Returns:
this.length

getNumeric

public Numeric getNumeric()
Overrides:
getNumeric in interface Property
Returns:
this.length cast as a Numeric

getObject

public Object getObject()
Overrides:
getObject in interface Property
Returns:
this.length cast as an Object

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.

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.