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.
    • Field Detail

      • precedence

        private Property precedence
      • conditionality

        private Property conditionality
    • Constructor Detail

      • SpaceProperty

        public SpaceProperty()
    • Method Detail

      • 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
      • 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.
      • 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
      • getObject

        public java.lang.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