org.jfree.layouting.normalizer.content

Class ContentNormalizer.ContentNormalizerState

protected static class ContentNormalizer.ContentNormalizerState extends Object implements State

Constructor Summary
protected ContentNormalizerState()
Method Summary
LayoutElementgetCurrentElement()
LayoutElementgetCurrentSilbling()
StategetModelBuilderState()
longgetNextId()
StategetRecordingContentNormalizerState()
StatefullComponentrestore(LayoutProcess layoutProcess)
Creates a restored instance of the saved component.
voidsetCurrentElement(LayoutElement currentElement)
voidsetCurrentSilbling(LayoutElement currentSilbling)
voidsetModelBuilderState(State modelBuilderState)
voidsetNextId(long nextId)
voidsetRecordingContentNormalizerState(State recordingContentNormalizerState)

Constructor Detail

ContentNormalizerState

protected ContentNormalizerState()

Method Detail

getCurrentElement

public LayoutElement getCurrentElement()

getCurrentSilbling

public LayoutElement getCurrentSilbling()

getModelBuilderState

public State getModelBuilderState()

getNextId

public long getNextId()

getRecordingContentNormalizerState

public State getRecordingContentNormalizerState()

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: StateException

setCurrentElement

public void setCurrentElement(LayoutElement currentElement)

setCurrentSilbling

public void setCurrentSilbling(LayoutElement currentSilbling)

setModelBuilderState

public void setModelBuilderState(State modelBuilderState)

setNextId

public void setNextId(long nextId)

setRecordingContentNormalizerState

public void setRecordingContentNormalizerState(State recordingContentNormalizerState)