Class PaintingInfo

java.lang.Object
com.openhtmltopdf.layout.PaintingInfo

public class PaintingInfo extends Object
A bean which every box uses to provide its aggregate bounds (which may be larger than the bounds of the box itself when there is overhanging content) and its outer margin corner (which is used to calculate the size of the canvas). The aggregate bounds calculation does not take the value of the overflow property into account.
  • Field Details

    • _outerMarginCorner

      private Dimension _outerMarginCorner
    • _aggregateBounds

      private Rectangle _aggregateBounds
  • Constructor Details

    • PaintingInfo

      public PaintingInfo()
  • Method Details

    • getAggregateBounds

      public Rectangle getAggregateBounds()
    • setAggregateBounds

      public void setAggregateBounds(Rectangle aggregateBounds)
    • getOuterMarginCorner

      public Dimension getOuterMarginCorner()
    • setOuterMarginCorner

      public void setOuterMarginCorner(Dimension outerMarginCorner)
    • copyOf

      public PaintingInfo copyOf()
    • translate

      public void translate(int tx, int ty)