org.pentaho.reporting.engine.classic.core.layout.model
Class FinishedRenderNode

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.layout.model.RenderNode
      extended by org.pentaho.reporting.engine.classic.core.layout.model.FinishedRenderNode
All Implemented Interfaces:
Cloneable

public final class FinishedRenderNode
extends RenderNode

A box replacement. It has a predefined width and height and does not change those. It is a placeholder for all already printed content.

If you see this node inside an inline box, you can be sure you've shot yourself in the foot.

Author:
Thomas Morgner

Field Summary
 
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
FinishedRenderNode(long layoutedWidth, long layoutedHeight, long marginsTop, long marginsBottom, boolean breakAfter)
           
FinishedRenderNode(long layoutedWidth, long layoutedHeight, long marginsTop, long marginsBottom, boolean breakAfter, ReportStateKey stateKey)
           
 
Method Summary
 long getLayoutedHeight()
           
 long getLayoutedWidth()
           
 long getMarginsBottom()
           
 long getMarginsTop()
           
 int getNodeType()
           
 ReportStateKey getStateKey()
           
 boolean isBreakAfter()
           
 boolean isIgnorableForRendering()
          If that method returns true, the element will not be used for rendering.
 void updateParent(RenderBox parent)
           
 
Methods inherited from class org.pentaho.reporting.engine.classic.core.layout.model.RenderNode
apply, clone, derive, deriveFrozen, findNodeById, freeze, getAttributes, getCachedAge, getCachedHeight, getCachedParentWidth, getCachedWidth, getCachedX, getCachedY, getCacheState, getChangeTracker, getComputedWidth, getContentRefCount, getEffectiveMarginBottom, getEffectiveMarginTop, getElementType, getHeight, getInstanceId, getLogicalPage, getMajorAxis, getMaximumBoxWidth, getMinimumChunkWidth, getMinorAxis, getName, getNext, getNodeLayoutProperties, getParent, getPrev, getStyleSheet, getVerticalTextAlignment, getWidth, getX, getY, hibernate, isBoxOverflowX, isBoxOverflowY, isBoxVisible, isBoxVisible, isCacheValid, isDiscardable, isEmpty, isFinishedPaginate, isFinishedTable, isFrozen, isHibernated, isNodeVisible, isNodeVisible, isNodeVisible, isNodeVisible, isOpen, isSizeSpecifiesBorderBox, isVirtualNode, markCacheClean, setCachedAge, setCachedHeight, setCachedParentWidth, setCachedWidth, setCachedX, setCachedY, setFinishedPaginate, setFinishedTable, setHeight, setMaximumBoxWidth, setVirtualNode, setWidth, setX, setY, shift, shiftCached
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FinishedRenderNode

public FinishedRenderNode(long layoutedWidth,
                          long layoutedHeight,
                          long marginsTop,
                          long marginsBottom,
                          boolean breakAfter)

FinishedRenderNode

public FinishedRenderNode(long layoutedWidth,
                          long layoutedHeight,
                          long marginsTop,
                          long marginsBottom,
                          boolean breakAfter,
                          ReportStateKey stateKey)
Method Detail

getNodeType

public int getNodeType()
Specified by:
getNodeType in class RenderNode

isBreakAfter

public boolean isBreakAfter()
Overrides:
isBreakAfter in class RenderNode

getLayoutedWidth

public long getLayoutedWidth()

getLayoutedHeight

public long getLayoutedHeight()

getMarginsTop

public long getMarginsTop()

getMarginsBottom

public long getMarginsBottom()

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 class RenderNode
Returns:

updateParent

public void updateParent(RenderBox parent)

getStateKey

public ReportStateKey getStateKey()
Overrides:
getStateKey in class RenderNode