Class WTextRenderer.Node

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

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

See Also:
WTextRenderer.paintNode(WPainter painter, WTextRenderer.Node node)
  • Method Summary

    Modifier and Type Method Description
    java.lang.String attributeValue​(java.lang.String attribute)
    Returns an attribute value.
    int getFragment()
    Returns the fragment number.
    int getFragmentCount()
    Returns the fragment count.
    double getHeight()
    Returns the height.
    int getPage()
    Returns the page.
    DomElementType getType()
    Returns the element type.
    double getWidth()
    Returns the width.
    double getX()
    Returns the x position.
    double getY()
    Returns the y position.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getType

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

      public java.lang.String attributeValue​(java.lang.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:
      getFragment()