Package org.apache.xmlgraphics.ps
Class PSPageDeviceDictionary
java.lang.Object
java.util.AbstractMap
java.util.HashMap
org.apache.xmlgraphics.ps.PSDictionary
org.apache.xmlgraphics.ps.PSPageDeviceDictionary
- All Implemented Interfaces:
Serializable
,Cloneable
,Map
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.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
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.void
void
setFlushOnRetrieval
(boolean flushOnRetrieval) The contents of the dictionary are flushed when writtenMethods inherited from class org.apache.xmlgraphics.ps.PSDictionary
equals, hashCode, toString, valueOf
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, keySet, merge, newHashMap, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Constructor Details
-
PSPageDeviceDictionary
public PSPageDeviceDictionary()
-
-
Method Details
-
put
-
putAll
-
clear
public void clear() -
isEmpty
public boolean isEmpty()Returns true if this map contains no key-value mappings. -
setFlushOnRetrieval
public void setFlushOnRetrieval(boolean flushOnRetrieval) The contents of the dictionary are flushed when written- Parameters:
flushOnRetrieval
- boolean value
-
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.- Returns:
- unwritten content dictionary string
-