Class WTextRenderer.Node

java.lang.Object
eu.webtoolkit.jwt.render.WTextRenderer.Node
Enclosing class:
WTextRenderer

public static class WTextRenderer.Node extends Object
A rendering box of a layed out DOM node.

See Also:
  • Method Details

    • getType

      public DomElementType getType()
      Returns the element type.
    • attributeValue

      public String attributeValue(String attribute)
      Returns an attribute value.

      This returns an empty string for an undefined attribute.

    • getPage

      public int getPage()
      Returns the page.
    • getX

      public double getX()
      Returns the x position.
    • getY

      public double getY()
      Returns the y position.
    • getWidth

      public double getWidth()
      Returns the width.
    • getHeight

      public double getHeight()
      Returns the height.
    • getFragment

      public int getFragment()
      Returns the fragment number.

      A single DOM node can result in multiple layout boxes: e.g. inline contents can be split over multiple lines, resulting in a layout box for each line, and block layout contents can be split over multiple pages, resulting in a layout box per page.

    • getFragmentCount

      public int getFragmentCount()
      Returns the fragment count.

      See Also: