|
||||||||||
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
public abstract class Area
Abstract superclass for all Areas in the AreaTree.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.foray.common.AbstractOrderedTreeNode |
---|
AbstractOrderedTreeNode.PostOrderDescendantIterator |
Constructor Summary | |
---|---|
protected |
Area()
Constructor. |
Method Summary | |
---|---|
int |
brBpd()
|
int |
brIpd()
|
int |
brOriginBPDOffset()
The difference, in millipoints, between the page-viewport-area's before-edge and this Area's border-rectangle before-edge. |
int |
brOriginIPDOffset()
The difference, in millipoints, between the page-viewport-area's start-edge and this Area's border-rectangle start-edge. |
int |
brOriginX()
|
int |
brOriginY()
|
Rectangle2D.Float |
brPoints()
Returns the border rectangle measured in points (1/72 of an inch). |
abstract org.axsl.common.value.RelativeAxis |
contentStackingAxis()
Returns the content stacking axis for this area. |
org.axsl.common.value.AbsoluteAxis |
contentStackingAxisAbsolute()
Return the absolute axis for this area. |
org.axsl.common.value.AbsoluteDirection |
contentStackingDirectionAbsolute()
Return the absolute direction for this area. |
abstract int |
crBpd()
|
abstract int |
crIpd()
|
abstract int |
crOriginBPDOffset()
The difference, in millipoints, between the page-viewport-area's before-edge and this Area's content-rectangle before-edge. |
abstract int |
crOriginIPDOffset()
The difference, in millipoints, between the page-viewport-area's start-edge and this Area's content-rectangle start-edge. |
int |
crOriginX()
|
int |
crOriginY()
|
Rectangle2D.Float |
crPoints()
Returns the content rectangle measured in points (1/72 of an inch). |
String |
destinationName()
|
boolean |
generatedByExists()
|
String |
generatedByName()
|
Area |
getAreaParent()
Returns the parent Area. |
org.axsl.common.value.AbsoluteAxis |
getBPAxis()
Tells which axis (horizontal or vertical) is the block-progression axis. |
org.axsl.font.Font.WritingMode |
getFontWritingMode()
Returns the writing mode associated with this Area. |
org.axsl.common.value.AbsoluteAxis |
getIPAxis()
Tells which axis (horizontal or vertical) is the inline-progression axis. |
org.axsl.area.BlockContainerRefArea |
getNearestAncestorAreaContainer()
Returns the nearest ancestor area that is a block container. |
abstract 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. |
abstract int |
getProgressionDimension()
Returns the actual total value, in millipoints, of the size of this area (not counting space-before, etc.) in its progression direction. |
org.axsl.common.value.WritingMode |
getWritingMode()
Returns the writing-mode for this area. |
boolean |
hasFenceFollowing()
Indicates whether there is an absolute fence following this Area for purposes of stacking constraints. |
boolean |
hasFencePreceding()
Indicates whether there is an absolute fence preceding this Area for purposes of stacking constraints. |
abstract void |
incrementProgressionDimension(int incrementAmount)
Change the progression-dimension used by this Area. |
abstract boolean |
isAbsolutelyPositioned()
Indicates whether this Area is positioned absolutely or relatively. |
boolean |
isBlockArea()
Indicates whether this Area is a block area. |
protected boolean |
isFirstChildOfParent()
Indicates whether this area is its parent's first child. |
boolean |
isInNormalFlow()
Indicates whether this Area is part of the normal flow. |
protected boolean |
isLastChildOfParent()
Indicates whether this area is its parent's last child. |
boolean |
isLinkRoot()
|
int |
larBPD()
Returns the BPD of the LAR. |
int |
larIPD()
Returns the IPD of the LAR. |
int |
larOriginX()
See brOriginX() where point-of-origin is defined. |
int |
larOriginY()
See brOriginX() where point-of-origin is defined. |
String |
linkDestination()
|
org.axsl.common.value.LinkType |
linkType()
|
int |
narBPD()
Retursn the BPD of the NAR. |
int |
narIPD()
Returns the IPD of the NAR. |
int |
narOriginX()
See brOriginX() where point-of-origin is defined. |
int |
narOriginY()
See brOriginX() where point-of-origin is defined. |
Area |
nearestArea()
|
int |
parentAllocationWidth()
Returns the allocation width of this area's parent. |
abstract int |
pdAvailable()
|
abstract int |
pdUsedBySiblings()
Returns the total amount of the progression-dimension that has been used by siblings. |
int |
prBpd()
Returns the BPD of the PR. |
int |
prIpd()
Returns the IPD of the PR. |
int |
prOriginBPDOffset()
The difference, in millipoints, between the page-viewport-area's before-edge and this Area's padding-rectangle before-edge. |
int |
prOriginIPDOffset()
The difference, in millipoints, between the page-viewport-area's start-edge and this Area's padding-rectangle start-edge. |
int |
prOriginX()
Implementation of BackgroundArea.prOriginX() . |
int |
prOriginY()
Implementation of BackgroundArea.prOriginY() . |
short |
referenceOrientationCumulative()
Returns the cumulative reference orientation for this area. |
abstract void |
setMinimumProgressionDimension(int minimumPD)
Set the minimum progression dimension for this Area. |
abstract void |
setProgressionDimension(int progressionDimension)
Sets the progression-dimension used by this Area. |
boolean |
shouldAdjustParentPD()
Indicates whether the parent progression dimension should be adjusted. |
AreaClass |
traitAreaClass()
Returns the area-class trait for this Area. |
abstract int |
traitBorderAfterWidth()
Returns the border-after-width trait for this area. |
abstract int |
traitBorderBeforeWidth()
Returns the border-before-width trait for this area. |
abstract int |
traitBorderEndWidth()
Returns the border-end-width trait for this area. |
abstract int |
traitBorderStartWidth()
Returns the border-start-width trait for this area. |
abstract int |
traitEndIndent()
Returns the end-indent trait. |
String |
traitId()
|
boolean |
traitIsFirst()
Indicates whether this is the first child of the "generated by". |
boolean |
traitIsLast()
Indicates whether this is the last child of the "generated by". |
boolean |
traitIsReferenceArea()
Indicates whether this area is a reference area. |
abstract int |
traitPaddingAfter()
Returns the padding-after trait for this area. |
abstract int |
traitPaddingBefore()
Returns the padding-before trait for this area. |
abstract int |
traitPaddingEnd()
Returns the padding-end trait for this area. |
abstract int |
traitPaddingStart()
Returns the padding-start trait for this area. |
abstract int |
traitSpaceAfterOptimum()
Returns the space-after optimum trait for this area. |
abstract int |
traitSpaceBeforeOptimum()
Returns the space-before optimum trait for this area. |
abstract int |
traitSpaceEndOptimum()
Returns the space-end optimum trait for this area. |
abstract int |
traitSpaceStartOptimum()
Returns the space-start optimum trait for this area. |
abstract int |
traitStartIndent()
Returns the start-indent trait. |
org.axsl.common.value.WhiteSpaceTreatment |
traitWhiteSpaceTreatment()
Returns the whitespace-treatment trait for 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 Area()
Method Detail |
---|
public org.axsl.area.BlockContainerRefArea getNearestAncestorAreaContainer()
public boolean generatedByExists()
public String generatedByName()
public abstract int traitEndIndent()
public abstract int traitStartIndent()
public int parentAllocationWidth()
protected boolean isFirstChildOfParent()
protected boolean isLastChildOfParent()
public Area getAreaParent()
public abstract int pdUsedBySiblings()
public int brIpd()
public int brBpd()
public int brOriginIPDOffset()
public int brOriginBPDOffset()
public int brOriginX()
public int brOriginY()
public int prIpd()
public int prBpd()
public int prOriginIPDOffset()
public int prOriginBPDOffset()
public int prOriginX()
BackgroundArea.prOriginX()
.
public int prOriginY()
BackgroundArea.prOriginY()
.
public abstract int crIpd()
crIpd
in interface org.axsl.area.Area
public abstract int crBpd()
crBpd
in interface org.axsl.area.Area
public abstract int crOriginIPDOffset()
public abstract int crOriginBPDOffset()
public int crOriginX()
public int crOriginY()
public int narIPD()
public int narBPD()
public int narOriginX()
brOriginX()
where point-of-origin is defined.
public int narOriginY()
brOriginX()
where point-of-origin is defined.
public int larIPD()
public int larBPD()
public int larOriginX()
brOriginX()
where point-of-origin is defined.
public int larOriginY()
brOriginX()
where point-of-origin is defined.
public boolean isBlockArea()
public abstract int traitSpaceBeforeOptimum()
public abstract int traitSpaceAfterOptimum()
public abstract int traitSpaceStartOptimum()
public abstract int traitSpaceEndOptimum()
public org.axsl.common.value.AbsoluteAxis getBPAxis()
AbsoluteAxis.HORIZONTAL
or
AbsoluteAxis.VERTICAL
, or null if writing-mode is invalid.public org.axsl.common.value.AbsoluteAxis getIPAxis()
AbsoluteAxis.HORIZONTAL
or
AbsoluteAxis.VERTICAL
, or null if writing-mode is invalid.public org.axsl.common.value.WritingMode getWritingMode()
public abstract org.axsl.common.value.RelativeAxis contentStackingAxis()
RelativeAxis.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 org.axsl.common.value.AbsoluteAxis contentStackingAxisAbsolute()
AbsoluteAxis.HORIZONTAL
or
AbsoluteAxis.VERTICAL
, depending on the relative content stacking
axis and the writing-mode.contentStackingAxis()
public org.axsl.common.value.AbsoluteDirection contentStackingDirectionAbsolute()
AbsoluteDirection.TOP_TO_BOTTOM
,
AbsoluteDirection.BOTTOM_TO_TOP
,
AbsoluteDirection.LEFT_TO_RIGHT
,
or AbsoluteDirection.RIGHT_TO_LEFT
, depending on the
writing-mode.public abstract int pdAvailable()
pdAvailable
in interface org.axsl.area.Area
public abstract int getProgressionDimension()
Returns 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.
public abstract void setProgressionDimension(int progressionDimension)
progressionDimension
- The new progression-dimension value for this
Area.public abstract void setMinimumProgressionDimension(int minimumPD)
minimumPD
- The minimum progression dimension to set.public abstract void incrementProgressionDimension(int incrementAmount)
incrementAmount
- The amount by which the progression-dimension
should be changed for this area.
Positive values increase the progression-dimension, negative values
decrease it.public abstract Area getOverflowArea(Area childRequesting) throws org.axsl.area.AreaTreeException
childRequesting
- Child Areas ask
org.axsl.area.AreaTreeException
- If the Area is unable to find or create the
overflow area.public boolean traitIsReferenceArea()
public short referenceOrientationCumulative()
public org.axsl.common.value.WhiteSpaceTreatment traitWhiteSpaceTreatment()
public boolean traitIsFirst()
public boolean traitIsLast()
public String destinationName()
public boolean isLinkRoot()
public org.axsl.common.value.LinkType linkType()
public String linkDestination()
public Rectangle2D.Float crPoints()
public Rectangle2D.Float brPoints()
public abstract boolean isAbsolutelyPositioned()
public boolean isInNormalFlow()
public boolean shouldAdjustParentPD()
public AreaClass traitAreaClass()
public boolean hasFencePreceding()
public boolean hasFenceFollowing()
public Area nearestArea()
nearestArea
in interface org.axsl.area.AreaNode
nearestArea
in class AreaNode
public String traitId()
public abstract int traitBorderStartWidth()
public abstract int traitBorderEndWidth()
public abstract int traitBorderBeforeWidth()
public abstract int traitBorderAfterWidth()
public abstract int traitPaddingStart()
public abstract int traitPaddingEnd()
public abstract int traitPaddingBefore()
public abstract int traitPaddingAfter()
public org.axsl.font.Font.WritingMode getFontWritingMode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |