Class ParagraphRenderBox
- 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.BlockRenderBox
-
- org.pentaho.reporting.engine.classic.core.layout.model.ParagraphRenderBox
-
- All Implemented Interfaces:
Cloneable
public final class ParagraphRenderBox extends BlockRenderBox
Creation-Date: 03.04.2007, 13:38:00- 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 ParagraphRenderBox(StyleSheet styleSheet, InstanceID instanceID, BoxDefinition boxDefinition, ElementType elementType, ReportAttributeMap attributeMap, ReportStateKey stateKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChild(RenderNode child)
void
clear()
Removes all children.void
clearLayout()
void
close()
RenderBox
createLineboxContainer()
protected void
decreaseContentReferenceCount(int count, RenderNode source)
The content-ref-count counts inline-subreports.protected void
decreaseDescendantCount(int count, RenderNode source)
The content-ref-count counts table-render-boxes.protected void
decreaseTableReferenceCount(int count, RenderNode source)
The content-ref-count counts table-render-boxes.RenderNode
derive(boolean deepDerive)
Derive creates a disconnected node that shares all the properties of the original node.long
getCachedMaxChildX2()
RenderBox
getEffectiveLineboxContainer()
long
getFirstLineIndent()
InstanceID
getInstanceId()
The public-id for the paragraph is the pool-box.ElementAlignment
getLastLineAlignment()
long
getLineBoxAge()
RenderBox
getLineboxContainer()
long
getMinorLayoutAge()
int
getNodeType()
ParagraphPoolBox
getPool()
int
getPoolSize()
ElementAlignment
getTextAlignment()
long
getTextIndent()
protected void
increaseContentReferenceCount(int count, RenderNode source)
The content-ref-count counts inline-subreports or delayed-construction areas like crosstab-header.protected void
increaseDescendantCount(int count, RenderNode source)
The content-ref-count counts inline-subreports.protected void
increaseTableReferenceCount(int count, RenderNode source)
The content-ref-count counts tables.boolean
isAcceptInlineBoxes()
boolean
isAppendable()
boolean
isComplexParagraph()
boolean
isDiscardable()
boolean
isEmpty()
boolean
isLineBoxUnchanged()
void
setCachedMaxChildX2(long cachedMaxChildX2)
void
setCachedWidth(long cachedWidth)
void
setLineBoxAge(long lineBoxAge)
void
setPoolSize(int poolSize)
void
updateMinorLayoutAge()
-
Methods inherited from class org.pentaho.reporting.engine.classic.core.layout.model.BlockRenderBox
isBlockForPagebreakPurpose
-
Methods inherited from class org.pentaho.reporting.engine.classic.core.layout.model.RenderBox
addChilds, addGeneratedChild, addGeneratedChilds, addOverflowArea, apply, commit, create, deriveFrozen, extendHeight, 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, isAppliedOpen, isAppliedSeen, isBoxOverflowX, isBoxOverflowY, isBreakAfter, isCommited, isContainsReservedContent, isContentRefHolder, isDeepFinishedTable, 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, useMinimumChunkWidth
-
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, getLayoutNodeType, getLayoutParent, getLinebreakAge, getLogicalPage, getMajorAxis, getMaximumBoxWidth, getMinimumChunkWidth, getMinorAxis, getNext, getNodeLayoutProperties, getParent, getPrev, getRowIndex, getStyleSheet, getValidateModelAge, getVerticalTextAlignment, getWidth, getX, getY, getY2, isBoxVisible, isBoxVisible, isCacheValid, isFinishedPaginate, isFinishedTable, isFlag, isFrozen, isIgnorableForRendering, isLinebreakCacheValid, isNodeVisible, isNodeVisible, isNodeVisible, isNodeVisible, isParanoidModelChecks, isValidateModelCacheValid, isValidateModelResult, isVirtualNode, isVisible, isWidowBox, markApplyStateDirty, reinit, resetValidateModelResult, setCachedAge, setCachedHeight, setCachedX, setCachedY, setFinishedPaginate, setFinishedTable, setFlag, setHeight, setLinebreakAge, setMaximumBoxWidth, setNext, setNextUnchecked, setParent, setPrev, setPrevUnchecked, setValidateModelResult, setVirtualNode, setWidowBox, setWidth, setX, setY, shift, shiftCached, updateCacheState
-
-
-
-
Constructor Detail
-
ParagraphRenderBox
public ParagraphRenderBox(StyleSheet styleSheet, InstanceID instanceID, BoxDefinition boxDefinition, ElementType elementType, ReportAttributeMap attributeMap, ReportStateKey stateKey)
-
-
Method Detail
-
derive
public RenderNode derive(boolean deepDerive)
Derive creates a disconnected node that shares all the properties of the original node. The derived node will no longer have any parent, silbling, child or any other relationships with other nodes.
-
addChild
public final void addChild(RenderNode child)
-
clearLayout
public final void clearLayout()
-
isAppendable
public boolean isAppendable()
- Overrides:
isAppendable
in classRenderBox
-
isDiscardable
public boolean isDiscardable()
- Overrides:
isDiscardable
in classRenderBox
-
getLastLineAlignment
public ElementAlignment getLastLineAlignment()
-
getTextAlignment
public ElementAlignment getTextAlignment()
-
getLineboxContainer
public RenderBox getLineboxContainer()
-
isComplexParagraph
public boolean isComplexParagraph()
-
createLineboxContainer
public RenderBox createLineboxContainer()
-
getEffectiveLineboxContainer
public RenderBox getEffectiveLineboxContainer()
-
getPool
public ParagraphPoolBox getPool()
-
getLineBoxAge
public long getLineBoxAge()
-
setLineBoxAge
public void setLineBoxAge(long lineBoxAge)
-
getMinorLayoutAge
public long getMinorLayoutAge()
-
updateMinorLayoutAge
public void updateMinorLayoutAge()
-
getInstanceId
public InstanceID getInstanceId()
The public-id for the paragraph is the pool-box.- Overrides:
getInstanceId
in classRenderNode
- Returns:
-
getPoolSize
public int getPoolSize()
-
setPoolSize
public void setPoolSize(int poolSize)
-
getNodeType
public int getNodeType()
- Overrides:
getNodeType
in classBlockRenderBox
-
increaseContentReferenceCount
protected void increaseContentReferenceCount(int count, RenderNode source)
Description copied from class:RenderBox
The content-ref-count counts inline-subreports or delayed-construction areas like crosstab-header.- Overrides:
increaseContentReferenceCount
in classRenderBox
-
increaseTableReferenceCount
protected void increaseTableReferenceCount(int count, RenderNode source)
Description copied from class:RenderBox
The content-ref-count counts tables.- Overrides:
increaseTableReferenceCount
in classRenderBox
-
decreaseContentReferenceCount
protected void decreaseContentReferenceCount(int count, RenderNode source)
Description copied from class:RenderBox
The content-ref-count counts inline-subreports.- Overrides:
decreaseContentReferenceCount
in classRenderBox
-
decreaseTableReferenceCount
protected void decreaseTableReferenceCount(int count, RenderNode source)
Description copied from class:RenderBox
The content-ref-count counts table-render-boxes.- Overrides:
decreaseTableReferenceCount
in classRenderBox
-
increaseDescendantCount
protected void increaseDescendantCount(int count, RenderNode source)
Description copied from class:RenderBox
The content-ref-count counts inline-subreports.- Overrides:
increaseDescendantCount
in classRenderBox
-
decreaseDescendantCount
protected void decreaseDescendantCount(int count, RenderNode source)
Description copied from class:RenderBox
The content-ref-count counts table-render-boxes.- Overrides:
decreaseDescendantCount
in classRenderBox
-
getTextIndent
public long getTextIndent()
-
getFirstLineIndent
public long getFirstLineIndent()
-
isAcceptInlineBoxes
public boolean isAcceptInlineBoxes()
- Overrides:
isAcceptInlineBoxes
in classRenderBox
-
isLineBoxUnchanged
public boolean isLineBoxUnchanged()
-
getCachedMaxChildX2
public long getCachedMaxChildX2()
-
setCachedMaxChildX2
public void setCachedMaxChildX2(long cachedMaxChildX2)
-
setCachedWidth
public void setCachedWidth(long cachedWidth)
- Overrides:
setCachedWidth
in classRenderNode
-
-