Class RegionBefore

All Implemented Interfaces:
Cloneable, Constants

public class RegionBefore extends RegionBA
Class modelling the fo:region-before object.
  • Constructor Details

    • RegionBefore

      public RegionBefore(FONode parent)
      Create a RegionBefore instance that is a child of the given parent FONode.
      Parameters:
      parent - the FONode that is to be the parent
  • Method Details

    • getDefaultRegionName

      protected String getDefaultRegionName()
      Returns the default region name (xsl-region-before, xsl-region-start, etc.)
      Specified by:
      getDefaultRegionName in class Region
      Returns:
      the default region name
    • getViewportRectangle

      public Rectangle getViewportRectangle(FODimension reldims)
      Specified by:
      getViewportRectangle in class Region
      Parameters:
      reldims - reference dimension of the page area.
      Returns:
      the rectangle for the viewport area
    • getLocalName

      public String getLocalName()
      Returns the local name (i.e. without namespace prefix) of the node
      Specified by:
      getLocalName in class FONode
      Returns:
      the local name of this node
    • getNameId

      public int getNameId()
      Returns the Constants class integer value of this node
      Overrides:
      getNameId in class FONode
      Returns:
      Constants.FO_REGION_BEFORE