|
||||||||||
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.PageCollection
public final class PageCollection
PageCollection is not really an Area. It is a convenience class that is intended to be analogous to the PageSequence in the FOTree, which should be considered its cousin. Its parent should always be an AreaTree instance, and its children should always be PageRA instances.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.foray.common.AbstractOrderedTreeNode |
---|
AbstractOrderedTreeNode.PostOrderDescendantIterator |
Nested classes/interfaces inherited from interface org.axsl.area.PageCollection |
---|
org.axsl.area.PageCollection.Force |
Method Summary | |
---|---|
PageCollection |
ancestorPageCollection()
Returns the ancestor page collection for this area. |
String |
getAreaName()
|
AreaTree |
getAreaTree()
Returns the ancestor AreaTree for this area. |
List<PageRA> |
getChildren()
Return the List of this node's children. |
int |
getCurrentPageNumber()
Returns the current page number. |
List<org.axsl.fo.fo.Marker> |
getCurrentPageSequenceMarkers()
Returns the markers in this page sequence. |
List<org.axsl.fo.fo.Marker> |
getDocumentMarkers()
Returns the markers in this document. |
int |
getLastPageNumber()
Returns the last page number used. |
FOLinkage |
getLinkage()
Returns the raw "generated by" instance. |
PageRA |
getPage()
Overrides Area method, because anybody trying to run that method on an AreaTree instance will get an NPE, since it uses getParent(). |
int |
getPageCount()
|
org.axsl.common.PositiveIntegerFormatter |
getPageNumberFormatter()
|
CharSequence |
getPageNumberPrefix()
|
CharSequence |
getPageNumberSuffix()
|
org.axsl.fo.fo.PageSequence |
getPageSequence()
|
AreaTree |
getParent()
|
void |
incrementPageCount()
Increases the page count by 1. |
void |
layoutComplete()
|
org.axsl.area.PageArea |
makePage(org.axsl.area.PageCollection.Force forceValue)
|
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 |
padPagesAtBeginning()
This method creates any blank pages that are needed at the beginning of an PageCollection to meet the related PageSequence's constraints. |
PageCollection |
previousPageCollection()
Returns the PageCollection previous to this one from the sequence of PageCollection instances. |
void |
render(org.axsl.galley.RenderVisitor visitor)
|
int |
sequence()
Returns the sequence number of this PageCollection, starting at 0. |
void |
setParent(AreaNode node)
Sets the parent node. |
org.axsl.fo.fo.PageSequence |
traitGeneratedBy()
|
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, getGalley |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Methods inherited from interface org.axsl.area.AreaNode |
---|
ancestorArea, ancestorBlockContentFactory, ancestorNormalBlockArea, ancestorTableArea, 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 PageRA getPage()
getPage
in interface org.axsl.area.AreaNode
getPage
in class AreaNode
public org.axsl.fo.fo.PageSequence getPageSequence()
getPageSequence
in interface org.axsl.area.PageCollection
public int getPageCount()
getPageCount
in interface org.axsl.area.PageCollection
public void incrementPageCount()
public int sequence()
public PageCollection previousPageCollection()
public int getCurrentPageNumber()
public int getLastPageNumber()
public List<org.axsl.fo.fo.Marker> getCurrentPageSequenceMarkers()
public List<org.axsl.fo.fo.Marker> getDocumentMarkers()
public org.axsl.area.PageArea makePage(org.axsl.area.PageCollection.Force forceValue) throws org.axsl.area.AreaTreeException
makePage
in interface org.axsl.area.PageCollection
org.axsl.area.AreaTreeException
public void padPagesAtBeginning() throws org.axsl.area.AreaTreeException
org.axsl.area.AreaTreeException
- If the FO Tree cannot provide the
information needed to add the pages needed for padding.public void layoutComplete() throws org.axsl.area.AreaTreeException
layoutComplete
in interface org.axsl.area.PageCollection
org.axsl.area.AreaTreeException
public AreaTree getAreaTree()
AreaNode
getAreaTree
in interface org.axsl.area.AreaNode
getAreaTree
in interface org.axsl.area.PageCollection
getAreaTree
in class AreaNode
public PageCollection ancestorPageCollection()
ancestorPageCollection
in class AreaNode
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 AreaTree 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<PageRA> 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.PageSequence traitGeneratedBy()
traitGeneratedBy
in interface org.axsl.area.AreaNode
traitGeneratedBy
in class AreaNode
public org.axsl.common.PositiveIntegerFormatter getPageNumberFormatter()
public CharSequence getPageNumberPrefix()
public CharSequence getPageNumberSuffix()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |