Abstract class modelling generic, non-XSL-FO XML objects. Such objects are
stored in a DOM.
addCharacters
protected void addCharacters(char[] data,
int start,
int length,
PropertyList pList,
Locator locator)
Add parsed characters to this object
- addCharacters in interface FONode
data
- array of characters contaning the text to addstart
- starting array element to addlength
- number of characters from the array to addpList
- the currently applicable property listlocator
- location in fo source file.
addElement
public void addElement(Document doc,
Element parent)
Add an element to the DOM document
doc
- DOM document to which to add an elementparent
- the parent element of the element that is being added
buildTopLevel
public void buildTopLevel(Document doc,
Element svgRoot)
Add the top-level element to the DOM document
doc
- DOM documentsvgRoot
- non-XSL-FO element to be added as the root of this document
createBasicDocument
public Document createBasicDocument()
Create an empty DOM document
getDOMDocument
public Document getDOMDocument()
- DOM document representing this foreign XML
getDimension
public Point2D getDimension(Point2D view)
Returns the dimensions of the generated area in pts.
view
- Point2D instance to receive the dimensions
- the requested dimensions in pts.
getIntrinsicAlignmentAdjust
public Length getIntrinsicAlignmentAdjust()
Retrieve the intrinsic alignment-adjust of the child element.
- the intrinsic alignment-adjust.