|
||||||||||
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.PageCollectionFactory
org.axsl.area.AreaTreeException
public org.axsl.font.FontConsumer getFontConsumer()
getFontConsumer
in interface org.axsl.area.AreaTree
getFontConsumer
in interface org.axsl.galley.Galley
public List<org.axsl.fo.fo.Marker> getDocumentMarkers()
public org.axsl.text.TextServer getTextServer()
getTextServer
in interface org.axsl.area.AreaTree
public org.apache.commons.logging.Log getLogger()
AreaNode
getLogger
in class AreaNode
public void contentComplete()
contentComplete
in interface org.axsl.area.AreaTree
public org.axsl.fo.fo.Root getRoot()
public AreaTree getAreaTree()
getAreaTree
in interface org.axsl.area.AreaNode
getAreaTree
in class AreaNode
public org.axsl.galley.Galley getGalley()
getGalley
in class AreaNode
public 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.AreaTree
public 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.GalleyVisitorException
public List<PageCollection> getPageCollectionsProcessed()
public AreaNode getParent()
getParent
in interface TreeNode
getParent
in class AreaNode
public void setParent(AreaNode node) throws org.axsl.area.AreaTreeException
AreaNode
setParent
in class AreaNode
node
- 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 AreaNode
protected boolean optimize()
AreaNode
PageRA.layoutComplete()
.
optimize
in class AreaNode
public FOLinkage getLinkage()
AreaNode
getLinkage
in class AreaNode
public org.axsl.fo.fo.Root traitGeneratedBy()
traitGeneratedBy
in interface org.axsl.area.AreaNode
traitGeneratedBy
in class AreaNode
protected 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.Galley
public String getAuthor()
getAuthor
in interface org.axsl.galley.Galley
public String getSubject()
getSubject
in interface org.axsl.galley.Galley
public String getKeywords()
getKeywords
in interface org.axsl.galley.Galley
public 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 |