org.freehep.postscript.types
Class PSPackedArray
java.lang.Object
org.freehep.postscript.types.PSObject
org.freehep.postscript.types.PSComposite
org.freehep.postscript.types.PSPackedArray
- All Implemented Interfaces:
- Cloneable
- Direct Known Subclasses:
- PSArray
public class PSPackedArray
- extends PSComposite
Objects for PostScript Processor, as defined in 3.3 Data Types and Objects
- Author:
- Mark Donszelmann
| Fields inherited from class org.freehep.postscript.types.PSObject |
log, name |
array
protected PSObject[] array
start
protected int start
length
protected int length
PSPackedArray
protected PSPackedArray(String name,
PSObject[] a,
int index,
int count)
PSPackedArray
protected PSPackedArray(int n)
PSPackedArray
public PSPackedArray(PSObject[] a)
PSPackedArray
public PSPackedArray(float[] f)
PSPackedArray
public PSPackedArray(double[] d)
PSPackedArray
public PSPackedArray(String[] s)
PSPackedArray
protected PSPackedArray(String n,
PSObject[] a,
int index,
int count,
int access)
PSPackedArray
protected PSPackedArray(int n,
int access)
PSPackedArray
protected PSPackedArray(PSObject[] a,
int access)
execute
public boolean execute(OperandStack os)
- Specified by:
execute in class PSObject
getType
public String getType()
- Specified by:
getType in class PSObject
get
public PSObject get(int i)
getInteger
public int getInteger(int i)
getName
public PSName getName(int i)
getDictionary
public PSDictionary getDictionary(int i)
bind
public void bind(int i,
PSOperator op)
size
public int size()
subPackedArray
public PSPackedArray subPackedArray(int index,
int count)
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()
throws CloneNotSupportedException
- Specified by:
clone in class PSObject
- Throws:
CloneNotSupportedException
copy
public PSObject copy()
- Specified by:
copy in class PSObject
toFloats
public float[] toFloats()
toDoubles
public double[] toDoubles()
toObjects
public PSObject[] toObjects()
cvs
public String cvs()
- Specified by:
cvs in class PSObject
toString
public String toString()
- Overrides:
toString in class PSObject
toPrint
public String toPrint()
- Overrides:
toPrint in class PSObject
Copyright © 2001-2009 FreeHEP. All Rights Reserved.