fop 0.95

org.apache.fop.render.ps
Class PSPageDeviceDictionary

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.HashMap
          extended byorg.apache.fop.render.ps.PSDictionary
              extended byorg.apache.fop.render.ps.PSPageDeviceDictionary
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

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:
Serialized Form

Constructor Summary
PSPageDeviceDictionary()
           
 
Method Summary
 void clear()
           
 java.lang.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.
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
           
 void setFlushOnRetrieval(boolean flushOnRetrieval)
          The contents of the dictionary are flushed when written
 
Methods inherited from class org.apache.fop.render.ps.PSDictionary
equals, hashCode, toString, valueOf
 
Methods inherited from class java.util.HashMap
clone, containsKey, containsValue, entrySet, get, keySet, putAll, remove, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PSPageDeviceDictionary

public PSPageDeviceDictionary()
Method Detail

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
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:
Map.put(Object, Object)

clear

public void clear()
See Also:
Map.clear()

isEmpty

public boolean isEmpty()
Returns true if this map contains no key-value mappings.

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 java.lang.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

fop 0.95

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.