org.jfree.layouting.renderer
Class CounterStore

java.lang.Object
  extended by org.jfree.layouting.renderer.AbstractStore
      extended by org.jfree.layouting.renderer.CounterStore
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class CounterStore
extends AbstractStore

For the first throw, the content remains very simple. We support the 4 modes: start - the initial content is used. first - the first value set in this page is used (else the initial content) last - the last value is used. last-except - the last value is used on the next page. (Contrary to the specification, we fall back to the start-value instead of using an empty value).

The string store is used for all counter, counters and string properties.

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
CounterStore()
           
 
Method Summary
 void add(java.lang.String name, java.lang.Integer counterValue)
           
 java.lang.Integer get(java.lang.String name)
           
 java.lang.Integer get(java.lang.String name, CSSValue pagePolicy)
           
 
Methods inherited from class org.jfree.layouting.renderer.AbstractStore
addInternal, clone, derive, getFirstInternal, getInitialInternal, getLastInternal
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CounterStore

public CounterStore()
Method Detail

add

public void add(java.lang.String name,
                java.lang.Integer counterValue)

get

public java.lang.Integer get(java.lang.String name)

get

public java.lang.Integer get(java.lang.String name,
                             CSSValue pagePolicy)