opale.m2d
Class Object2D

java.lang.Object
  |
  +--opale.tools.OpaleObject
        |
        +--opale.m2d.Object2D
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
Conic, Data2D, FPolar, Line2D, Point2D, Vector2D, xyFt, yFx

public abstract class Object2D
extends OpaleObject
implements java.lang.Cloneable

This abstract class is the root of the class hierarchy that represents an object 2D.

Since:
Opale-2d 0.15, Elle ้tend la classe OpaleObject

Constructor Summary
Object2D()
          Construct and initialize with the absolute OIJ.
Object2D(OIJ rep)
          Construct and initialize with an specified OIJ.
 
Method Summary
abstract  void changeOIJ(OIJ rep)
          Compute the changement of OIJ for this object.
 java.lang.Object clone()
          Create a new object of the same class and with the same contents as this vector.
 OIJ getOIJ()
          Return the instance OIJ of this object.
 void read(java.io.StreamTokenizer f, OpaleSet pack)
          Read in a stream the construction of this object calling the method readKeyWord().
 void setOIJ(OIJ rep)
          Set the OIJ basis of this object.
abstract  java.lang.String toString()
          Return a string representation of this object.
 void write(java.io.PrintWriter f, OpaleSet pack)
          Write informations about this object in a stream.
abstract  void writeMore(java.io.PrintWriter f, OpaleSet pack)
          Write complementary information in a stream.
 double xmax()
          Return the maximum of the X coordinate.
 
Methods inherited from class opale.tools.OpaleObject
getId, readKeyWord, setId
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Object2D

public Object2D()
Construct and initialize with the absolute OIJ.

Object2D

public Object2D(OIJ rep)
Construct and initialize with an specified OIJ.
Parameters:
OIJ - rep, an instance of OIJ.
Method Detail

setOIJ

public void setOIJ(OIJ rep)
Set the OIJ basis of this object.
Parameters:
OIJ - rep, the new OIJ.

getOIJ

public OIJ getOIJ()
Return the instance OIJ of this object.
Returns:
OIJ rep, the basis of this object.

clone

public java.lang.Object clone()
Create a new object of the same class and with the same contents as this vector.
Overrides:
clone in class OpaleObject
Returns:
Object, a clone of this instance.
Throws:
OutOfMemoryError - if there is not enough memory.
See Also:
Cloneable

changeOIJ

public abstract void changeOIJ(OIJ rep)
Compute the changement of OIJ for this object.
Parameters:
OIJ - rep, the new OIJ.

toString

public abstract java.lang.String toString()
Return a string representation of this object.
Overrides:
toString in class java.lang.Object

write

public void write(java.io.PrintWriter f,
                  OpaleSet pack)
           throws InvalidFormatException
Write informations about this object in a stream.
Overrides:
write in class OpaleObject
Parameters:
WFile - f, the file in writing.

writeMore

public abstract void writeMore(java.io.PrintWriter f,
                               OpaleSet pack)
                        throws InvalidFormatException
Write complementary information in a stream.
Parameters:
WFile - f, the file in writing .

read

public void read(java.io.StreamTokenizer f,
                 OpaleSet pack)
          throws java.io.IOException,
                 InvalidFormatException
Read in a stream the construction of this object calling the method readKeyWord().
Overrides:
read in class OpaleObject
Parameters:
RFile - f, the file to read.

xmax

public double xmax()
Return the maximum of the X coordinate.
Returns:
double, X maximum.