org.foray.area
Class AbstractTablePartContainer

java.lang.Object
  extended by org.foray.common.AbstractOrderedTreeNode
      extended by org.foray.area.AreaNode
          extended by org.foray.area.Area
              extended by org.foray.area.AreaFlexible
                  extended by org.foray.area.ContainerRA
                      extended by org.foray.area.AbstractTablePartContainer
All Implemented Interfaces:
Iterable<org.axsl.galley.AreaNode>, TreeNode, org.axsl.area.AbstractTablePartContainer, org.axsl.area.Area, org.axsl.area.AreaNode, org.axsl.fo.FoContext, org.axsl.galley.BackgroundArea, org.axsl.galley.GraphicArea, OrderedTreeNode
Direct Known Subclasses:
TableBodyContainer, TableFooterContainer, TableHeaderContainer

public abstract class AbstractTablePartContainer
extends ContainerRA
implements org.axsl.galley.BackgroundArea, org.axsl.area.AbstractTablePartContainer

Abstract superclass for table-body, table-header, and table-footer areas.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.foray.common.AbstractOrderedTreeNode
AbstractOrderedTreeNode.PostOrderDescendantIterator
 
Constructor Summary
protected AbstractTablePartContainer(TableRA parentArea)
          Protected Constructor.
 
Method Summary
 org.axsl.common.value.RelativeAxis contentStackingAxis()
          Returns the content stacking axis for this area.
 List<TableRowContainer> getChildren()
          Return the List of this node's children.
 org.axsl.graphic.Graphic getGraphic()
           
 TableRA 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.
 void incrementProgressionDimension(int incrementAmount)
          Change the progression-dimension used by this Area.
 boolean isAbsolutelyPositioned()
          Indicates whether this Area is positioned absolutely or relatively.
 TableRowContainer makeTableRowContainer(org.axsl.fo.fo.TableRow node, org.axsl.fo.fo.GraftingPoint graftingPoint)
           
 void setParent(AreaNode node)
          Sets the parent node.
 void setProgressionDimension(int progressionDimension)
          Sets the progression-dimension used by this Area.
 int traitEndIndent()
          Returns the end-indent trait.
 int traitIPDimensionOpt()
          Return the optimum IP dimension 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.area.AreaFlexible
computeInitialPD, crIPDBlockArea, crOriginBPDOffset, crOriginIPDOffset, getAnteriorSpace, incrementAnteriorSpace, incrementParentPD, initializeAnteriorSpace, pdAvailable, pdUsedBySiblings, removeChild, setAnteriorSpace, setMinimumProgressionDimension, setParentPD, usedProgressionDimension, usedProgressionDimensionNormalFlow
 
Methods inherited from class org.foray.area.Area
brBpd, brIpd, brOriginBPDOffset, brOriginIPDOffset, brOriginX, brOriginY, brPoints, contentStackingAxisAbsolute, contentStackingDirectionAbsolute, crBpd, crIpd, crOriginX, crOriginY, crPoints, destinationName, generatedByExists, generatedByName, getAreaParent, getBPAxis, getFontWritingMode, getIPAxis, getNearestAncestorAreaContainer, getOverflowArea, getWritingMode, hasFenceFollowing, hasFencePreceding, isBlockArea, isFirstChildOfParent, isInNormalFlow, isLastChildOfParent, isLinkRoot, larBPD, larIPD, larOriginX, larOriginY, linkDestination, linkType, narBPD, narIPD, narOriginX, narOriginY, nearestArea, parentAllocationWidth, prBpd, prIpd, prOriginBPDOffset, prOriginIPDOffset, prOriginX, prOriginY, referenceOrientationCumulative, shouldAdjustParentPD, traitAreaClass, traitBorderAfterWidth, traitBorderBeforeWidth, traitBorderEndWidth, traitBorderStartWidth, traitId, traitIsFirst, traitIsLast, traitIsReferenceArea, traitPaddingAfter, traitPaddingBefore, traitPaddingEnd, traitPaddingStart, traitWhiteSpaceTreatment
 
Methods inherited from class org.foray.area.AreaNode
ancestorArea, ancestorBlockAreaNotALineArea, ancestorBlockContentFactory, ancestorBlockOrRa, ancestorGeneratedByBlockLevelFO, ancestorLineArea, ancestorNormalBlockArea, ancestorPageCollection, ancestorReferenceArea, ancestorSpanRA, ancestorTableArea, bpdAncestorBlockOrRa, getAllowsChildren, getAreaTree, getChildAt, getColor, getContainingReferenceArea, getFirstAreaChild, getFirstChild, getGalley, getGraftingPoint, getLastAreaChild, getLastChild, getLinkage, getLogger, getNextChildOfGeneratedBy, getNextSiblingArea, getNormalLinkage, getNormalLinkage, getOrderedParent, getPage, getPreviousChildOfGeneratedBy, getPreviousSiblingArea, getSiblings, hasUnresolvedRefId, heightContainingBlock, ipdAncestorBlockArea, ipdAncestorBlockOrRa, ipdContainingRefArea, ipdParentArea, isFirst, isFirstChildOfGeneratedBy, isGeneratedByBlockLevelFo, isLast, isLastChildOfGeneratedBy, iterator, linkage, nearestBeforeFloatArea, nearestFootnoteArea, nearestGeneratedByBlockLevelFo, nearestNormalBlockArea, nearestTableArea, optimize, optimizeChildren, registerWithLinkage, remove, removeChild, tableWidth, traitGeneratedBy, widthContainingBlock
 
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, traitBackgroundColor, traitBackgroundImage, traitBackgroundRepeat
 
Methods inherited from interface org.axsl.galley.Area
brBpd, brIpd, brOriginX, brOriginY, crBpd, crIpd, crOriginX, 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, 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, nearestArea, 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

AbstractTablePartContainer

protected AbstractTablePartContainer(TableRA parentArea)
Protected Constructor.

Parameters:
parentArea - The parent area.
Method Detail

makeTableRowContainer

public TableRowContainer makeTableRowContainer(org.axsl.fo.fo.TableRow node,
                                               org.axsl.fo.fo.GraftingPoint graftingPoint)
Specified by:
makeTableRowContainer in interface org.axsl.area.AbstractTablePartContainer

getGraphic

public org.axsl.graphic.Graphic getGraphic()
Specified by:
getGraphic in interface org.axsl.galley.GraphicArea

contentStackingAxis

public org.axsl.common.value.RelativeAxis contentStackingAxis()
Description copied from class: Area
Returns the content stacking axis for this area.

Specified by:
contentStackingAxis in class Area
Returns:
Either 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.

getParent

public TableRA getParent()
Specified by:
getParent in interface TreeNode
Specified by:
getParent in class AreaNode

setParent

public void setParent(AreaNode node)
               throws org.axsl.area.AreaTreeException
Description copied from class: AreaNode
Sets the parent node.

Specified by:
setParent in class AreaNode
Parameters:
node - The new parent node.
Throws:
org.axsl.area.AreaTreeException - If the parent node is not compatible with the implementations specification for a parent node.

getChildren

public List<TableRowContainer> getChildren()
Description copied from class: AbstractOrderedTreeNode
Return the List of this node's children.

Specified by:
getChildren in class AreaNode
Returns:
The List of this node's children.

setProgressionDimension

public void setProgressionDimension(int progressionDimension)
Description copied from class: Area
Sets the progression-dimension used by this Area.

Specified by:
setProgressionDimension in class Area
Parameters:
progressionDimension - The new progression-dimension value for this Area.

incrementProgressionDimension

public void incrementProgressionDimension(int incrementAmount)
Description copied from class: Area
Change the progression-dimension used by this Area.

Specified by:
incrementProgressionDimension in class Area
Parameters:
incrementAmount - The amount by which the progression-dimension should be changed for this area. Positive values increase the progression-dimension, negative values decrease it.

getProgressionDimension

public int getProgressionDimension()
Description copied from class: Area

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.

Specified by:
getProgressionDimension in class Area
Returns:
The progressionDimension.

isAbsolutelyPositioned

public boolean isAbsolutelyPositioned()
Description copied from class: Area
Indicates whether this Area is positioned absolutely or relatively.

Specified by:
isAbsolutelyPositioned in class Area
Returns:
True iff this Area is absolutely positioned.

traitSpaceBeforeOptimum

public int traitSpaceBeforeOptimum()
Description copied from class: Area
Returns the space-before optimum trait for this area.

Specified by:
traitSpaceBeforeOptimum in class Area
Returns:
The space-before optimum trait for this area.

traitSpaceAfterOptimum

public int traitSpaceAfterOptimum()
Description copied from class: Area
Returns the space-after optimum trait for this area.

Specified by:
traitSpaceAfterOptimum in class Area
Returns:
The space-after optimum trait for this area.

traitEndIndent

public int traitEndIndent()
Description copied from class: Area
Returns the end-indent trait.

Specified by:
traitEndIndent in class Area
Returns:
The end-indent trait.

traitStartIndent

public int traitStartIndent()
Description copied from class: Area
Returns the start-indent trait.

Specified by:
traitStartIndent in class Area
Returns:
The start-indent trait.

traitSpaceStartOptimum

public int traitSpaceStartOptimum()
Description copied from class: Area
Returns the space-start optimum trait for this area.

Specified by:
traitSpaceStartOptimum in class Area
Returns:
The space-start optimum trait for this area.

traitSpaceEndOptimum

public int traitSpaceEndOptimum()
Description copied from class: Area
Returns the space-end optimum trait for this area.

Specified by:
traitSpaceEndOptimum in class Area
Returns:
The space-end optimum trait for this area.

traitIPDimensionOpt

public int traitIPDimensionOpt()
Description copied from class: AreaFlexible
Return the optimum IP dimension for this area.

Specified by:
traitIPDimensionOpt in class AreaFlexible
Returns:
The optimum IP dimension for this area, or -1 for "auto".


Copyright © 2017. All rights reserved.