|
||||||||||
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.Area
org.foray.area.AreaFlexible
public abstract class AreaFlexible
Subclasses are areas that need to store their own size and spacing
information. The opposite of AreaFlexible is AreaFixed
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.foray.common.AbstractOrderedTreeNode |
---|
AbstractOrderedTreeNode.PostOrderDescendantIterator |
Constructor Summary | |
---|---|
protected |
AreaFlexible()
Constructor. |
Method Summary | |
---|---|
int |
computeInitialPD()
Initialize the progression dimension for this Area. |
protected int |
crIPDBlockArea()
Returns the IPD for a block area. |
int |
crOriginBPDOffset()
The difference, in millipoints, between the page-viewport-area's before-edge and this Area's content-rectangle before-edge. |
int |
crOriginIPDOffset()
The difference, in millipoints, between the page-viewport-area's start-edge and this Area's content-rectangle start-edge. |
int |
getAnteriorSpace()
Returns the current value of the resolved "anterior" space for this Area. |
void |
incrementAnteriorSpace(int incrementAmount)
Change the anteriorSpace for this Area by incrementAmount. |
protected void |
incrementParentPD(int incrementAmount)
Increments the parent's PD based on a change in this's. |
void |
initializeAnteriorSpace()
Computes the initial value of anteriorSpace for this Area. |
int |
pdAvailable()
|
int |
pdUsedBySiblings()
Returns the total amount of the progression-dimension that has been used by siblings. |
void |
removeChild(AreaNode areaNode)
Remove a child. |
void |
setAnteriorSpace(int anteriorSpace)
Sets the value of the anterior space for this element. |
void |
setMinimumProgressionDimension(int minPD)
Set the minimum progression dimension for this Area. |
protected void |
setParentPD(int progressionDimension)
Sets the parent's PD based on a change in this's. |
abstract int |
traitIPDimensionOpt()
Return the optimum IP dimension for this area. |
int |
usedProgressionDimension()
The total amount of progressionDimension that is consumed by this Area. |
int |
usedProgressionDimensionNormalFlow()
Returns the PD used by this area. |
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 |
---|
getAreaName, getChildAt, getGalley, render |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Methods inherited from interface org.axsl.area.AreaNode |
---|
ancestorArea, ancestorBlockContentFactory, ancestorNormalBlockArea, ancestorTableArea, getAreaName, getAreaTree, getPage, isFirstChildOfGeneratedBy, nearestGeneratedByBlockLevelFo, removeChild, siblingIndex, traitGeneratedBy |
Methods inherited from interface javax.swing.tree.TreeNode |
---|
children, getAllowsChildren, getChildCount, getIndex, getParent, isLeaf |
Methods inherited from interface org.axsl.fo.FoContext |
---|
bpdAncestorBlockOrRa, getGraftingPoint, heightContainingBlock, ipdAncestorBlockArea, ipdAncestorBlockOrRa, ipdContainingRefArea, ipdParentArea, isFirst, isLast, tableWidth, widthContainingBlock |
Constructor Detail |
---|
protected AreaFlexible()
Method Detail |
---|
public int getAnteriorSpace()
Returns the current value of the resolved "anterior" space for this Area. Anterior space is either space-before (for block areas) or space-start (for inline-areas). This space is not really part of the Area itself, but rather is a factor in determining what absolute position the Area occupies. This should not be used for items like start-indent, which are actually inside the Area itself.
Systems that compute anteriorSpace need to consider space-after and space-end constraints from previous Areas in that computation, but only the resolved value needs to be stored in the Area itself (the constraints are stored in FOTree). The FOray designers chose to store anterior Space in the posterior Area instead of storing the posterior Space in the anterior Area because the Area needs to know how much space to place before itself, but the last Area does not need to know how much space to place after itself, i.e. space after the last Area is a no op.
The value is stored in the AreaFlexible, and the AreaFlexible will initialize it with some reasonable amount, but the Layout system is responsible to compute and set its final value.
public void setAnteriorSpace(int anteriorSpace)
getAnteriorSpace()
for a description of "anterior space".
anteriorSpace
- The anteriorSpace to set.public void incrementAnteriorSpace(int incrementAmount)
getAnteriorSpace()
for a description of "anterior space".
incrementAmount
- The amount to adjust the anteriorSpace.protected void setParentPD(int progressionDimension)
progressionDimension
- This's new progression dimension.protected void incrementParentPD(int incrementAmount)
incrementAmount
- The amount this's PD has been incremented.public void setMinimumProgressionDimension(int minPD)
Area
setMinimumProgressionDimension
in class Area
minPD
- The minimum progression dimension to set.public int usedProgressionDimension()
public int usedProgressionDimensionNormalFlow()
protected int crIPDBlockArea()
public void initializeAnteriorSpace()
public int computeInitialPD()
public int pdAvailable()
pdAvailable
in interface org.axsl.area.Area
pdAvailable
in class Area
public void removeChild(AreaNode areaNode)
areaNode
- The child to remove.public int pdUsedBySiblings()
Area
pdUsedBySiblings
in class Area
public int crOriginIPDOffset()
Area
crOriginIPDOffset
in class Area
public int crOriginBPDOffset()
Area
crOriginBPDOffset
in class Area
public abstract int traitIPDimensionOpt()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |