org.jfree.report.flow.layoutprocessor

Class AbstractLayoutController

public abstract class AbstractLayoutController extends Object implements LayoutController

Todo: Document me!

Since: 05.03.2007

Author: Thomas Morgner

Constructor Summary
protected AbstractLayoutController()
Method Summary
Objectclone()
LayoutControllercreatePrecomputeInstance(FlowController fc)
Derives a copy of this controller that is suitable to perform a precomputation.
FlowControllergetFlowController()
ObjectgetNode()
LayoutControllergetParent()
Retrieves the parent of this layout controller.
voidinitialize(Object node, FlowController flowController, LayoutController parent)
Initializes the layout controller.
booleanisInitialized()

Constructor Detail

AbstractLayoutController

protected AbstractLayoutController()

Method Detail

clone

public Object clone()

createPrecomputeInstance

public LayoutController createPrecomputeInstance(FlowController fc)
Derives a copy of this controller that is suitable to perform a precomputation.

Parameters: fc

Returns:

getFlowController

public FlowController getFlowController()

getNode

public Object getNode()

getParent

public LayoutController getParent()
Retrieves the parent of this layout controller. This allows childs to query their context.

Returns: the layout controller's parent to null if there is no parent.

initialize

public void initialize(Object node, FlowController flowController, LayoutController parent)
Initializes the layout controller. This method is called exactly once. It is the creators responsibility to call this method.

Calling initialize after the first advance must result in a IllegalStateException.

Parameters: node the currently processed object or layout node. flowController the current flow controller. parent the parent layout controller that was responsible for instantiating this controller.

Throws: DataSourceException if there was a problem reading data from the datasource. ReportProcessingException if there was a general problem during the report processing. ReportDataFactoryException if a query failed.

isInitialized

public boolean isInitialized()