Class BackgroundPositionShorthand.Maker

All Implemented Interfaces:
Cloneable
Enclosing class:
BackgroundPositionShorthand

public static class BackgroundPositionShorthand.Maker extends ListProperty.Maker
Inner class for creating instances of this property
  • Constructor Details

    • Maker

      public Maker(int propId)
      Construct an instance of a Maker for the given property.
      Parameters:
      propId - The Constant ID of the property to be made.
  • Method Details

    • make

      public Property make(PropertyList propertyList, String value, FObj fo) throws PropertyException
      Create a Property object from an attribute specification. If only background-position-horizontal is specified, background-position-vertical is set to "50%".
      Overrides:
      make in class PropertyMaker
      Parameters:
      propertyList - The PropertyList object being built for this FO.
      value - The attribute value.
      fo - The parent FO for the FO whose property is being made.
      Returns:
      The initialized Property object.
      Throws:
      PropertyException - for invalid or inconsistent FO input
    • getPercentBase

      public PercentBase getPercentBase(PropertyList pl)
      This is used to handle properties specified as a percentage of some "base length", such as the content width of their containing box. Overridden by subclasses which allow percent specifications. See the documentation on properties.xsl for details. Returns a PercentBase whose getDimension() returns 1.
      Overrides:
      getPercentBase in class PropertyMaker
      Parameters:
      pl - the PropertyList containing the property. (TODO: explain what this is used for, or remove it from the signature.)
      Returns:
      an object implementing the PercentBase interface.