|
fop 1.1 | |||||||||
| 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
public abstract class FObj
Base class for representation of formatting objects and their processing. All standard formatting object classes extend this class.
| Nested Class Summary | |
|---|---|
static class |
FObj.FObjIterator
Basic FONode.FONodeIterator implementation |
| Nested classes/interfaces inherited from class org.apache.fop.fo.FONode |
|---|
FONode.FONodeIterator, FONode.GatherContextInfoFunction |
| Field Summary | |
|---|---|
protected FONode |
firstChild
pointer to the descendant subtree |
protected FONode |
lastChild
pointer to the end of 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. |
protected static void |
addChildTo(FONode child,
FONode parent)
Used by RetrieveMarker during Marker-subtree cloning |
void |
addForeignAttribute(org.apache.xmlgraphics.util.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. |
void |
clearChildNodes()
Clears the list of child nodes. |
FONode |
clone(FONode parent,
boolean removeChildren)
Performs a shallow cloning operation, sets the clone's parent, and optionally cleans 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. |
int |
getBidiLevel()
Obtain resolved bidirectional level of FO. |
int |
getBidiLevelRecursive()
Obtain resolved bidirectional level of FO or nearest FO ancestor that has a resolved level. |
FONode.FONodeIterator |
getChildNodes()
Return an iterator over all the child nodes of this node. |
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) |
protected java.lang.String |
getContextInfoAlt()
Returns a String containing as some context information about a node. |
java.util.List |
getExtensionAttachments()
|
java.util.Map |
getForeignAttributes()
|
java.lang.String |
getId()
|
java.util.Map |
getMarkers()
|
java.lang.String |
getNamespaceURI()
Returns the namespace URI for this node |
java.lang.String |
getNormalNamespacePrefix()
Returns the normally used namespace prefix for this node |
static PropertyMaker |
getPropertyMakerFor(int propId)
Returns the PropertyMaker for a given property ID. |
boolean |
hasChildren()
Indicates whether this formatting object has children. |
boolean |
hasExtensionAttachments()
|
boolean |
hasId()
|
boolean |
hasMarkers()
|
boolean |
isBidiRangeBlockItem()
Determine if this node is a new bidi RANGE block item. |
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. |
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. |
void |
setBidiLevel(int bidiLevel)
Recursively set resolved bidirectional level of FO (and its ancestors) if and only if it is non-negative and if either the current value is reset (-1) or the new value is less than the current value. |
protected void |
startOfNode()
Called after processNode() is called. |
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
protected FONode lastChild
| 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 Exception
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,
FONode 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 boolean hasChildren()
public FONode.FONodeIterator getChildNodes(FONode childNode)
getChildNodes in class FONodechildNode - First node in the iterator
protected void addMarker(Marker marker)
marker - Marker to add.public boolean hasMarkers()
public java.util.Map getMarkers()
protected java.lang.String getContextInfoAlt()
getContextInfoAlt in class FONodeprotected 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 void clearChildNodes()
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 boolean isBidiRangeBlockItem()
isBidiRangeBlockItem in class FONodepublic void setBidiLevel(int bidiLevel)
bidiLevel - a non-negative bidi embedding levelpublic int getBidiLevel()
public int getBidiLevelRecursive()
public java.util.List getExtensionAttachments()
public boolean hasExtensionAttachments()
public void addForeignAttribute(org.apache.xmlgraphics.util.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()
toString in class java.lang.Object
|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||