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.
-
Method Summary
Modifier and TypeMethodDescriptionattributeValue
(String attribute) Returns an attribute value.int
Returns the fragment number.int
Returns the fragment count.double
Returns the height.int
getPage()
Returns the page.getType()
Returns the element type.double
getWidth()
Returns the width.double
getX()
Returns the x position.double
getY()
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:
-