org.jfree.report.flow.layoutprocessor

Class LayoutControllerUtil

public class LayoutControllerUtil extends Object

Creation-Date: 24.11.2006, 15:01:22

Author: Thomas Morgner

Field Summary
static EmptyReportDataEMPTY_REPORT_DATA
Method Summary
static AttributeMapcreateEmptyMap(String namespace, String tagName)
static ObjectevaluateExpression(FlowController flowController, Object declaringParent, Expression expression)
static intfindNodeInParent(Section parentSection, Node n)
static LayoutExpressionRuntimegetExpressionRuntime(FlowController fc, Object node)
static StaticExpressionRuntimeDatagetStaticExpressionRuntime(FlowController fc, Object declaringParent)
static booleanisGroupFinished(FlowController fc, Node node)
Checks, whether the current group should continue.
static ObjectperformPrecompute(int expressionPosition, PrecomputeNodeKey nodeKey, LayoutController layoutController, FlowController flowController)
static AttributeMapprocessAttributes(Element node, ReportTarget target, ExpressionRuntime runtime)
static FlowControllerprocessFlowOperations(FlowController fc, FlowControlOperation[] ops)
static LayoutControllerskipInvisibleElement(LayoutController layoutController)

Field Detail

EMPTY_REPORT_DATA

public static final EmptyReportData EMPTY_REPORT_DATA

Method Detail

createEmptyMap

public static AttributeMap createEmptyMap(String namespace, String tagName)

evaluateExpression

public static Object evaluateExpression(FlowController flowController, Object declaringParent, Expression expression)

findNodeInParent

public static int findNodeInParent(Section parentSection, Node n)

getExpressionRuntime

public static LayoutExpressionRuntime getExpressionRuntime(FlowController fc, Object node)

getStaticExpressionRuntime

public static StaticExpressionRuntimeData getStaticExpressionRuntime(FlowController fc, Object declaringParent)

isGroupFinished

public static boolean isGroupFinished(FlowController fc, Node node)
Checks, whether the current group should continue. If there is no group, we assume that we should continue. (This emulates the control-break-algorithm's default behaviour if testing an empty set of arguments.)

Parameters: fc the current flow controller holding the data node the current node.

Returns: true, if the group is finished and we should stop reiterating it, false if the group is not finished and we can start iterating it again.

Throws: org.jfree.report.DataSourceException

performPrecompute

public static Object performPrecompute(int expressionPosition, PrecomputeNodeKey nodeKey, LayoutController layoutController, FlowController flowController)

processAttributes

public static AttributeMap processAttributes(Element node, ReportTarget target, ExpressionRuntime runtime)

processFlowOperations

public static FlowController processFlowOperations(FlowController fc, FlowControlOperation[] ops)

skipInvisibleElement

public static LayoutController skipInvisibleElement(LayoutController layoutController)