org.freehep.postscript
Class PSDictionary
java.lang.Object
org.freehep.postscript.PSObject
org.freehep.postscript.PSComposite
org.freehep.postscript.PSDictionary
- All Implemented Interfaces:
- Cloneable
- Direct Known Subclasses:
- PSFontDictionary
public class PSDictionary
- extends PSComposite
Objects for PostScript Processor, as defined in 3.3 Data Types and Objects
- Version:
- $Id: PSDictionary.java 8951 2006-09-12 21:44:14Z duns $
- Author:
- Mark Donszelmann
Fields inherited from class org.freehep.postscript.PSObject |
name |
table
protected Hashtable table
PSDictionary
protected PSDictionary(Hashtable t)
PSDictionary
public PSDictionary(int n)
PSDictionary
public PSDictionary()
execute
public boolean execute(OperandStack os)
- Specified by:
execute
in class PSObject
getType
public String getType()
- Specified by:
getType
in class PSObject
capacity
public int capacity()
size
public int size()
put
public void put(PSObject key,
PSObject value)
put
public void put(String key,
PSObject value)
put
public void put(String key,
String value)
put
public void put(String key,
int value)
put
public void put(String key,
double value)
put
public void put(String key,
boolean value)
put
public void put(PSName key,
String[] value)
keys
public Object[] keys()
get
public PSObject get(PSObject key)
get
public PSObject get(String key)
getString
public String getString(String key)
getNumber
public PSNumber getNumber(String key)
getInteger
public int getInteger(String key)
getReal
public double getReal(String key)
getBoolean
public boolean getBoolean(String key)
getPackedArray
public PSPackedArray getPackedArray(String key)
getDictionary
public PSDictionary getDictionary(String key)
remove
public PSObject remove(PSObject key)
remove
public PSObject remove(String key)
copyInto
public void copyInto(PSDictionary d)
forAll
public void forAll(PSArray proc,
OperandStack os)
hashCode
public int hashCode()
- Specified by:
hashCode
in class PSObject
equals
public boolean equals(Object o)
- Specified by:
equals
in class PSObject
clone
public Object clone()
- Specified by:
clone
in class PSObject
copy
public PSObject copy()
- Specified by:
copy
in class PSObject
cvs
public String cvs()
- Specified by:
cvs
in class PSObject
toString
public String toString()
- Overrides:
toString
in class PSObject
dumpKeys
public String dumpKeys()
Copyright © 2000-2006 FreeHEP. All Rights Reserved.