org.jfree.layouting.layouter.context
Class DefaultDocumentContext
- DocumentContext, DocumentMetaNode
public class DefaultDocumentContext
Creation-Date: 08.12.2005, 20:17:07
DefaultDocumentContext
public DefaultDocumentContext()
closeQuote
public void closeQuote()
getCounterPolicy
public CSSValue getCounterPolicy(String name)
Returns 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.
- getCounterPolicy in interface DocumentContext
getCounterStyle
public CounterStyle getCounterStyle(String counterName)
Looks up a global counter style. If not defined, this returns the default
decimal style.
- getCounterStyle in interface DocumentContext
counterName
- the name of the counter, for which we search the style.
- the defined style or the decimal style.
getQuoteLevel
public int getQuoteLevel()
getStringPolicy
public CSSValue getStringPolicy(String name)
Returns 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.
- getStringPolicy in interface DocumentContext
initialize
public void initialize()
This method is called once after the input-feed received all the document
meta-data.
- initialize in interface DocumentContext
openQuote
public void openQuote()
setCounterStyle
public void setCounterStyle(String counterName,
CounterStyle style)
Defines 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.
- setCounterStyle in interface DocumentContext