org.jfree.layouting.layouter.context

Class DefaultLayoutContext

public class DefaultLayoutContext extends Object implements LayoutContext, Cloneable

Creation-Date: 14.12.2005, 13:42:06

Author: Thomas Morgner

Constructor Summary
DefaultLayoutContext(ContextId contextId, String namespace, String tagName, String pseudoElement, AttributeMap attributeMap)
Method Summary
Objectclone()
booleancopyFrom(LayoutStyle style)
LayoutContextderive()
LayoutContextdetach(Map counters, Map strings)
voiddispose()
AttributeMapgetAttributes()
BackgroundSpecificationgetBackgroundSpecification()
ContentSpecificationgetContentSpecification()
ContextIdgetContextId()
MapgetCounters()
FontSpecificationgetFontSpecification()
LocalegetLanguage()
Returns the language definition of this layout context.
ListSpecificationgetListSpecification()
StringgetNamespace()
StringgetPseudoElement()
MapgetStrings()
LayoutStylegetStyle()
StringgetTagName()
CSSValuegetValue(StyleKey key)
booleanisPseudoElement()
voidsetValue(StyleKey key, CSSValue value)

Constructor Detail

DefaultLayoutContext

public DefaultLayoutContext(ContextId contextId, String namespace, String tagName, String pseudoElement, AttributeMap attributeMap)

Method Detail

clone

public Object clone()

copyFrom

public boolean copyFrom(LayoutStyle style)

derive

public LayoutContext derive()

detach

public LayoutContext detach(Map counters, Map strings)

dispose

public void dispose()

getAttributes

public AttributeMap getAttributes()

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()

getPseudoElement

public String getPseudoElement()

getStrings

public Map getStrings()

getStyle

public LayoutStyle getStyle()

getTagName

public String getTagName()

getValue

public CSSValue getValue(StyleKey key)

isPseudoElement

public boolean isPseudoElement()

setValue

public void setValue(StyleKey key, CSSValue value)