|
||||||||||
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.ContainerRA
org.foray.area.TableCellRA
public final class TableCellRA
Area containing all or part of a table-cell.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.foray.common.AbstractOrderedTreeNode |
---|
AbstractOrderedTreeNode.PostOrderDescendantIterator |
Method Summary | |
---|---|
org.axsl.common.value.RelativeAxis |
contentStackingAxis()
Returns the content stacking axis for this area. |
int |
crBpd()
|
int |
crIpd()
|
int |
crOriginX()
|
String |
getAreaName()
|
int |
getCenteringPaddingAfter()
Returns the padding needed on the bottom of this cell to center it. |
int |
getCenteringPaddingBefore()
Returns the padding needed on the top of this cell to center it. |
int |
getCenteringPaddingEnd()
Returns the padding needed on the right of this cell to center it. |
int |
getCenteringPaddingStart()
Returns the padding needed on the left of this cell to center it. |
List<AreaNode> |
getChildren()
Return the List of this node's children. |
int |
getContentBPD()
Returns the height of the content in this cell. |
org.axsl.graphic.Graphic |
getGraphic()
|
FOLinkage |
getLinkage()
Returns the raw "generated by" instance. |
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 |
getPaddingAfter()
Return the total padding on the bottom of this cell. |
int |
getPaddingBefore()
Return the total padding on the top of this cell. |
int |
getPaddingEnd()
Return the total padding on the right of this cell. |
int |
getPaddingStart()
Return the total padding on the left of this cell. |
TableRowContainer |
getParent()
|
int |
getProgressionDimension()
Returns the actual total value, in millipoints, of the size of this area (not counting space-before, etc.) in its progression direction. |
int |
getStartAdjust()
Offset of content rectangle, in inline-progression-direction, relative to the column start edge. |
void |
incrementProgressionDimension(int incrementAmount)
Change the progression-dimension used by this Area. |
boolean |
isAbsolutelyPositioned()
Indicates whether this Area is positioned absolutely or relatively. |
BlockContainerRA |
makeBlockContainerArea(org.axsl.fo.fo.BlockContainer blockContainer,
org.axsl.fo.fo.GraftingPoint graftingPoint)
|
ListBlockArea |
makeListBlockArea(org.axsl.fo.fo.ListBlock listBlock,
org.axsl.fo.fo.GraftingPoint graftingPoint)
|
NormalBlockArea |
makeNormalBlockArea(org.axsl.fo.fo.Block block,
org.axsl.fo.fo.GraftingPoint graftingPoint)
|
TableRA |
makeTableArea(org.axsl.fo.fo.Table table,
org.axsl.fo.fo.GraftingPoint graftingPoint)
|
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 |
render(org.axsl.galley.RenderVisitor visitor)
|
void |
setCenteringPaddingAfter(int padding)
Sets the bottom padding value due to centering. |
void |
setCenteringPaddingBefore(int padding)
Sets the top padding value due to centering. |
void |
setCenteringPaddingEnd(int padding)
Sets the right padding value due to centering. |
void |
setCenteringPaddingStart(int padding)
Sets the left padding value due to centering. |
void |
setParent(AreaNode node)
Sets the parent node. |
void |
setProgressionDimension(int progressionDimension)
Sets the progression-dimension used by this Area. |
Color |
traitBackgroundColor()
|
org.axsl.graphic.Graphic |
traitBackgroundImage()
|
org.axsl.common.value.BackgroundRepeat |
traitBackgroundRepeat()
|
Color |
traitBorderAfterColor()
|
org.axsl.common.value.BorderStyle |
traitBorderAfterStyle()
Returns the border style for the "after" edge of this Area. |
int |
traitBorderAfterWidth()
Returns the border-after-width trait for this area. |
Color |
traitBorderBeforeColor()
|
org.axsl.common.value.BorderStyle |
traitBorderBeforeStyle()
Returns the border style for the "before" edge of this Area. |
int |
traitBorderBeforeWidth()
Returns the border-before-width trait for this area. |
Color |
traitBorderEndColor()
|
org.axsl.common.value.BorderStyle |
traitBorderEndStyle()
Returns the border style for the "end" edge of this Area. |
int |
traitBorderEndWidth()
Returns the border-end-width trait for this area. |
Color |
traitBorderStartColor()
|
org.axsl.common.value.BorderStyle |
traitBorderStartStyle()
Returns the border style for the "start" edge of this Area. |
int |
traitBorderStartWidth()
Returns the border-start-width trait for this area. |
int |
traitColumnNumber()
Returns the 1-based column number for this column. |
org.axsl.common.value.DisplayAlign |
traitDisplayAlign()
Returns the display-align trait for this Area. |
int |
traitEndIndent()
Returns the end-indent trait. |
org.axsl.fo.fo.TableCell |
traitGeneratedBy()
|
int |
traitIPDimensionOpt()
Return the optimum IP dimension for this area. |
int |
traitNumberColumnsSpanned()
Return the number of columns spanned by this cell. |
int |
traitNumberRowsSpanned()
Return the number of rows spanned by this cell. |
int |
traitPaddingAfter()
Returns the padding-after trait for this area. |
int |
traitPaddingBefore()
Returns the padding-before trait for this area. |
int |
traitPaddingEnd()
Returns the padding-end trait for this area. |
int |
traitPaddingStart()
Returns the padding-start trait for this area. |
int |
traitSpaceAfterOptimum()
Returns the space-after optimum trait for this area. |
int |
traitSpaceBeforeOptimum()
Returns the space-before optimum trait for this area. |
int |
traitSpaceEndOptimum()
Returns the space-end optimum trait for this area. |
int |
traitSpaceStartOptimum()
Returns the space-start optimum trait for this area. |
int |
traitStartIndent()
Returns the start-indent trait. |
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.BackgroundArea |
---|
prBpd, prIpd, prOriginX, prOriginY |
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 |
---|
getGalley |
Methods inherited from interface javax.swing.tree.TreeNode |
---|
children, getAllowsChildren, getChildCount, getIndex, isLeaf |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Methods inherited from interface org.axsl.area.Area |
---|
pdAvailable |
Methods inherited from interface org.axsl.area.AreaNode |
---|
ancestorArea, ancestorBlockContentFactory, ancestorNormalBlockArea, ancestorTableArea, getAreaTree, getPage, isFirstChildOfGeneratedBy, nearestArea, nearestGeneratedByBlockLevelFo, removeChild, siblingIndex |
Methods inherited from interface org.axsl.fo.FoContext |
---|
bpdAncestorBlockOrRa, getGraftingPoint, heightContainingBlock, ipdAncestorBlockArea, ipdAncestorBlockOrRa, ipdContainingRefArea, ipdParentArea, isFirst, isLast, tableWidth, widthContainingBlock |
Method Detail |
---|
public int getPaddingBefore()
public int getPaddingStart()
public int getPaddingAfter()
public int getPaddingEnd()
public int traitNumberRowsSpanned()
public int traitNumberColumnsSpanned()
public int getCenteringPaddingAfter()
public int getCenteringPaddingStart()
public int getCenteringPaddingEnd()
public int getCenteringPaddingBefore()
public void setCenteringPaddingAfter(int padding)
padding
- The new centering bottom padding value.public void setCenteringPaddingStart(int padding)
padding
- The new centering left padding value.public void setCenteringPaddingEnd(int padding)
padding
- The new centering right padding value.public void setCenteringPaddingBefore(int padding)
padding
- The new centering top padding value.public int getStartAdjust()
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 org.axsl.graphic.Graphic getGraphic()
getGraphic
in interface org.axsl.galley.GraphicArea
public int crIpd()
crIpd
in interface org.axsl.area.Area
crIpd
in class Area
public int crBpd()
crBpd
in interface org.axsl.area.Area
crBpd
in class Area
public int crOriginX()
crOriginX
in class Area
public boolean optimize()
AreaNode
PageRA.layoutComplete()
.
optimize
in class AreaNode
public org.axsl.common.value.RelativeAxis contentStackingAxis()
Area
contentStackingAxis
in class Area
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 TableRowContainer 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<AreaNode> getChildren()
AbstractOrderedTreeNode
getChildren
in class AreaNode
public TableRA makeTableArea(org.axsl.fo.fo.Table table, org.axsl.fo.fo.GraftingPoint graftingPoint)
makeTableArea
in interface org.axsl.area.BlockContentFactory
public NormalBlockArea makeNormalBlockArea(org.axsl.fo.fo.Block block, org.axsl.fo.fo.GraftingPoint graftingPoint)
makeNormalBlockArea
in interface org.axsl.area.BlockContentFactory
public BlockContainerRA makeBlockContainerArea(org.axsl.fo.fo.BlockContainer blockContainer, org.axsl.fo.fo.GraftingPoint graftingPoint)
makeBlockContainerArea
in interface org.axsl.area.BlockContentFactory
public ListBlockArea makeListBlockArea(org.axsl.fo.fo.ListBlock listBlock, org.axsl.fo.fo.GraftingPoint graftingPoint)
makeListBlockArea
in interface org.axsl.area.BlockContentFactory
public Area getOverflowArea(Area childRequesting) throws org.axsl.area.AreaTreeException
Area
getOverflowArea
in class Area
childRequesting
- Child Areas ask
org.axsl.area.AreaTreeException
- If the Area is unable to find or create the
overflow area.public void setProgressionDimension(int progressionDimension)
Area
setProgressionDimension
in class Area
progressionDimension
- The new progression-dimension value for this
Area.public void incrementProgressionDimension(int incrementAmount)
Area
incrementProgressionDimension
in class Area
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 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.
Overrides theArea.getProgressionDimension()
method,
because TableCells get their progression-dimension from their parent
columns.
getProgressionDimension
in class Area
public int getContentBPD()
public int traitColumnNumber()
public FOLinkage getLinkage()
AreaNode
getLinkage
in class AreaNode
public org.axsl.fo.fo.TableCell traitGeneratedBy()
traitGeneratedBy
in interface org.axsl.area.AreaNode
traitGeneratedBy
in class AreaNode
public boolean isAbsolutelyPositioned()
Area
isAbsolutelyPositioned
in class Area
public org.axsl.graphic.Graphic traitBackgroundImage()
traitBackgroundImage
in interface org.axsl.galley.BackgroundArea
public Color traitBackgroundColor()
traitBackgroundColor
in interface org.axsl.galley.BackgroundArea
public org.axsl.common.value.BackgroundRepeat traitBackgroundRepeat()
traitBackgroundRepeat
in interface org.axsl.galley.BackgroundArea
public Color traitBorderBeforeColor()
traitBorderBeforeColor
in interface org.axsl.galley.BorderPaddingArea
public Color traitBorderStartColor()
traitBorderStartColor
in interface org.axsl.galley.BorderPaddingArea
public Color traitBorderEndColor()
traitBorderEndColor
in interface org.axsl.galley.BorderPaddingArea
public Color traitBorderAfterColor()
traitBorderAfterColor
in interface org.axsl.galley.BorderPaddingArea
public org.axsl.common.value.BorderStyle traitBorderStartStyle()
traitBorderStartStyle
in interface org.axsl.galley.BorderPaddingArea
public org.axsl.common.value.BorderStyle traitBorderEndStyle()
traitBorderEndStyle
in interface org.axsl.galley.BorderPaddingArea
public org.axsl.common.value.BorderStyle traitBorderBeforeStyle()
traitBorderBeforeStyle
in interface org.axsl.galley.BorderPaddingArea
public org.axsl.common.value.BorderStyle traitBorderAfterStyle()
traitBorderAfterStyle
in interface org.axsl.galley.BorderPaddingArea
public int traitBorderStartWidth()
Area
traitBorderStartWidth
in interface org.axsl.galley.BorderPaddingArea
traitBorderStartWidth
in class Area
public int traitBorderEndWidth()
Area
traitBorderEndWidth
in interface org.axsl.galley.BorderPaddingArea
traitBorderEndWidth
in class Area
public int traitBorderBeforeWidth()
Area
traitBorderBeforeWidth
in interface org.axsl.galley.BorderPaddingArea
traitBorderBeforeWidth
in class Area
public int traitBorderAfterWidth()
Area
traitBorderAfterWidth
in interface org.axsl.galley.BorderPaddingArea
traitBorderAfterWidth
in class Area
public int traitPaddingStart()
Area
traitPaddingStart
in class Area
public int traitPaddingEnd()
Area
traitPaddingEnd
in class Area
public int traitPaddingBefore()
Area
traitPaddingBefore
in class Area
public int traitPaddingAfter()
Area
traitPaddingAfter
in class Area
public int traitSpaceBeforeOptimum()
Area
traitSpaceBeforeOptimum
in class Area
public int traitSpaceAfterOptimum()
Area
traitSpaceAfterOptimum
in class Area
public int traitEndIndent()
Area
traitEndIndent
in class Area
public int traitStartIndent()
Area
traitStartIndent
in class Area
public int traitSpaceStartOptimum()
Area
traitSpaceStartOptimum
in class Area
public int traitSpaceEndOptimum()
Area
traitSpaceEndOptimum
in class Area
public org.axsl.common.value.DisplayAlign traitDisplayAlign()
public int traitIPDimensionOpt()
AreaFlexible
traitIPDimensionOpt
in class AreaFlexible
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |