Class ParagraphRenderBox

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class ParagraphRenderBox
    extends BlockRenderBox
    This articifial renderbox is the connection between block-contexts and the sequences of consectual inline-boxes of that block.

    This renderbox generates lineboxes whenever needed.

    When asked for layout-sizes or when doing the layouting, it first checks its validity and performs splits on all forced pagebreaks. At the end, there is no inner element's edge with an activated clear-property.

    After that, it generates temporary lineboxes for all of its childs. When *re*-computing the layout, these lineboxes get invalidated and merged back into the paragraph.

    Author:
    Thomas Morgner
    • Constructor Detail

      • ParagraphRenderBox

        public ParagraphRenderBox​(BoxDefinition boxDefinition)
    • Method Detail

      • derive

        public RenderNode derive​(boolean deepDerive)
        Derive creates a disconnected node that shares all the properties of the original node. The derived node will no longer have any parent, silbling, child or any other relationships with other nodes.
        Overrides:
        derive in class RenderBox
        Returns:
      • hibernate

        public RenderNode hibernate()
        Derive creates a disconnected node that shares all the properties of the original node. The derived node will no longer have any parent, silbling, child or any other relationships with other nodes.
        Overrides:
        hibernate in class RenderBox
        Returns:
      • addDirectly

        protected void addDirectly​(RenderNode child)
      • clear

        public final void clear()
        Removes all children.
        Overrides:
        clear in class RenderBox
      • clearLayout

        public final void clearLayout()
      • getLastLineAlignment

        public CSSValue getLastLineAlignment()
      • getTextAlignment

        public CSSValue getTextAlignment()
      • getLineBoxAge

        public long getLineBoxAge()
      • setLineBoxAge

        public void setLineBoxAge​(long lineBoxAge)
      • getMinorLayoutAge

        public long getMinorLayoutAge()
      • setMinorLayoutAge

        public void setMinorLayoutAge​(long minorLayoutAge)
      • getMajorLayoutAge

        public long getMajorLayoutAge()
      • setMajorLayoutAge

        public void setMajorLayoutAge​(long majorLayoutAge)
      • getInstanceId

        public java.lang.Object getInstanceId()
        The public-id for the paragraph is the pool-box.
        Overrides:
        getInstanceId in class RenderNode
        Returns: