|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.foray.common.AbstractOrderedTreeNode
org.foray.area.AreaNode
org.foray.area.NonArea
org.foray.area.AreaTree
public final class AreaTree
The root of the AreaTree.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.foray.common.AbstractOrderedTreeNode |
|---|
AbstractOrderedTreeNode.PostOrderDescendantIterator |
| Method Summary | |
|---|---|
void |
contentComplete()
|
Area |
firstNormalAreaReturned(String id)
Find the first normal area returned by the formatting object with an "id" trait matching the "id" parameter. |
String |
getAreaName()
|
AreaTree |
getAreaTree()
Returns the ancestor AreaTree for this area. |
String |
getAuthor()
|
org.axsl.galley.BookmarkTree |
getBookmarkTree()
|
List<PageCollection> |
getChildren()
Return the List of this node's children. |
List<org.axsl.fo.fo.Marker> |
getDocumentMarkers()
Return the markers in this document. |
protected FOLinkage |
getFONodeLinkage(org.axsl.fo.Fo node)
Returns the FOLinkage for a given FONode. |
org.axsl.font.FontConsumer |
getFontConsumer()
|
org.axsl.galley.Galley |
getGalley()
Returns the ancestor Galley for this area. |
String |
getKeywords()
|
FOLinkage |
getLinkage()
Returns the raw "generated by" instance. |
org.apache.commons.logging.Log |
getLogger()
Return the logger. |
List<PageCollection> |
getPageCollectionsProcessed()
Returns the collection of page collections that have been processed. |
AreaNode |
getParent()
|
org.axsl.fo.fo.Root |
getRoot()
Return the FO Root that is generating this area tree. |
String |
getSubject()
|
org.axsl.text.TextServer |
getTextServer()
|
String |
getTitle()
|
boolean |
isPageQueued(PageRA page)
Indicates whether a given page is completed and in the queue to be rendered. |
PageCollection |
makePageCollection(org.axsl.fo.fo.PageSequence pageSequence)
|
protected void |
notifyPageComplete(PageRA page)
Notify all listeners that a "Page Complete" event has been fired. |
protected boolean |
optimize()
This method should be run after layout is complete, allowing cleanup and adjustments that do not affect the placement of the areas to be computed before the page is rendered. |
void |
registerListener(org.axsl.area.AreaTreeListener listener)
|
void |
render(org.axsl.galley.RenderVisitor visitor)
|
org.axsl.fo.Fo |
retrieveId(String id)
Retrieves the FObj instance that is associated with id. |
protected void |
setFONodeLinkage(org.axsl.fo.Fo node,
FOLinkage linkage)
Sets the linkage for a given FONode. |
void |
setParent(AreaNode node)
Sets the parent node. |
org.axsl.fo.fo.Root |
traitGeneratedBy()
|
void |
unRegisterListener(org.axsl.area.AreaTreeListener listener)
Remove an object from the list of listeners to be notified about AreaTreeEvent firings. |
| Methods inherited from class org.foray.common.AbstractOrderedTreeNode |
|---|
children, getChildCount, getFirstLeaf, getIndex, 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.galley.AreaNode |
|---|
getChildAt |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Methods inherited from interface org.axsl.area.AreaNode |
|---|
ancestorArea, ancestorBlockContentFactory, ancestorNormalBlockArea, ancestorTableArea, getPage, isFirstChildOfGeneratedBy, nearestArea, nearestGeneratedByBlockLevelFo, removeChild, siblingIndex |
| Methods inherited from interface javax.swing.tree.TreeNode |
|---|
children, getAllowsChildren, getChildCount, getIndex, isLeaf |
| Methods inherited from interface org.axsl.fo.FoContext |
|---|
bpdAncestorBlockOrRa, getGraftingPoint, heightContainingBlock, ipdAncestorBlockArea, ipdAncestorBlockOrRa, ipdContainingRefArea, ipdParentArea, isFirst, isLast, tableWidth, widthContainingBlock |
| Method Detail |
|---|
public PageCollection makePageCollection(org.axsl.fo.fo.PageSequence pageSequence)
throws org.axsl.area.AreaTreeException
makePageCollection in interface org.axsl.area.PageCollectionFactoryorg.axsl.area.AreaTreeExceptionpublic org.axsl.font.FontConsumer getFontConsumer()
getFontConsumer in interface org.axsl.area.AreaTreegetFontConsumer in interface org.axsl.galley.Galleypublic List<org.axsl.fo.fo.Marker> getDocumentMarkers()
public org.axsl.text.TextServer getTextServer()
getTextServer in interface org.axsl.area.AreaTreepublic org.apache.commons.logging.Log getLogger()
AreaNode
getLogger in class AreaNodepublic void contentComplete()
contentComplete in interface org.axsl.area.AreaTreepublic org.axsl.fo.fo.Root getRoot()
public AreaTree getAreaTree()
getAreaTree in interface org.axsl.area.AreaNodegetAreaTree in class AreaNodepublic org.axsl.galley.Galley getGalley()
getGalley in class AreaNodepublic org.axsl.fo.Fo retrieveId(String id)
id - The id whose FObj instance is sought.
public Area firstNormalAreaReturned(String id)
id - The id whose first normal area is sought.
public void registerListener(org.axsl.area.AreaTreeListener listener)
registerListener in interface org.axsl.area.AreaTreepublic void unRegisterListener(org.axsl.area.AreaTreeListener listener)
AreaTreeEvent firings.
listener - The listener to be unregistered.protected void notifyPageComplete(PageRA page)
page - The PageArea instance that was just completed.public String getAreaName()
getAreaName in interface org.axsl.area.AreaNode
public void render(org.axsl.galley.RenderVisitor visitor)
throws org.axsl.galley.GalleyVisitorException
org.axsl.galley.GalleyVisitorExceptionpublic List<PageCollection> getPageCollectionsProcessed()
public AreaNode getParent()
getParent in interface TreeNodegetParent in class AreaNode
public void setParent(AreaNode node)
throws org.axsl.area.AreaTreeException
AreaNode
setParent in class AreaNodenode - The new parent node.
org.axsl.area.AreaTreeException - If the parent node is not compatible with
the implementations specification for a parent node.public List<PageCollection> getChildren()
AbstractOrderedTreeNode
getChildren in class AreaNodeprotected boolean optimize()
AreaNodePageRA.layoutComplete().
optimize in class AreaNodepublic FOLinkage getLinkage()
AreaNode
getLinkage in class AreaNodepublic org.axsl.fo.fo.Root traitGeneratedBy()
traitGeneratedBy in interface org.axsl.area.AreaNodetraitGeneratedBy in class AreaNodeprotected FOLinkage getFONodeLinkage(org.axsl.fo.Fo node)
node - The FONode whose linkage is needed.
node, or null if there is none.
protected void setFONodeLinkage(org.axsl.fo.Fo node,
FOLinkage linkage)
node - The node whose linkage is to be set.linkage - The linkage for node.public String getTitle()
getTitle in interface org.axsl.galley.Galleypublic String getAuthor()
getAuthor in interface org.axsl.galley.Galleypublic String getSubject()
getSubject in interface org.axsl.galley.Galleypublic String getKeywords()
getKeywords in interface org.axsl.galley.Galleypublic boolean isPageQueued(PageRA page)
page - The page being tested.
public org.axsl.galley.BookmarkTree getBookmarkTree()
getBookmarkTree in interface org.axsl.galley.Galley
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||