Class DefaultDocumentContext
- java.lang.Object
-
- org.jfree.layouting.layouter.context.DefaultDocumentMetaNode
-
- org.jfree.layouting.layouter.context.DefaultDocumentContext
-
- All Implemented Interfaces:
DocumentContext,DocumentMetaNode
public class DefaultDocumentContext extends DefaultDocumentMetaNode implements DocumentContext
Creation-Date: 08.12.2005, 20:17:07- Author:
- Thomas Morgner
-
-
Field Summary
-
Fields inherited from interface org.jfree.layouting.layouter.context.DocumentContext
BASE_RESOURCE_ATTR, DATE_ATTR, INITIAL_STYLE, LOCALIZATION_ATTR, RESOURCE_MANAGER_ATTR, STRICT_STYLE_MODE, STYLE_MATCHER_ATTR, STYLE_RESOLVER_ATTR, TITLE_ATTR
-
-
Constructor Summary
Constructors Constructor Description DefaultDocumentContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMetaNode(DocumentMetaNode node)voidcloseQuote()CSSValuegetCounterPolicy(java.lang.String name)Returns the counter policy for this counter.CounterStylegetCounterStyle(java.lang.String counterName)Looks up a global counter style.DocumentMetaNodegetMetaNode(int index)intgetMetaNodeCount()NamespaceCollectiongetNamespaces()The namespace collection is not available until initialize() has been called by the input-feed.intgetQuoteLevel()org.pentaho.reporting.libraries.resourceloader.ResourceManagergetResourceManager()CSSValuegetStringPolicy(java.lang.String name)Returns the string policy for this named string.voidinitialize()This method is called once after the input-feed received all the document meta-data.voidopenQuote()voidremoveMetaNode(DocumentMetaNode node)voidsetCounterPolicy(java.lang.String name, CSSValue policy)voidsetCounterStyle(java.lang.String counterName, CounterStyle style)Defines a global counter style.voidsetStringPolicy(java.lang.String name, CSSValue policy)-
Methods inherited from class org.jfree.layouting.layouter.context.DefaultDocumentMetaNode
getMetaAttribute, setMetaAttribute
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jfree.layouting.layouter.context.DocumentMetaNode
getMetaAttribute, setMetaAttribute
-
-
-
-
Method Detail
-
getStringPolicy
public CSSValue getStringPolicy(java.lang.String name)
Description copied from interface:DocumentContextReturns the string policy for this named string. The is either one of the defined PagePolicy constants or null, if no policy is defined, in which case always the current value is used.- Specified by:
getStringPolicyin interfaceDocumentContext- Returns:
-
setStringPolicy
public void setStringPolicy(java.lang.String name, CSSValue policy)- Specified by:
setStringPolicyin interfaceDocumentContext
-
getCounterPolicy
public CSSValue getCounterPolicy(java.lang.String name)
Description copied from interface:DocumentContextReturns the counter policy for this counter. The is either one of the defined PagePolicy constants or null, if no policy is defined, in which case always the current value is used.- Specified by:
getCounterPolicyin interfaceDocumentContext- Returns:
-
setCounterPolicy
public void setCounterPolicy(java.lang.String name, CSSValue policy)- Specified by:
setCounterPolicyin interfaceDocumentContext
-
addMetaNode
public void addMetaNode(DocumentMetaNode node)
- Specified by:
addMetaNodein interfaceDocumentContext
-
removeMetaNode
public void removeMetaNode(DocumentMetaNode node)
- Specified by:
removeMetaNodein interfaceDocumentContext
-
getMetaNode
public DocumentMetaNode getMetaNode(int index)
- Specified by:
getMetaNodein interfaceDocumentContext
-
getMetaNodeCount
public int getMetaNodeCount()
- Specified by:
getMetaNodeCountin interfaceDocumentContext
-
getResourceManager
public org.pentaho.reporting.libraries.resourceloader.ResourceManager getResourceManager()
- Specified by:
getResourceManagerin interfaceDocumentContext
-
setCounterStyle
public void setCounterStyle(java.lang.String counterName, CounterStyle style)Description copied from interface:DocumentContextDefines a global counter style. The style is stored by the counter's name, and if not defined in the counter-property, the counter style is looked up here. This offers a way to define a style for counters at one point, instead of having to copy the style definition for all counter instances.- Specified by:
setCounterStylein interfaceDocumentContext
-
getCounterStyle
public CounterStyle getCounterStyle(java.lang.String counterName)
Description copied from interface:DocumentContextLooks up a global counter style. If not defined, this returns the default decimal style.- Specified by:
getCounterStylein interfaceDocumentContext- Parameters:
counterName- the name of the counter, for which we search the style.- Returns:
- the defined style or the decimal style.
-
initialize
public void initialize()
This method is called once after the input-feed received all the document meta-data.- Specified by:
initializein interfaceDocumentContext
-
getNamespaces
public NamespaceCollection getNamespaces()
Description copied from interface:DocumentContextThe namespace collection is not available until initialize() has been called by the input-feed.- Specified by:
getNamespacesin interfaceDocumentContext- Returns:
-
getQuoteLevel
public int getQuoteLevel()
-
openQuote
public void openQuote()
-
closeQuote
public void closeQuote()
-
-