Package eu.webtoolkit.jwt.render
Class WTextRenderer.Node
java.lang.Object
eu.webtoolkit.jwt.render.WTextRenderer.Node
- Enclosing class:
WTextRenderer
A rendering box of a layed out DOM node.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionattributeValue(String attribute) Returns an attribute value.intReturns the fragment number.intReturns the fragment count.doubleReturns the height.intgetPage()Returns the page.getType()Returns the element type.doublegetWidth()Returns the width.doublegetX()Returns the x position.doublegetY()Returns the y position.
-
Method Details
-
getType
Returns the element type. -
attributeValue
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:
-