org.jfree.layouting.renderer.model

Class ParagraphRenderBox

public class ParagraphRenderBox extends BlockRenderBox

This articifial renderbox is the connection between block-contexts and the sequences of consectual inline-boxes of that block.

This renderbox generates lineboxes whenever needed.

When asked for layout-sizes or when doing the layouting, it first checks its validity and performs splits on all forced pagebreaks. At the end, there is no inner element's edge with an activated clear-property.

After that, it generates temporary lineboxes for all of its childs. When *re*-computing the layout, these lineboxes get invalidated and merged back into the paragraph.

Author: Thomas Morgner

Constructor Summary
ParagraphRenderBox(BoxDefinition boxDefinition)
Method Summary
voidaddChild(RenderNode child)
protected voidaddDirectly(RenderNode child)
voidappyStyle(LayoutContext context, OutputProcessorMetaData metaData)
voidclear()
Removes all children.
voidclearLayout()
RenderNodederive(boolean deepDerive)
Derive creates a disconnected node that shares all the properties of the original node.
RenderNodefindNodeById(Object instanceId)
RenderBoxgetInsertationPoint()
ObjectgetInstanceId()
The public-id for the paragraph is the pool-box.
CSSValuegetLastLineAlignment()
BlockRenderBoxgetLineboxContainer()
longgetLineBoxAge()
longgetMajorLayoutAge()
longgetMinorLayoutAge()
InlineRenderBoxgetPool()
CSSValuegetTextAlignment()
RenderNodehibernate()
Derive creates a disconnected node that shares all the properties of the original node.
booleanisAppendable()
booleanisDiscardable()
booleanisEmpty()
voidsetLineBoxAge(long lineBoxAge)
voidsetMajorLayoutAge(long majorLayoutAge)
voidsetMinorLayoutAge(long minorLayoutAge)

Constructor Detail

ParagraphRenderBox

public ParagraphRenderBox(BoxDefinition boxDefinition)

Method Detail

addChild

public final void addChild(RenderNode child)

addDirectly

protected void addDirectly(RenderNode child)

appyStyle

public void appyStyle(LayoutContext context, OutputProcessorMetaData metaData)

clear

public final void clear()
Removes all children.

clearLayout

public final void clearLayout()

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.

Returns:

findNodeById

public RenderNode findNodeById(Object instanceId)

getInsertationPoint

public RenderBox getInsertationPoint()

getInstanceId

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

Returns:

getLastLineAlignment

public CSSValue getLastLineAlignment()

getLineboxContainer

public BlockRenderBox getLineboxContainer()

getLineBoxAge

public long getLineBoxAge()

getMajorLayoutAge

public long getMajorLayoutAge()

getMinorLayoutAge

public long getMinorLayoutAge()

getPool

public InlineRenderBox getPool()

getTextAlignment

public CSSValue getTextAlignment()

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.

Returns:

isAppendable

public boolean isAppendable()

isDiscardable

public boolean isDiscardable()

isEmpty

public boolean isEmpty()

setLineBoxAge

public void setLineBoxAge(long lineBoxAge)

setMajorLayoutAge

public void setMajorLayoutAge(long majorLayoutAge)

setMinorLayoutAge

public void setMinorLayoutAge(long minorLayoutAge)