Class FinishedRenderNode

  • All Implemented Interfaces:
    Cloneable

    public final class FinishedRenderNode
    extends RenderNode
    A box replacement. It has a predefined width and height and does not change those. It is a placeholder for all already printed content.

    If you see this node inside an inline box, you can be sure you've shot yourself in the foot.

    Author:
    Thomas Morgner
    • Constructor Detail

      • FinishedRenderNode

        public FinishedRenderNode​(long layoutedX,
                                  long layoutedY,
                                  long layoutedWidth,
                                  long layoutedHeight,
                                  long marginsTop,
                                  long marginsBottom,
                                  boolean breakAfter,
                                  int orphanLeafCount,
                                  int widowLeafCount)
      • FinishedRenderNode

        public FinishedRenderNode​(long layoutedX,
                                  long layoutedY,
                                  long layoutedWidth,
                                  long layoutedHeight,
                                  long marginsTop,
                                  long marginsBottom,
                                  boolean breakAfter,
                                  int orphanLeafCount,
                                  int widowLeafCount,
                                  ReportStateKey stateKey)
    • Method Detail

      • getLayoutedWidth

        public long getLayoutedWidth()
      • getLayoutedHeight

        public long getLayoutedHeight()
      • getMarginsTop

        public long getMarginsTop()
      • getMarginsBottom

        public long getMarginsBottom()
      • isIgnorableForRendering

        public boolean isIgnorableForRendering()
        If that method returns true, the element will not be used for rendering. For the purpose of computing sizes or performing the layouting (in the validate() step), this element will treated as if it is not there.

        If the element reports itself as non-empty, however, it will affect the margin computation.

        Overrides:
        isIgnorableForRendering in class RenderNode
        Returns:
      • getLayoutedY

        public long getLayoutedY()