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

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.layout.model.RenderNode
      extended by org.pentaho.reporting.engine.classic.core.layout.model.RenderBox
          extended by org.pentaho.reporting.engine.classic.core.layout.model.BlockRenderBox
              extended by 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

Field Summary
 
Fields inherited from class org.pentaho.reporting.engine.classic.core.layout.model.RenderBox
DIRECT_MANUAL_BREAK, INDIRECT_MANUAL_BREAK, NO_MANUAL_BREAK
 
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
ParagraphRenderBox(StyleSheet styleSheet, InstanceID instanceID, BoxDefinition boxDefinition, ElementType elementType, ReportAttributeMap attributeMap, ReportStateKey stateKey)
           
 
Method Summary
 void addChild(RenderNode child)
           
 void clear()
          Removes all children.
 void clearLayout()
           
 void close()
           
 RenderBox createLineboxContainer()
           
 RenderNode derive(boolean deepDerive)
          Derive creates a disconnected node that shares all the properties of the original node.
 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()
           
 Object getRawValue()
           
 ElementAlignment getTextAlignment()
           
 long getTextIndent()
           
 RenderNode hibernate()
          Derive creates a disconnected node that shares all the properties of the original node.
 boolean isAppendable()
           
 boolean isComplexParagraph()
           
 boolean isDiscardable()
           
 boolean isEmpty()
           
 void setLineBoxAge(long lineBoxAge)
           
 void setMinorLayoutAge(long minorLayoutAge)
           
 void setPoolSize(int poolSize)
           
 void setRawValue(Object rawValue)
           
 
Methods inherited from class org.pentaho.reporting.engine.classic.core.layout.model.RenderBox
addChilds, addGeneratedChild, addGeneratedChilds, commitApplyMark, deriveFrozen, findNodeById, freeze, getAppliedContentRefCount, getBaselineInfo, getBoxDefinition, getBreakContext, getComputedWidth, getContentAge, getContentAreaX1, getContentAreaX2, getContentBox, getContentRefCount, getFirstChild, getInsets, getLastChild, getManualBreakIndicator, getName, getPinned, getStateKey, getStaticBoxLayoutProperties, getStaticBoxPropertiesAge, getTableExportState, getTextEllipseBox, isAppliedOpen, isAppliedSeen, isAutoGenerated, isBoxOverflowX, isBoxOverflowY, isBreakAfter, isCommited, isDeepFinished, isMarkedOpen, isMarkedSeen, isOpen, isPinned, isSizeSpecifiesBorderBox, markBoxSeen, markCacheClean, markPinned, remove, removeGenerated, reopenAfterRollback, replaceChild, replaceChilds, resetCacheState, setAutoGenerated, setBaselineInfo, setBreakContext, setComputedWidth, setContentAge, setContentAreaX1, setContentAreaX2, setContentBox, setDeepFinished, setManualBreakIndicator, setMinimumChunkWidth, setName, setStaticBoxPropertiesAge, setTableExportState, setTextEllipseBox, split, toString
 
Methods inherited from class org.pentaho.reporting.engine.classic.core.layout.model.RenderNode
apply, clone, getAttributes, getCachedAge, getCachedHeight, getCachedParentWidth, getCachedWidth, getCachedX, getCachedY, getCacheState, getChangeTracker, getEffectiveMarginBottom, getEffectiveMarginTop, getElementType, getHeight, getLogicalPage, getMajorAxis, getMaximumBoxWidth, getMinimumChunkWidth, getMinorAxis, getNext, getNodeLayoutProperties, getParent, getPrev, getStyleSheet, getVerticalTextAlignment, getWidth, getX, getY, isBoxVisible, isBoxVisible, isCacheValid, isFinishedPaginate, isFinishedTable, isFrozen, isHibernated, isIgnorableForRendering, isNodeVisible, isNodeVisible, isNodeVisible, isNodeVisible, isVirtualNode, 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, wait, wait, wait
 

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.

Overrides:
derive in class RenderBox
Returns:

hibernate

public RenderNode hibernate()
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.

Overrides:
hibernate in class RenderBox
Returns:

addChild

public final void addChild(RenderNode child)
Overrides:
addChild in class RenderBox

clear

public final void clear()
Removes all children.

Overrides:
clear in class RenderBox

clearLayout

public final void clearLayout()

isAppendable

public boolean isAppendable()
Overrides:
isAppendable in class RenderBox

isEmpty

public boolean isEmpty()
Overrides:
isEmpty in class RenderBox

isDiscardable

public boolean isDiscardable()
Overrides:
isDiscardable in class RenderBox

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()

setMinorLayoutAge

public void setMinorLayoutAge(long minorLayoutAge)

getInstanceId

public InstanceID getInstanceId()
The public-id for the paragraph is the pool-box.

Overrides:
getInstanceId in class RenderNode
Returns:

getPoolSize

public int getPoolSize()

setPoolSize

public void setPoolSize(int poolSize)

setRawValue

public void setRawValue(Object rawValue)

getRawValue

public Object getRawValue()

close

public void close()
Overrides:
close in class BlockRenderBox

getNodeType

public int getNodeType()
Overrides:
getNodeType in class BlockRenderBox

getTextIndent

public long getTextIndent()

getFirstLineIndent

public long getFirstLineIndent()