|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.foray.common.AbstractOrderedTreeNode
org.foray.fotree.FObj
org.foray.fotree.FObjMixed
public abstract class FObjMixed
Abstract superclass for mixed content formatting objects.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.foray.common.AbstractOrderedTreeNode |
---|
AbstractOrderedTreeNode.PostOrderDescendantIterator |
Field Summary |
---|
Fields inherited from class org.foray.fotree.FObj |
---|
EMPTY_CHILD_LIST, PAGE_CITATION_TEXT_SEGMENT |
Fields inherited from interface org.axsl.fo.Fo |
---|
DIMENSION_AUTO |
Fields inherited from interface org.axsl.fo.fo.prop.CommonPositionPa |
---|
ABSOLUTE_POSITION_AUTO |
Constructor Summary | |
---|---|
protected |
FObjMixed(FObj parent,
PropertyList propertyList)
Constructor. |
Method Summary | |
---|---|
protected void |
addCharacters(char[] data,
int start,
int length,
String systemId,
int line,
int column)
Adds text characters to the object. |
void |
addChild(FObj child)
Add a child to this object. |
abstract void |
addNonTextNode(FObj nonTextNode)
Add a non-text node to the children of this object. |
abstract void |
addTextNode(AbstractCharacterSequence textNode)
Add a text node to the children of this object. |
abstract boolean |
blockMustEnclosePCDATA()
Indicates whether any PCDATA (text) found in this element must have an ancestor block element. |
protected void |
end()
This method is a hook into the parsing process, primarily to allow the subclass to do some validation or setup work after the object and all of its properties have been parsed and all of its children processed. |
protected void |
finalizeText(org.axsl.fo.FoContext context)
Flushes any remaining text into an FOText item. |
PropertyList |
getPropertyList()
Returns the property list for this FObj. |
StringBuilder |
getTextBuffer()
Returns the text buffer. |
Methods inherited from class org.foray.common.AbstractOrderedTreeNode |
---|
children, getChildCount, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLevel, getNextLeaf, getNextSibling, getPreviousLeaf, getPreviousSibling, getSharedAncestor, hasChildren, isLeaf, isNodeAncestor, isNodeDescendant, nextPostOrderNode, nextPreOrderNode, postOrderDescendantIterator, siblingIndex |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.axsl.fo.Fo |
---|
acceptProxyFactory, getChildAt, isValid |
Methods inherited from interface javax.swing.tree.TreeNode |
---|
children, getChildCount, getIndex, isLeaf |
Methods inherited from interface org.axsl.fo.fo.prop.CommonFontPa |
---|
getPrimaryFont |
Constructor Detail |
---|
protected FObjMixed(FObj parent, PropertyList propertyList)
parent
- The parent FObj.propertyList
- The property list for this FObj.Method Detail |
---|
protected void addCharacters(char[] data, int start, int length, String systemId, int line, int column)
FObj
addCharacters
in class FObj
data
- textstart
- start positionlength
- length of the textsystemId
- The systemId of the file containing the text being
added (used in error messages).line
- The line number of the location of the text being added
(used in error messages).column
- The columns number of the location of the text being
added (used in error messages).protected void finalizeText(org.axsl.fo.FoContext context) throws org.axsl.fo.FoTreeException
context
- An object that knows how to resolve FoTree context issues.
org.axsl.fo.FoTreeException
- If the new text item cannot be added as a child
to this.public abstract boolean blockMustEnclosePCDATA()
protected void end() throws org.axsl.fo.FoTreeException
FObj
end
in class FObj
org.axsl.fo.FoTreeException
- For errors during validation or setup.public void addChild(FObj child) throws org.axsl.fo.FoTreeException
FObj
addChild
in class FObj
child
- The child to be added.
org.axsl.fo.FoTreeException
- If the child cannot be added as a child for any
reason, either because it an invalid type or is in the wrong order.public StringBuilder getTextBuffer()
public abstract void addTextNode(AbstractCharacterSequence textNode) throws org.axsl.fo.FoTreeException
textNode
- The text node to be added.
org.axsl.fo.FoTreeException
- If the new content is not valid.public abstract void addNonTextNode(FObj nonTextNode) throws org.axsl.fo.FoTreeException
nonTextNode
- The non-text node to be added.
org.axsl.fo.FoTreeException
- If the new content is not valid.public PropertyList getPropertyList()
FObj
getPropertyList
in class FObj
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |