Class PSPageDeviceDictionary

All Implemented Interfaces:
Serializable, Cloneable, Map

public class PSPageDeviceDictionary extends PSDictionary
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:
  • Constructor Details

    • PSPageDeviceDictionary

      public PSPageDeviceDictionary()
  • Method Details

    • put

      public Object put(Object key, Object value)
      Specified by:
      put in interface Map
      Overrides:
      put in class HashMap
      Parameters:
      key - key with which the specified value is to be associated.
      value - value to be associated with the specified key.
      Returns:
      the previous value associated with the key or null
      See Also:
    • putAll

      public void putAll(Map m)
      Specified by:
      putAll in interface Map
      Overrides:
      putAll in class HashMap
    • clear

      public void clear()
      Specified by:
      clear in interface Map
      Overrides:
      clear in class HashMap
      See Also:
    • isEmpty

      public boolean isEmpty()
      Returns true if this map contains no key-value mappings.
      Specified by:
      isEmpty in interface Map
      Overrides:
      isEmpty in class HashMap
      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

      public 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.
      Returns:
      unwritten content dictionary string