|
fop 0.95 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.fop.fo.FONode
org.apache.fop.fo.FObj
Base class for representation of formatting objects and their processing.
| Nested Class Summary | |
class |
FObj.FObjIterator
|
| Nested classes inherited from class org.apache.fop.fo.FONode |
FONode.FONodeIterator |
| Field Summary | |
protected FONode |
firstChild
pointer to the descendant subtree |
| Fields inherited from class org.apache.fop.fo.FONode |
FO_URI, FOX_URI, locator, log, parent, siblings |
| Constructor Summary | |
FObj(FONode parent)
Create a new formatting object. |
|
| Method Summary | |
protected void |
addChildNode(FONode child)
Adds a node as a child of this node. The default implementation of this method just ignores any child node being added. |
protected static void |
addChildTo(FONode child,
FObj parent)
Used by RetrieveMarker during Marker-subtree cloning |
void |
addExtensionAttachment(ExtensionAttachment attachment)
Add a new extension attachment to this FObj. |
void |
addForeignAttribute(QName attributeName,
java.lang.String value)
Adds a foreign attribute to this FObj. |
protected void |
addMarker(Marker marker)
Add the marker to this formatting object. |
void |
bind(PropertyList pList)
Bind property values from the property list to the FO node. |
FONode |
clone(FONode parent,
boolean removeChildren)
Perform a shallow cloning operation, set its parent, and optionally clean the list of child nodes |
protected PropertyList |
createPropertyList(PropertyList parent,
FOEventHandler foEventHandler)
Create a default property list for this element. |
protected int |
findAncestor(int ancestorID)
Convenience method for validity checking. |
FObj |
findNearestAncestorFObj()
Find the nearest parent, grandparent, etc. |
protected java.lang.String |
gatherContextInfo()
Gathers context information for the getContextInfo() method. |
boolean |
generatesReferenceAreas()
Check if this formatting object generates reference areas. |
FONode.FONodeIterator |
getChildNodes()
Return an iterator over all the child nodes of this FObj. |
FONode.FONodeIterator |
getChildNodes(FONode childNode)
Return an iterator over the object's childNodes starting at the passed-in node (= first call to iterator.next() will return childNode) |
java.util.List |
getExtensionAttachments()
|
java.util.Map |
getForeignAttributes()
|
java.lang.String |
getId()
|
boolean |
getIsOutOfLineFODescendant()
Returns Out Of Line FO Descendant indicator. |
java.util.Map |
getMarkers()
|
java.lang.String |
getNamespaceURI()
|
java.lang.String |
getNormalNamespacePrefix()
|
static PropertyMaker |
getPropertyMakerFor(int propId)
Returns the PropertyMaker for a given property ID. |
boolean |
hasId()
|
boolean |
hasMarkers()
|
protected boolean |
isBlockItem(java.lang.String nsURI,
java.lang.String lName)
Convenience method for validity checking. |
protected boolean |
isBlockOrInlineItem(java.lang.String nsURI,
java.lang.String lName)
Convenience method for validity checking. |
protected boolean |
isInlineItem(java.lang.String nsURI,
java.lang.String lName)
Convenience method for validity checking. |
protected boolean |
isNeutralItem(java.lang.String nsURI,
java.lang.String lName)
Convenience method for validity checking. |
protected void |
notifyChildRemoval(FONode node)
Notifies a FObj that one of it's children is removed. |
void |
processNode(java.lang.String elementName,
org.xml.sax.Locator locator,
org.xml.sax.Attributes attlist,
PropertyList pList)
Initialize the node with its name, location information, and attributes The attributes must be used immediately as the sax attributes will be altered for the next element. |
void |
removeChild(FONode child)
Removes a child node. Used by the child nodes to remove themselves, for example table-body if it has no children. |
protected void |
startOfNode()
Called after processNode() is called. Subclasses can do additional processing. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected FONode firstChild
| Constructor Detail |
public FObj(FONode parent)
parent - the parent node| Method Detail |
public FONode clone(FONode parent,
boolean removeChildren)
throws FOPException
clone in class FONodeparent - the intended parent of the cloneremoveChildren - if true, clean the list of child nodes
FOPException - if there's a problem while cloning the nodepublic static PropertyMaker getPropertyMakerFor(int propId)
propId - the property ID
public void processNode(java.lang.String elementName,
org.xml.sax.Locator locator,
org.xml.sax.Attributes attlist,
PropertyList pList)
throws FOPException
processNode in class FONodeelementName - element name (e.g., "fo:block")locator - Locator object (ignored by default)attlist - Collection of attributes passed to us from the parser.pList - the property list of the parent node
FOPException - for errors or inconsistencies in the attributes
protected PropertyList createPropertyList(PropertyList parent,
FOEventHandler foEventHandler)
throws FOPException
createPropertyList in class FONodeparent - the closest parent propertylist.foEventHandler - The FOEventHandler where the PropertyListMaker
instance can be found.
FOPException - if there's a problem during processing
public void bind(PropertyList pList)
throws FOPException
bind in class FONodepList - the PropertyList where the properties can be found.
FOPException - if there is a problem binding the values
protected void startOfNode()
throws FOPException
startOfNode in class FONodeFOPException - FOP Exceptionpublic boolean getIsOutOfLineFODescendant()
protected void addChildNode(FONode child)
throws FOPException
addChildNode in class FONodechild - child node to be added to the childNodes of this node
FOPException - if there's a problem during processing
protected static void addChildTo(FONode child,
FObj parent)
throws FOPException
child - the (cloned) child nodeparent - the (cloned) parent node
FOPException - when the child could not be added to the parentpublic void removeChild(FONode child)
removeChild in class FONodechild - child node to be removedpublic FObj findNearestAncestorFObj()
public boolean generatesReferenceAreas()
public FONode.FONodeIterator getChildNodes()
getChildNodes in class FONodepublic FONode.FONodeIterator getChildNodes(FONode childNode)
getChildNodes in class FONodechildNode - First node in the iterator
protected void notifyChildRemoval(FONode node)
node - the node that was removedprotected void addMarker(Marker marker)
marker - Marker to add.public boolean hasMarkers()
public java.util.Map getMarkers()
protected java.lang.String gatherContextInfo()
gatherContextInfo in class FONode
protected boolean isBlockItem(java.lang.String nsURI,
java.lang.String lName)
nsURI - namespace URI of incoming nodelName - local name (i.e., no prefix) of incoming node
protected boolean isInlineItem(java.lang.String nsURI,
java.lang.String lName)
nsURI - namespace URI of incoming nodelName - local name (i.e., no prefix) of incoming node
protected boolean isBlockOrInlineItem(java.lang.String nsURI,
java.lang.String lName)
nsURI - namespace URI of incoming nodelName - local name (i.e., no prefix) of incoming node
protected boolean isNeutralItem(java.lang.String nsURI,
java.lang.String lName)
nsURI - namespace URI of incoming nodelName - local name (i.e., no prefix) of incoming node
protected int findAncestor(int ancestorID)
ancestorID - ID of node name to check for (e.g., FO_ROOT)
public java.lang.String getId()
public boolean hasId()
public java.lang.String getNamespaceURI()
getNamespaceURI in class FONodepublic java.lang.String getNormalNamespacePrefix()
getNormalNamespacePrefix in class FONodepublic void addExtensionAttachment(ExtensionAttachment attachment)
attachment - the attachment to add.public java.util.List getExtensionAttachments()
public void addForeignAttribute(QName attributeName,
java.lang.String value)
attributeName - the attribute name as a QName instancevalue - the attribute valuepublic java.util.Map getForeignAttributes()
public java.lang.String toString()
|
fop 0.95 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||