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 AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()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.booleanisEmpty()Returns true if this map contains no key-value mappings.voidvoidsetFlushOnRetrieval(boolean flushOnRetrieval) The contents of the dictionary are flushed when writtenMethods inherited from class PSDictionary
equals, hashCode, toString, valueOfMethods inherited from class 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
-
isEmpty
-
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
-