public abstract class RenderBox extends RenderNode
Modifier and Type | Class and Description |
---|---|
static class |
RenderBox.BreakIndicator |
static class |
RenderBox.RestrictFinishClearOut |
RenderNode.CacheState
Modifier and Type | Field and Description |
---|---|
protected static int |
FLAG_BOX_CONTAINS_PRESERVED_CONTENT |
protected static int |
FLAG_BOX_INVALID_WIDOW_ORPHAN_NODE |
protected static int |
FLAG_BOX_TABLE_SECTION_RESERVED |
protected static int |
FLAG_BOX_TABLE_SECTION_RESERVED2 |
protected static int |
FLAG_BOX_TABLE_SECTION_RESERVED3 |
protected static int |
FLAG_BOX_TABLE_SECTION_RESERVED4 |
protected static int |
FLAG_BOX_TABLE_SECTION_RESERVED5 |
CACHE_CLEAN, CACHE_DEEP_DIRTY, CACHE_DIRTY, HORIZONTAL_AXIS, VERTICAL_AXIS
Modifier | Constructor and Description |
---|---|
protected |
RenderBox(int majorAxis,
int minorAxis,
StyleSheet styleSheet,
InstanceID instanceId,
BoxDefinition boxDefinition,
ElementType elementType,
ReportAttributeMap attributes,
ReportStateKey stateKey) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(RenderNode child) |
void |
addChilds(RenderNode[] nodes) |
void |
addGeneratedChild(RenderNode child) |
void |
addGeneratedChilds(RenderNode[] nodes) |
void |
addOverflowArea(long width,
long height) |
void |
apply() |
void |
clear()
Removes all children.
|
void |
close() |
void |
commit() |
RenderBox |
create(StyleSheet styleSheet) |
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.
|
RenderNode |
deriveFrozen(boolean deepDerive)
Derive creates a disconnected node that shares all the properties of the original node.
|
long |
extendHeight(RenderNode child,
long heightOffset)
Notifies a box that one of its childs has extended its height.
|
protected long |
extendHeightInBlockMode(RenderNode child,
long heightOffset) |
protected long |
extendHeightInRowMode(RenderNode child,
long heightOffset)
Match the y2 of the child with the y2 of the parent.
|
RenderNode |
findNodeById(InstanceID instanceId) |
void |
freeze() |
int |
getAppliedContentRefCount() |
ExtendedBaselineInfo |
getBaselineInfo() |
BoxDefinition |
getBoxDefinition() |
int |
getChildCount() |
long |
getContentAge() |
long |
getContentAreaX1() |
long |
getContentAreaX2() |
Boolean |
getContentBox() |
int |
getContentRefCount()
The content-ref-count counts inline-subreports.
|
int |
getDescendantCount() |
long |
getEffectiveMinimumChunkSize() |
RenderNode |
getFirstChild() |
long |
getInsets() |
long |
getInsetsLeft() |
long |
getInsetsRight() |
RenderNode |
getLastChild() |
RenderBox.BreakIndicator |
getManualBreakIndicator() |
String |
getName() |
long |
getOrphanConstraintSize() |
int |
getOrphanLeafCount() |
long |
getOverflowAreaHeight() |
long |
getOverflowAreaWidth() |
int |
getParentWidowContexts() |
long |
getPinned() |
ReportStateKey |
getProcessKeyCached() |
long |
getProcessKeyStepAge() |
Object |
getRawValue() |
RenderBox.RestrictFinishClearOut |
getRestrictFinishedClearOut() |
ReportStateKey |
getStateKey() |
StaticBoxLayoutProperties |
getStaticBoxLayoutProperties() |
long |
getStaticBoxPropertiesAge() |
Object |
getTableExportState() |
int |
getTableRefCount() |
long |
getTableValidationAge() |
RenderBox |
getTextEllipseBox() |
long |
getVerticalInsets() |
long |
getWidowConstraintSize() |
long |
getWidowConstraintSizeWithKeepTogether() |
int |
getWidowLeafCount() |
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 |
isAppliedOpen() |
boolean |
isAppliedSeen() |
protected boolean |
isBlockForPagebreakPurpose() |
boolean |
isBoxOverflowX() |
boolean |
isBoxOverflowY() |
boolean |
isBreakAfter() |
boolean |
isCommited() |
boolean |
isContainsReservedContent() |
boolean |
isContentRefHolder() |
boolean |
isDeepFinishedTable() |
boolean |
isDiscardable() |
boolean |
isEmpty() |
boolean |
isEmptyNodesHaveSignificance() |
boolean |
isInvalidWidowOrphanNode() |
boolean |
isMarkedOpen() |
boolean |
isMarkedSeen() |
boolean |
isOpen() |
boolean |
isOrphanLeaf() |
boolean |
isPinned() |
boolean |
isPreventPagination() |
boolean |
isProcessKeyCacheValid() |
boolean |
isProcessKeyFinish() |
boolean |
isRenderBox() |
boolean |
isSizeSpecifiesBorderBox() |
void |
markAsContentRefHolder() |
void |
markBoxSeen() |
void |
markPinned(long pinPosition) |
void |
remove(RenderNode child) |
void |
replaceChild(RenderNode old,
RenderNode replacement) |
void |
replaceChilds(RenderNode old,
RenderNode[] replacement) |
void |
resetCacheState(boolean deepDirty) |
void |
rollback(boolean deepDirty) |
void |
setBaselineInfo(ExtendedBaselineInfo baselineInfo) |
void |
setContainsReservedContent(boolean containsReservedContent) |
void |
setContentAge(long contentAge) |
void |
setContentAreaX1(long contentAreaX1) |
void |
setContentAreaX2(long contentAreaX2) |
void |
setContentBox(Boolean contentBox) |
void |
setDeepFinished(boolean deepFinished) |
protected void |
setFirstChild(RenderNode firstChild) |
void |
setInvalidWidowOrphanNode(boolean invalidWidowOrphanNode) |
protected void |
setLastChild(RenderNode lastChild) |
void |
setManualBreakIndicator(RenderBox.BreakIndicator manualBreakIndicator) |
void |
setMinimumChunkWidth(long minimumChunkWidth) |
void |
setName(String name) |
protected void |
setOpen(boolean open) |
void |
setOrphanConstraintSize(long orphanConstraintSize) |
void |
setOrphanLeafCount(int orphanLeafCount) |
void |
setOverflowAreaHeight(long overflowAreaHeight) |
void |
setOverflowAreaWidth(long overflowAreaWidth) |
void |
setParentWidowContexts(int parentWidowContexts) |
void |
setPreventPagination(boolean preventPagination) |
void |
setProcessKeyCached(ReportStateKey processKeyCached) |
void |
setRawValue(Object rawValue) |
void |
setRestrictFinishedClearOut(RenderBox.RestrictFinishClearOut restrictFinishedClearOut) |
protected void |
setStateKey(ReportStateKey stateKey) |
void |
setStaticBoxPropertiesAge(long staticBoxPropertiesAge) |
void |
setTableExportState(Object tableExportState) |
void |
setTableValidationAge(long tableValidationAge) |
void |
setTextEllipseBox(RenderBox textEllipseBox) |
void |
setWidowConstraintSize(long widowConstraintSize) |
void |
setWidowConstraintSizeWithKeepTogether(long widowConstraintSizeWithKeepTogether) |
void |
setWidowLeafCount(int widowLeafCount) |
RenderBox |
split(int axis)
Performs a simple split.
|
String |
toString() |
protected void |
updateChangeTracker() |
boolean |
useMinimumChunkWidth() |
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, getNodeType, 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, setCachedWidth, setCachedX, setCachedY, setFinishedPaginate, setFinishedTable, setFlag, setHeight, setLinebreakAge, setMaximumBoxWidth, setNext, setNextUnchecked, setParent, setPrev, setPrevUnchecked, setValidateModelResult, setVirtualNode, setWidowBox, setWidth, setX, setY, shift, shiftCached, updateCacheState
protected static final int FLAG_BOX_TABLE_SECTION_RESERVED2
protected static final int FLAG_BOX_TABLE_SECTION_RESERVED3
protected static final int FLAG_BOX_TABLE_SECTION_RESERVED4
protected static final int FLAG_BOX_TABLE_SECTION_RESERVED5
protected static final int FLAG_BOX_INVALID_WIDOW_ORPHAN_NODE
protected static final int FLAG_BOX_CONTAINS_PRESERVED_CONTENT
protected static final int FLAG_BOX_TABLE_SECTION_RESERVED
protected RenderBox(int majorAxis, int minorAxis, StyleSheet styleSheet, InstanceID instanceId, BoxDefinition boxDefinition, ElementType elementType, ReportAttributeMap attributes, ReportStateKey stateKey)
public RenderBox create(StyleSheet styleSheet)
public void setParentWidowContexts(int parentWidowContexts)
public int getParentWidowContexts()
public int getDescendantCount()
getDescendantCount
in class RenderNode
public boolean isContentRefHolder()
public void markAsContentRefHolder()
public Object getRawValue()
public void setRawValue(Object rawValue)
public boolean isSizeSpecifiesBorderBox()
isSizeSpecifiesBorderBox
in class RenderNode
public RenderBox getTextEllipseBox()
public void setTextEllipseBox(RenderBox textEllipseBox)
public ReportStateKey getStateKey()
getStateKey
in class RenderNode
protected void setStateKey(ReportStateKey stateKey)
public RenderBox.BreakIndicator getManualBreakIndicator()
public void setManualBreakIndicator(RenderBox.BreakIndicator manualBreakIndicator)
public BoxDefinition getBoxDefinition()
public long getInsetsLeft()
public long getInsetsRight()
public long getEffectiveMinimumChunkSize()
getEffectiveMinimumChunkSize
in class RenderNode
public long getInsets()
public RenderNode getFirstChild()
protected void setFirstChild(RenderNode firstChild)
public RenderNode getLastChild()
protected void setLastChild(RenderNode lastChild)
public void addGeneratedChild(RenderNode child)
public void addChild(RenderNode child)
protected void increaseContentReferenceCount(int count, RenderNode source)
protected void increaseTableReferenceCount(int count, RenderNode source)
protected void increaseDescendantCount(int count, RenderNode source)
protected void decreaseContentReferenceCount(int count, RenderNode source)
protected void decreaseTableReferenceCount(int count, RenderNode source)
protected void decreaseDescendantCount(int count, RenderNode source)
public int getContentRefCount()
getContentRefCount
in class RenderNode
public int getTableRefCount()
getTableRefCount
in class RenderNode
public void replaceChild(RenderNode old, RenderNode replacement)
public void replaceChilds(RenderNode old, RenderNode[] replacement)
public RenderNode derive(boolean deepDerive)
derive
in class RenderNode
public RenderNode deriveFrozen(boolean deepDerive)
deriveFrozen
in class RenderNode
public void addChilds(RenderNode[] nodes)
public void addGeneratedChilds(RenderNode[] nodes)
public RenderNode findNodeById(InstanceID instanceId)
findNodeById
in class RenderNode
public boolean isAppendable()
public void clear()
protected void updateChangeTracker()
updateChangeTracker
in class RenderNode
public boolean isEmpty()
isEmpty
in class RenderNode
public boolean isDiscardable()
isDiscardable
in class RenderNode
public void close()
public void remove(RenderNode child)
public boolean isOpen()
isOpen
in class RenderNode
protected void setOpen(boolean open)
public void freeze()
freeze
in class RenderNode
public RenderBox split(int axis)
axis
- public long getContentAreaX1()
public void setContentAreaX1(long contentAreaX1)
public long getContentAreaX2()
public void setContentAreaX2(long contentAreaX2)
public StaticBoxLayoutProperties getStaticBoxLayoutProperties()
public ExtendedBaselineInfo getBaselineInfo()
public void setBaselineInfo(ExtendedBaselineInfo baselineInfo)
public String getName()
getName
in class RenderNode
public void setName(String name)
public boolean isBreakAfter()
isBreakAfter
in class RenderNode
public long getStaticBoxPropertiesAge()
public void setStaticBoxPropertiesAge(long staticBoxPropertiesAge)
public void commit()
public int getAppliedContentRefCount()
public boolean isAppliedOpen()
public boolean isAppliedSeen()
public boolean isMarkedOpen()
public boolean isMarkedSeen()
public void markBoxSeen()
public boolean isCommited()
public void rollback(boolean deepDirty)
public void resetCacheState(boolean deepDirty)
public boolean isDeepFinishedTable()
isDeepFinishedTable
in class RenderNode
public void setDeepFinished(boolean deepFinished)
public long getContentAge()
public void setContentAge(long contentAge)
public Boolean getContentBox()
public void setContentBox(Boolean contentBox)
public Object getTableExportState()
public void setTableExportState(Object tableExportState)
public void markPinned(long pinPosition)
public boolean isPinned()
public long getPinned()
public void setMinimumChunkWidth(long minimumChunkWidth)
setMinimumChunkWidth
in class RenderNode
public boolean isBoxOverflowX()
isBoxOverflowX
in class RenderNode
public boolean isBoxOverflowY()
isBoxOverflowY
in class RenderNode
public boolean isEmptyNodesHaveSignificance()
public boolean isAcceptInlineBoxes()
public long getTableValidationAge()
public void setTableValidationAge(long tableValidationAge)
public boolean useMinimumChunkWidth()
public long getOverflowAreaHeight()
getOverflowAreaHeight
in class RenderNode
public void setOverflowAreaHeight(long overflowAreaHeight)
public long getOverflowAreaWidth()
getOverflowAreaWidth
in class RenderNode
public void setOverflowAreaWidth(long overflowAreaWidth)
public void addOverflowArea(long width, long height)
public void apply()
apply
in class RenderNode
public long extendHeight(RenderNode child, long heightOffset)
amount
given is the offset from the old height to the new height, and is always a positive
number.child
- heightOffset
- protected long extendHeightInBlockMode(RenderNode child, long heightOffset)
protected long extendHeightInRowMode(RenderNode child, long heightOffset)
child
- heightOffset
- public int getChildCount()
getChildCount
in class RenderNode
public long getOrphanConstraintSize()
public void setOrphanConstraintSize(long orphanConstraintSize)
public long getWidowConstraintSize()
public void setWidowConstraintSize(long widowConstraintSize)
public long getWidowConstraintSizeWithKeepTogether()
public void setWidowConstraintSizeWithKeepTogether(long widowConstraintSizeWithKeepTogether)
public boolean isInvalidWidowOrphanNode()
public void setInvalidWidowOrphanNode(boolean invalidWidowOrphanNode)
public RenderBox.RestrictFinishClearOut getRestrictFinishedClearOut()
getRestrictFinishedClearOut
in class RenderNode
public void setRestrictFinishedClearOut(RenderBox.RestrictFinishClearOut restrictFinishedClearOut)
protected boolean isBlockForPagebreakPurpose()
public boolean isOrphanLeaf()
isOrphanLeaf
in class RenderNode
public long getVerticalInsets()
public boolean isContainsReservedContent()
isContainsReservedContent
in class RenderNode
public void setContainsReservedContent(boolean containsReservedContent)
public boolean isPreventPagination()
public void setPreventPagination(boolean preventPagination)
public boolean isRenderBox()
isRenderBox
in class RenderNode
public void setProcessKeyCached(ReportStateKey processKeyCached)
public long getProcessKeyStepAge()
public ReportStateKey getProcessKeyCached()
public boolean isProcessKeyFinish()
public boolean isProcessKeyCacheValid()
public int getOrphanLeafCount()
getOrphanLeafCount
in class RenderNode
public void setOrphanLeafCount(int orphanLeafCount)
public int getWidowLeafCount()
getWidowLeafCount
in class RenderNode
public void setWidowLeafCount(int widowLeafCount)
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.