org.jfree.layouting.renderer.page

Class RenderPageContext

public class RenderPageContext extends Object implements StatefullComponent

This is a running page context, which contains a list of watched strings and counters. Whenever one of these counters or strings change, a new page context is generated. This page context also contains the special 'page' counter. That counter is maintained by the system, initialized with '1' and is increased by the number of physical pages at every physical split.

Author: Thomas Morgner

Constructor Summary
RenderPageContext(LayoutProcess layoutProcess, PageContext pageContext)
protected RenderPageContext()
Method Summary
Objectclone()
PageGridcreatePageGrid(OutputProcessorMetaData outputMetaData)
IntegergetCounter(String name, CSSValue pagePolicy)
PageContextgetPageContext()
StringgetString(String name, CSSValue pagePolicy)
StatesaveState()
RenderPageContextupdate(PageContext pageContext, OutputProcessor outputProcessor)
RenderPageContextupdate(LayoutContext layoutContext)
This method should check the layout context for updated counters and strings.

Constructor Detail

RenderPageContext

public RenderPageContext(LayoutProcess layoutProcess, PageContext pageContext)

RenderPageContext

protected RenderPageContext()

Method Detail

clone

public Object clone()

createPageGrid

public PageGrid createPageGrid(OutputProcessorMetaData outputMetaData)

getCounter

public Integer getCounter(String name, CSSValue pagePolicy)

getPageContext

public PageContext getPageContext()

getString

public String getString(String name, CSSValue pagePolicy)

saveState

public State saveState()

update

public RenderPageContext update(PageContext pageContext, OutputProcessor outputProcessor)

update

public RenderPageContext update(LayoutContext layoutContext)
This method should check the layout context for updated counters and strings.

Parameters: layoutContext

Returns: