org.freehep.postscript
Class PSPackedArray

java.lang.Object
  extended by org.freehep.postscript.PSObject
      extended by org.freehep.postscript.PSComposite
          extended by org.freehep.postscript.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

Version:
$Id: PSPackedArray.java 8951 2006-09-12 21:44:14Z duns $
Author:
Mark Donszelmann

Field Summary
protected  PSObject[] array
           
protected  int length
           
protected  int start
           
 
Fields inherited from class org.freehep.postscript.PSComposite
access, EXECUTE_ONLY, NONE, READ_ONLY, UNLIMITED
 
Fields inherited from class org.freehep.postscript.PSObject
name
 
Constructor Summary
  PSPackedArray(double[] d)
           
  PSPackedArray(float[] f)
           
protected PSPackedArray(int n)
           
  PSPackedArray(PSObject[] a)
           
  PSPackedArray(String[] s)
           
protected PSPackedArray(String name, PSObject[] a, int index, int count)
           
 
Method Summary
 void bind(int i, PSOperator op)
           
 Object clone()
           
 PSObject copy()
           
 String cvs()
           
 boolean equals(Object o)
           
 boolean execute(OperandStack os)
           
 PSObject get(int i)
           
 PSDictionary getDictionary(int i)
           
 int getInteger(int i)
           
 PSName getName(int i)
           
 String getType()
           
 int hashCode()
           
 int size()
           
 PSPackedArray subPackedArray(int index, int count)
           
 double[] toDoubles()
           
 float[] toFloats()
           
 PSObject[] toObjects()
           
 String toPrint()
           
 String toString()
           
 
Methods inherited from class org.freehep.postscript.PSComposite
accessExecute, accessRead, accessWrite, changeAccess
 
Methods inherited from class org.freehep.postscript.PSObject
checkAndExecute, error, isExecutable, isLiteral, setExecutable, setLiteral, setName
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

array

protected PSObject[] array

start

protected int start

length

protected int length
Constructor Detail

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)
Method Detail

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()
Specified by:
clone in class PSObject

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 © 2000-2006 FreeHEP. All Rights Reserved.