|
||||||||||
| 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
org.foray.area.AbstractInlineArea
public abstract class AbstractInlineArea
Common superclass for all areas generated by inline formatting objects.
This should not be confused with the more specific class InlineArea
which specifically handles areas generated by the fo:inline object.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.foray.common.AbstractOrderedTreeNode |
|---|
AbstractOrderedTreeNode.PostOrderDescendantIterator |
| Constructor Summary | |
|---|---|
protected |
AbstractInlineArea()
Constructor. |
| Method Summary | |
|---|---|
int |
baselineX()
|
int |
baselineY()
|
org.axsl.common.value.RelativeAxis |
contentStackingAxis()
Returns the content stacking axis for this area. |
int |
crBpd()
|
int |
crIpd()
|
int |
crOriginX()
Overrides the normal Area logic to handle the adjustments needed on a line to handle centering, right-justification, etc. |
LineArea |
getLineArea()
|
Area |
getOverflowArea(Area childRequesting)
This method is used by child Areas to ask the parent Area into which Area the child Area's overflow should be placed. |
int |
getProgressionDimension()
Returns the actual total value, in millipoints, of the size of this area (not counting space-before, etc.) in its progression direction. |
void |
incrementProgressionDimension(int incrementAmount)
Change the progression-dimension used by this Area. |
boolean |
isAbsolutelyPositioned()
Indicates whether this Area is positioned absolutely or relatively. |
boolean |
isBlockArea()
Indicates whether this Area is a block area. |
boolean |
isFirstLeafOnLine()
Indicates whether this area is the first leaf area on the ancestor line. |
boolean |
isLastLeafOnLine()
Indicates whether this area is the first leaf area on the ancestor line. |
void |
setProgressionDimension(int progressionDimension)
Sets the progression-dimension used by this Area. |
int |
traitBaselineShift()
Returns the baseline shift amount for this area. |
int |
traitEndIndent()
Returns the end-indent trait. |
int |
traitSpaceAfterOptimum()
Returns the space-after optimum trait for this area. |
int |
traitSpaceBeforeOptimum()
Returns the space-before optimum trait for this area. |
int |
traitStartIndent()
Returns the start-indent trait. |
protected Area |
validateNewParent(AreaNode node)
Standard validation routine for child classes that are setting a new parent. |
| 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.GeneralInlineArea |
|---|
traitColor, traitOverlineScore, traitOverlineScoreColor, traitThroughScore, traitThroughScoreColor, traitUnderlineScore, traitUnderlineScoreColor |
| Methods inherited from interface org.axsl.galley.Area |
|---|
brBpd, brIpd, brOriginX, brOriginY, crOriginY, destinationName, generatedByExists, generatedByName, isLinkRoot, linkDestination, linkType, traitId |
| Methods inherited from interface org.axsl.galley.AreaNode |
|---|
getAreaName, getChildAt, getGalley, render |
| Methods inherited from interface javax.swing.tree.TreeNode |
|---|
children, getAllowsChildren, getChildCount, getIndex, getParent, isLeaf |
| 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 org.axsl.fo.FoContext |
|---|
bpdAncestorBlockOrRa, getGraftingPoint, heightContainingBlock, ipdAncestorBlockArea, ipdAncestorBlockOrRa, ipdContainingRefArea, ipdParentArea, isFirst, isLast, tableWidth, widthContainingBlock |
| Constructor Detail |
|---|
protected AbstractInlineArea()
| Method Detail |
|---|
public boolean isBlockArea()
Area
isBlockArea in class Areapublic org.axsl.common.value.RelativeAxis contentStackingAxis()
Area
contentStackingAxis in class AreaRelativeAxis.BLOCK_PROGRESSION or
RelativeAxis.INLINE_PROGRESSION, depending on whether the
contents of this area stack in the block-progression-direction or the
inline-progression-direction.
The default value is that contents stack in the BPD. Classes that
stack in the IPD should override this method.
public Area getOverflowArea(Area childRequesting)
throws org.axsl.area.AreaTreeException
Area
getOverflowArea in class AreachildRequesting - Child Areas ask
org.axsl.area.AreaTreeException - If the Area is unable to find or create the
overflow area.public int crOriginX()
crOriginX in class Areapublic int baselineX()
baselineX in interface org.axsl.galley.GeneralInlineAreapublic int baselineY()
baselineY in interface org.axsl.galley.GeneralInlineAreapublic int traitBaselineShift()
public int crIpd()
crIpd in interface org.axsl.area.AreacrIpd in class Areapublic int crBpd()
crBpd in interface org.axsl.area.AreacrBpd in class Areapublic LineArea getLineArea()
getLineArea in interface org.axsl.galley.GeneralInlineAreapublic void setProgressionDimension(int progressionDimension)
Area
setProgressionDimension in class AreaprogressionDimension - The new progression-dimension value for this
Area.public void incrementProgressionDimension(int incrementAmount)
Area
incrementProgressionDimension in class AreaincrementAmount - The amount by which the progression-dimension
should be changed for this area.
Positive values increase the progression-dimension, negative values
decrease it.public int getProgressionDimension()
AreaReturns the actual total value, in millipoints, of the size of this area (not counting space-before, etc.) in its progression direction. This value does not include space-before, etc., but does include borders and padding. For block areas, the progression dimension is the block-progression-dimension. For inline areas, it is the inline-progression-dimension.
getProgressionDimension in class Areapublic boolean isAbsolutelyPositioned()
Area
isAbsolutelyPositioned in class Area
protected Area validateNewParent(AreaNode node)
throws org.axsl.area.AreaTreeException
node - The new parent node.
org.axsl.area.AreaTreeException - If the node is not either a LineArea or
an AbstractInlineArea.public int traitSpaceBeforeOptimum()
Area
traitSpaceBeforeOptimum in class Areapublic int traitSpaceAfterOptimum()
Area
traitSpaceAfterOptimum in class Areapublic int traitEndIndent()
Area
traitEndIndent in class Areapublic int traitStartIndent()
Area
traitStartIndent in class Areapublic boolean isFirstLeafOnLine()
public boolean isLastLeafOnLine()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||