org.freehep.postscript.types
Class PSArray

java.lang.Object
  extended by org.freehep.postscript.types.PSObject
      extended by org.freehep.postscript.types.PSComposite
          extended by org.freehep.postscript.types.PSPackedArray
              extended by org.freehep.postscript.types.PSArray
All Implemented Interfaces:
Cloneable

public class PSArray
extends PSPackedArray

Objects for PostScript Processor, as defined in 3.3 Data Types and Objects

Version:
$Id: src/main/java/org/freehep/postscript/PSArray.java 17245790f2a9 2006/09/12 21:44:14 duns $
Author:
Mark Donszelmann

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

Constructor Detail

PSArray

public PSArray(int n)

PSArray

public PSArray(PSObject[] a)

PSArray

public PSArray(float[] f)

PSArray

public PSArray(double[] d)

PSArray

public PSArray(String[] s)
Method Detail

getType

public String getType()
Overrides:
getType in class PSPackedArray

set

public void set(int i,
                PSObject o)

set

public void set(int i,
                String s)

set

public void set(int i,
                double d)

set

public void set(int i,
                int d)

set

public void set(double[] d)

subArray

public PSArray subArray(int index,
                        int count)

hashCode

public int hashCode()
Overrides:
hashCode in class PSPackedArray

equals

public boolean equals(Object o)
Overrides:
equals in class PSPackedArray

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class PSPackedArray
Throws:
CloneNotSupportedException

cvs

public String cvs()
Overrides:
cvs in class PSPackedArray

toString

public String toString()
Overrides:
toString in class PSPackedArray


Copyright © 2001-2009 FreeHEP. All Rights Reserved.