Class SpaceProperty

All Implemented Interfaces:
CompoundDatatype, Constants

public class SpaceProperty extends LengthRangeProperty
Base class used for handling properties of the fo:space-before and fo:space-after variety. It is extended by org.apache.fop.fo.properties.GenericSpace, which is extended by many other properties.
  • Constructor Details

    • SpaceProperty

      public SpaceProperty()
  • Method Details

    • setComponent

      public void setComponent(int cmpId, Property cmpnValue, boolean bIsDefault)
      Sets a component of the compound datatype.
      Specified by:
      setComponent in interface CompoundDatatype
      Overrides:
      setComponent in class LengthRangeProperty
      Parameters:
      cmpId - ID of the component
      cmpnValue - value of the component
      bIsDefault - Indicates if it's the default value
    • getComponent

      public Property getComponent(int cmpId)
      Returns a component of the compound datatype.
      Specified by:
      getComponent in interface CompoundDatatype
      Overrides:
      getComponent in class LengthRangeProperty
      Parameters:
      cmpId - ID of the component
      Returns:
      the value of the component
    • setPrecedence

      protected void setPrecedence(Property precedence, boolean bIsDefault)
      Parameters:
      precedence - precedence Property to set
      bIsDefault - (is not used anywhere)
    • setConditionality

      protected void setConditionality(Property conditionality, boolean bIsDefault)
      Parameters:
      conditionality - conditionality Property to set
      bIsDefault - (is not used anywhere)
    • getPrecedence

      public Property getPrecedence()
      Returns:
      precedence Property
    • getConditionality

      public Property getConditionality()
      Returns:
      conditionality Property
    • isDiscard

      public boolean isDiscard()
      Indicates if the length can be discarded on certain conditions.
      Returns:
      true if the length can be discarded.
    • toString

      public String toString()
      Overrides:
      toString in class LengthRangeProperty
    • getSpace

      public SpaceProperty getSpace()
      Description copied from class: Property
      This method expects to be overridden by subclasses
      Overrides:
      getSpace in class Property
      Returns:
      the Space (datatype) object contained here
    • getLengthRange

      public LengthRangeProperty getLengthRange()
      Space extends LengthRange.
      Overrides:
      getLengthRange in class LengthRangeProperty
      Returns:
      the Space (datatype) object contained here
    • getObject

      public Object getObject()
      Description copied from class: Property
      This method expects to be overridden by subclasses
      Overrides:
      getObject in class LengthRangeProperty
      Returns:
      the Space (datatype) object contained here
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class LengthRangeProperty
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class LengthRangeProperty