|
xmlgraphics-commons 2.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap
org.apache.xmlgraphics.ps.PSDictionary
org.apache.xmlgraphics.ps.PSPageDeviceDictionary
public class PSPageDeviceDictionary
Postscript page device dictionary object This object is used by the postscript renderer to hold postscript page device values. It can also be used to minimize the number of setpagedevice calls when DSC compliance is false.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
Constructor Summary | |
---|---|
PSPageDeviceDictionary()
|
Method Summary | |
---|---|
void |
clear()
|
String |
getContent()
Returns a dictionary string with containing all unwritten content note: unnecessary writes are important as there is a device specific initgraphics call by the underlying postscript interpreter on every setpagedevice call which can result in blank pages etc. |
boolean |
isEmpty()
Returns true if this map contains no key-value mappings. |
Object |
put(Object key,
Object value)
|
void |
putAll(Map m)
|
void |
setFlushOnRetrieval(boolean flushOnRetrieval)
The contents of the dictionary are flushed when written |
Methods inherited from class org.apache.xmlgraphics.ps.PSDictionary |
---|
equals, hashCode, toString, valueOf |
Methods inherited from class java.util.HashMap |
---|
clone, containsKey, containsValue, entrySet, get, keySet, remove, size, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PSPageDeviceDictionary()
Method Detail |
---|
public Object put(Object key, Object value)
put
in interface Map
put
in class HashMap
key
- key with which the specified value is to be associated.value
- value to be associated with the specified key.
Map.put(Object, Object)
public void putAll(Map m)
putAll
in interface Map
putAll
in class HashMap
public void clear()
clear
in interface Map
clear
in class HashMap
Map.clear()
public boolean isEmpty()
isEmpty
in interface Map
isEmpty
in class HashMap
public void setFlushOnRetrieval(boolean flushOnRetrieval)
flushOnRetrieval
- boolean valuepublic String getContent()
|
xmlgraphics-commons 2.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |