org.jfree.layouting.renderer.model

Class NormalFlowRenderBox

public class NormalFlowRenderBox extends BlockRenderBox

A box that defines its own normal flow. All absolutly positioned or floating elements define their own normal flow. Each flow contains an invisible place-holder element, which marks the position of that element in the parent's normal-flow. A flow may hold a set of sub-flows. Sub-Flows are derived from floating elements. Absolutely positioned elements are placed on the page context. Normal-flows are derived for each absolutly or staticly positioned element.

Author: Thomas Morgner

Constructor Summary
NormalFlowRenderBox(BoxDefinition boxDefinition)
Method Summary
voidaddChild(RenderNode child)
voidaddFlow(NormalFlowRenderBox flow)
voidappyStyle(LayoutContext context, OutputProcessorMetaData metaData)
RenderNodederive(boolean deepDerive)
Derive creates a disconnected node that shares all the properties of the original node.
RenderNodederiveFrozen(boolean deepDerive)
Derive creates a disconnected node that shares all the properties of the original node.
RenderNodefindNodeById(Object instanceId)
NormalFlowRenderBoxgetFlow(int i)
intgetFlowCount()
NormalFlowRenderBox[]getFlows()
RenderBoxgetInsertationPoint()
NormalFlowRenderBoxgetNormalFlow()
PlaceholderRenderNodegetPlaceHolder()
RenderNodehibernate()
Derive creates a disconnected node that shares all the properties of the original node.

Constructor Detail

NormalFlowRenderBox

public NormalFlowRenderBox(BoxDefinition boxDefinition)

Method Detail

addChild

public void addChild(RenderNode child)

addFlow

public void addFlow(NormalFlowRenderBox flow)

appyStyle

public void appyStyle(LayoutContext context, OutputProcessorMetaData metaData)

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:

deriveFrozen

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

getFlow

public NormalFlowRenderBox getFlow(int i)

getFlowCount

public int getFlowCount()

getFlows

public NormalFlowRenderBox[] getFlows()

getInsertationPoint

public RenderBox getInsertationPoint()

getNormalFlow

public NormalFlowRenderBox getNormalFlow()

getPlaceHolder

public PlaceholderRenderNode getPlaceHolder()

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: