org.jfree.layouting.layouter.context

Interface LayoutContext

public interface LayoutContext extends LayoutStyle

This is where the computed style goes into. // todo: Produce the computed counterset!

Author: Thomas Morgner

Method Summary
LayoutContextderive()
LayoutContextdetach(Map counters, Map strings)
voiddispose()
AttributeMapgetAttributes()
May never be null.
BackgroundSpecificationgetBackgroundSpecification()
ContentSpecificationgetContentSpecification()
ContextIdgetContextId()
MapgetCounters()
FontSpecificationgetFontSpecification()
LocalegetLanguage()
Returns the language definition of this layout context.
ListSpecificationgetListSpecification()
StringgetNamespace()
May be null.
StringgetPseudoElement()
An element can be exactly one pseudo-element type.
MapgetStrings()
StringgetTagName()
May be null.
booleanisPseudoElement()

Method Detail

derive

public LayoutContext derive()

detach

public LayoutContext detach(Map counters, Map strings)

dispose

public void dispose()

getAttributes

public AttributeMap getAttributes()
May never be null.

Returns:

getBackgroundSpecification

public BackgroundSpecification getBackgroundSpecification()

getContentSpecification

public ContentSpecification getContentSpecification()

getContextId

public ContextId getContextId()

getCounters

public Map getCounters()

getFontSpecification

public FontSpecification getFontSpecification()

getLanguage

public Locale getLanguage()
Returns the language definition of this layout context. If not set, it defaults to the parent's language. If the root's language is also not defined, then use the system default.

Returns: the defined language, never null.

getListSpecification

public ListSpecification getListSpecification()

getNamespace

public String getNamespace()
May be null.

Returns:

getPseudoElement

public String getPseudoElement()
An element can be exactly one pseudo-element type. It is not possible for an element to fullfill two roles, an element is either a 'before' or a 'marker', but can as well be a 'before' of an 'marker' (where the marker element would be the parent).

Returns:

getStrings

public Map getStrings()

getTagName

public String getTagName()
May be null.

Returns:

isPseudoElement

public boolean isPseudoElement()