Class TableRowRenderBox
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.layout.model.RenderNode
-
- org.pentaho.reporting.engine.classic.core.layout.model.RenderBox
-
- org.pentaho.reporting.engine.classic.core.layout.model.table.TableRowRenderBox
-
- All Implemented Interfaces:
Cloneable
public class TableRowRenderBox extends RenderBox
A table section box does not much rendering or layouting at all. It represents one of the three possible sections and behaves like any other block box. But (here it comes!) it refuses to be added to anything else than a TableRenderBox (a small check to save me a lot of insanity ..). For a valid layout, the major and minor axes need to be flipped.- Author:
- Thomas Morgner
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.pentaho.reporting.engine.classic.core.layout.model.RenderBox
RenderBox.BreakIndicator, RenderBox.RestrictFinishClearOut
-
Nested classes/interfaces inherited from class org.pentaho.reporting.engine.classic.core.layout.model.RenderNode
RenderNode.CacheState
-
-
Field Summary
-
Fields inherited from class org.pentaho.reporting.engine.classic.core.layout.model.RenderBox
FLAG_BOX_CONTAINS_PRESERVED_CONTENT, FLAG_BOX_INVALID_WIDOW_ORPHAN_NODE, FLAG_BOX_TABLE_SECTION_RESERVED, FLAG_BOX_TABLE_SECTION_RESERVED2, FLAG_BOX_TABLE_SECTION_RESERVED3, FLAG_BOX_TABLE_SECTION_RESERVED4, FLAG_BOX_TABLE_SECTION_RESERVED5
-
Fields inherited from class org.pentaho.reporting.engine.classic.core.layout.model.RenderNode
CACHE_CLEAN, CACHE_DEEP_DIRTY, CACHE_DIRTY, HORIZONTAL_AXIS, VERTICAL_AXIS
-
-
Constructor Summary
Constructors Constructor Description TableRowRenderBox()
TableRowRenderBox(StyleSheet styleSheet, InstanceID instanceID, BoxDefinition boxDefinition, ElementType elementType, ReportAttributeMap attributes, ReportStateKey stateKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChild(RenderNode child)
RenderBox
create(StyleSheet styleSheet)
long
extendHeight(RenderNode child, long heightOffset)
Notifies a box that one of its childs has extended its height.int
getNodeType()
int
getRowIndex()
boolean
isAutoGenerated()
boolean
isBodySection()
boolean
isIgnorableForRendering()
If that method returns true, the element will not be used for rendering.protected void
reinit(StyleSheet styleSheet, ElementType elementType, ReportAttributeMap attributes, InstanceID instanceId)
void
setBodySection(boolean bodySection)
void
setCachedY(long cachedY)
Defines the cached y position.void
setRowIndex(int rowIndex)
void
shiftCached(long amount)
boolean
useMinimumChunkWidth()
-
Methods inherited from class org.pentaho.reporting.engine.classic.core.layout.model.RenderBox
addChilds, addGeneratedChild, addGeneratedChilds, addOverflowArea, apply, clear, close, commit, decreaseContentReferenceCount, decreaseDescendantCount, decreaseTableReferenceCount, derive, deriveFrozen, extendHeightInBlockMode, extendHeightInRowMode, findNodeById, freeze, getAppliedContentRefCount, getBaselineInfo, getBoxDefinition, getChildCount, getContentAge, getContentAreaX1, getContentAreaX2, getContentBox, getContentRefCount, getDescendantCount, getEffectiveMinimumChunkSize, getFirstChild, getInsets, getInsetsLeft, getInsetsRight, getLastChild, getManualBreakIndicator, getName, getOrphanConstraintSize, getOrphanLeafCount, getOverflowAreaHeight, getOverflowAreaWidth, getParentWidowContexts, getPinned, getProcessKeyCached, getProcessKeyStepAge, getRawValue, getRestrictFinishedClearOut, getStateKey, getStaticBoxLayoutProperties, getStaticBoxPropertiesAge, getTableExportState, getTableRefCount, getTableValidationAge, getTextEllipseBox, getVerticalInsets, getWidowConstraintSize, getWidowConstraintSizeWithKeepTogether, getWidowLeafCount, increaseContentReferenceCount, increaseDescendantCount, increaseTableReferenceCount, isAcceptInlineBoxes, isAppendable, isAppliedOpen, isAppliedSeen, isBlockForPagebreakPurpose, isBoxOverflowX, isBoxOverflowY, isBreakAfter, isCommited, isContainsReservedContent, isContentRefHolder, isDeepFinishedTable, isDiscardable, isEmpty, isEmptyNodesHaveSignificance, isInvalidWidowOrphanNode, isMarkedOpen, isMarkedSeen, isOpen, isOrphanLeaf, isPinned, isPreventPagination, isProcessKeyCacheValid, isProcessKeyFinish, isRenderBox, isSizeSpecifiesBorderBox, markAsContentRefHolder, markBoxSeen, markPinned, remove, replaceChild, replaceChilds, resetCacheState, rollback, setBaselineInfo, setContainsReservedContent, setContentAge, setContentAreaX1, setContentAreaX2, setContentBox, setDeepFinished, setFirstChild, setInvalidWidowOrphanNode, setLastChild, setManualBreakIndicator, setMinimumChunkWidth, setName, setOpen, setOrphanConstraintSize, setOrphanLeafCount, setOverflowAreaHeight, setOverflowAreaWidth, setParentWidowContexts, setPreventPagination, setProcessKeyCached, setRawValue, setRestrictFinishedClearOut, setStateKey, setStaticBoxPropertiesAge, setTableExportState, setTableValidationAge, setTextEllipseBox, setWidowConstraintSize, setWidowConstraintSizeWithKeepTogether, setWidowLeafCount, split, toString, updateChangeTracker
-
Methods inherited from class org.pentaho.reporting.engine.classic.core.layout.model.RenderNode
clone, getApplyState, getAttributes, getCachedAge, getCachedHeight, getCachedWidth, getCachedX, getCachedX2, getCachedY, getCachedY2, getCacheState, getChangeTracker, getEffectiveMarginBottom, getEffectiveMarginTop, getElementType, getHeight, getInstanceId, getLayoutNodeType, getLayoutParent, getLinebreakAge, getLogicalPage, getMajorAxis, getMaximumBoxWidth, getMinimumChunkWidth, getMinorAxis, getNext, getNodeLayoutProperties, getParent, getPrev, getStyleSheet, getValidateModelAge, getVerticalTextAlignment, getWidth, getX, getY, getY2, isBoxVisible, isBoxVisible, isCacheValid, isFinishedPaginate, isFinishedTable, isFlag, isFrozen, isLinebreakCacheValid, isNodeVisible, isNodeVisible, isNodeVisible, isNodeVisible, isParanoidModelChecks, isValidateModelCacheValid, isValidateModelResult, isVirtualNode, isVisible, isWidowBox, markApplyStateDirty, resetValidateModelResult, setCachedAge, setCachedHeight, setCachedWidth, setCachedX, setFinishedPaginate, setFinishedTable, setFlag, setHeight, setLinebreakAge, setMaximumBoxWidth, setNext, setNextUnchecked, setParent, setPrev, setPrevUnchecked, setValidateModelResult, setVirtualNode, setWidowBox, setWidth, setX, setY, shift, updateCacheState
-
-
-
-
Constructor Detail
-
TableRowRenderBox
public TableRowRenderBox()
-
TableRowRenderBox
public TableRowRenderBox(StyleSheet styleSheet, InstanceID instanceID, BoxDefinition boxDefinition, ElementType elementType, ReportAttributeMap attributes, ReportStateKey stateKey)
-
-
Method Detail
-
useMinimumChunkWidth
public boolean useMinimumChunkWidth()
- Overrides:
useMinimumChunkWidth
in classRenderBox
-
isAutoGenerated
public boolean isAutoGenerated()
-
getNodeType
public int getNodeType()
- Specified by:
getNodeType
in classRenderNode
-
isIgnorableForRendering
public boolean isIgnorableForRendering()
If that method returns true, the element will not be used for rendering. For the purpose of computing sizes or performing the layouting (in the validate() step), this element will treated as if it is not there. If the element reports itself as non-empty, however, it will affect the margin computation.- Overrides:
isIgnorableForRendering
in classRenderNode
- Returns:
-
reinit
protected void reinit(StyleSheet styleSheet, ElementType elementType, ReportAttributeMap attributes, InstanceID instanceId)
- Overrides:
reinit
in classRenderNode
-
isBodySection
public boolean isBodySection()
-
setBodySection
public void setBodySection(boolean bodySection)
-
getRowIndex
public int getRowIndex()
- Overrides:
getRowIndex
in classRenderNode
-
setRowIndex
public void setRowIndex(int rowIndex)
-
setCachedY
public void setCachedY(long cachedY)
Description copied from class:RenderNode
Defines the cached y position. This position is known after all layouting steps have been finished. In most cases the layouter tries to reuse the cached values instead of recomputing everything from scratch on each iteration. The cached positions always specify the border-box. If the user specified sizes as content-box sizes, the layouter converts them into border-box sizes before filling the cache.- Overrides:
setCachedY
in classRenderNode
- Parameters:
cachedY
- the cached y position
-
shiftCached
public void shiftCached(long amount)
- Overrides:
shiftCached
in classRenderNode
-
extendHeight
public long extendHeight(RenderNode child, long heightOffset)
Description copied from class:RenderBox
Notifies a box that one of its childs has extended its height. The child's height property already contains the new height. Theamount
given is the offset from the old height to the new height, and is always a positive number.- Overrides:
extendHeight
in classRenderBox
-
addChild
public void addChild(RenderNode child)
-
create
public RenderBox create(StyleSheet styleSheet)
-
-