org.jfree.layouting.renderer.text

Class DefaultRenderableTextFactory.DefaultRenderableTextFactoryState

protected static class DefaultRenderableTextFactory.DefaultRenderableTextFactoryState extends Object implements State

Constructor Summary
protected DefaultRenderableTextFactoryState(DefaultRenderableTextFactory factory)
Method Summary
StatefullComponentrestore(LayoutProcess layoutProcess)
Creates a restored instance of the saved component.

Constructor Detail

DefaultRenderableTextFactoryState

protected DefaultRenderableTextFactoryState(DefaultRenderableTextFactory factory)

Method Detail

restore

public StatefullComponent restore(LayoutProcess layoutProcess)
Creates a restored instance of the saved component.

By using this factory-like approach, we gain independence from having to know the actual implementation. This makes things a lot easier.

Parameters: layoutProcess the layout process that controls it all

Returns: the saved state

Throws: org.jfree.layouting.StateException