Class LengthProperty

java.lang.Object
org.apache.fop.fo.properties.Property
org.apache.fop.fo.properties.LengthProperty
All Implemented Interfaces:
Length, Numeric
Direct Known Subclasses:
EnumLength, FixedLength, PercentLength, TableColLength

public abstract class LengthProperty extends Property implements Length, Numeric
Superclass for properties wrapping a Length value.
  • Constructor Details

    • LengthProperty

      public LengthProperty()
  • Method Details

    • getDimension

      public int getDimension()
      Description copied from interface: Numeric
      Return the dimension of this numeric. Plain numbers has a dimension of 0 and length has a dimension of 1. Other dimension can occur as a result of multiplications and divisions.
      Specified by:
      getDimension in interface Numeric
      Returns:
      the numeric dimension. Length always a dimension of 1
    • getNumeric

      public Numeric getNumeric()
      Description copied from class: Property
      This method expects to be overridden by subclasses
      Overrides:
      getNumeric in class Property
      Returns:
      this.length cast as a Numeric
    • getLength

      public Length getLength()
      Description copied from class: Property
      This method expects to be overridden by subclasses
      Overrides:
      getLength in class Property
      Returns:
      this.length
    • getObject

      public Object getObject()
      Description copied from class: Property
      This method expects to be overridden by subclasses
      Overrides:
      getObject in class Property
      Returns:
      this.length cast as an Object