Class DefaultLayoutContext
- java.lang.Object
-
- org.jfree.layouting.layouter.context.DefaultLayoutContext
-
- All Implemented Interfaces:
java.lang.Cloneable,LayoutContext,LayoutStyle
public class DefaultLayoutContext extends java.lang.Object implements LayoutContext, java.lang.Cloneable
Creation-Date: 14.12.2005, 13:42:06- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description DefaultLayoutContext(ContextId contextId, java.lang.String namespace, java.lang.String tagName, java.lang.String pseudoElement, AttributeMap attributeMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()booleancopyFrom(LayoutStyle style)LayoutContextderive()LayoutContextdetach(java.util.Map counters, java.util.Map strings)voiddispose()AttributeMapgetAttributes()May never be null.BackgroundSpecificationgetBackgroundSpecification()ContentSpecificationgetContentSpecification()ContextIdgetContextId()java.util.MapgetCounters()FontSpecificationgetFontSpecification()java.util.LocalegetLanguage()Returns the language definition of this layout context.ListSpecificationgetListSpecification()java.lang.StringgetNamespace()May be null.java.lang.StringgetPseudoElement()An element can be exactly one pseudo-element type.java.util.MapgetStrings()LayoutStylegetStyle()java.lang.StringgetTagName()May be null.CSSValuegetValue(StyleKey key)booleanisPseudoElement()voidsetValue(StyleKey key, CSSValue value)
-
-
-
Constructor Detail
-
DefaultLayoutContext
public DefaultLayoutContext(ContextId contextId, java.lang.String namespace, java.lang.String tagName, java.lang.String pseudoElement, AttributeMap attributeMap)
-
-
Method Detail
-
getPseudoElement
public java.lang.String getPseudoElement()
Description copied from interface:LayoutContextAn 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).- Specified by:
getPseudoElementin interfaceLayoutContext- Returns:
-
getNamespace
public java.lang.String getNamespace()
Description copied from interface:LayoutContextMay be null.- Specified by:
getNamespacein interfaceLayoutContext- Returns:
-
getTagName
public java.lang.String getTagName()
Description copied from interface:LayoutContextMay be null.- Specified by:
getTagNamein interfaceLayoutContext- Returns:
-
getAttributes
public AttributeMap getAttributes()
Description copied from interface:LayoutContextMay never be null.- Specified by:
getAttributesin interfaceLayoutContext- Returns:
-
getBackgroundSpecification
public BackgroundSpecification getBackgroundSpecification()
- Specified by:
getBackgroundSpecificationin interfaceLayoutContext
-
getFontSpecification
public FontSpecification getFontSpecification()
- Specified by:
getFontSpecificationin interfaceLayoutContext
-
getContentSpecification
public ContentSpecification getContentSpecification()
- Specified by:
getContentSpecificationin interfaceLayoutContext
-
getListSpecification
public ListSpecification getListSpecification()
- Specified by:
getListSpecificationin interfaceLayoutContext
-
setValue
public void setValue(StyleKey key, CSSValue value)
- Specified by:
setValuein interfaceLayoutStyle
-
getValue
public CSSValue getValue(StyleKey key)
- Specified by:
getValuein interfaceLayoutStyle
-
getStyle
public LayoutStyle getStyle()
-
getContextId
public ContextId getContextId()
- Specified by:
getContextIdin interfaceLayoutContext
-
getLanguage
public java.util.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.- Specified by:
getLanguagein interfaceLayoutContext- Returns:
- the defined language, never null.
-
isPseudoElement
public boolean isPseudoElement()
- Specified by:
isPseudoElementin interfaceLayoutContext
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjava.lang.Object
-
derive
public LayoutContext derive()
- Specified by:
derivein interfaceLayoutContext
-
dispose
public void dispose()
- Specified by:
disposein interfaceLayoutContext
-
copyFrom
public boolean copyFrom(LayoutStyle style)
- Specified by:
copyFromin interfaceLayoutStyle
-
getCounters
public java.util.Map getCounters()
- Specified by:
getCountersin interfaceLayoutContext
-
getStrings
public java.util.Map getStrings()
- Specified by:
getStringsin interfaceLayoutContext
-
detach
public LayoutContext detach(java.util.Map counters, java.util.Map strings)
- Specified by:
detachin interfaceLayoutContext
-
-