|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--opale.m2d.ker.Object2D
This abstract class is the root of the class hierarchy that represents an object 2D.
Constructor Summary | |
Object2D()
Constructs and initializes with the absolute OIJ. |
|
Object2D(OIJ rep)
Constructs and initializes with an specified OIJ. |
Method Summary | |
abstract void |
changeOIJ(OIJ rep)
Computes the changement of OIJ for this object. |
java.lang.Object |
clone()
Creates a new object of the same class and with the same contents as this vector. |
OIJ |
getOIJ()
Returns the instance OIJ of this object. |
void |
readFile(RFile f,
Pack2D pack)
Reads in a file the construction of this object calling the method readKeyWord(). |
abstract int |
readKeyWord(java.lang.String word,
RFile f,
Pack2D pack)
Interpret a keyword read in a file. |
void |
setOIJ(OIJ rep)
Sets the OIJ basis of this object. |
abstract java.lang.String |
toString()
Returns a string representation of this object. |
void |
writeFile(WFile f,
Pack2D pack)
Writes informations about this object in a file. |
abstract void |
writeFileMore(WFile f,
Pack2D pack)
Wrtie complementary information in a file. |
double |
xmax()
Returns the maximum of the X coordinate. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Object2D()
public Object2D(OIJ rep)
OIJ
- rep, an instance of OIJ
.Method Detail |
public void setOIJ(OIJ rep)
OIJ
- rep, the new OIJ.public OIJ getOIJ()
OIJ
of this object.public java.lang.Object clone()
clone
in class java.lang.Object
OutOfMemoryError
- if there is not enough memory.Cloneable
public void readFile(RFile f, Pack2D pack) throws java.io.IOException, MalformedFileException
readKeyWord().
RFile
- f, the file to read.public abstract void changeOIJ(OIJ rep)
OIJ
- rep, the new OIJ.public abstract java.lang.String toString()
toString
in class java.lang.Object
public abstract int readKeyWord(java.lang.String word, RFile f, Pack2D pack) throws java.io.IOException, MalformedFileException
String
- word, the keyword.RFile
- f, the file in reading.Pack2D
- p, instance of Pack2D
that contains the requiered objects.public void writeFile(WFile f, Pack2D pack) throws MalformedFileException
WFile
- f, the file in writing.public abstract void writeFileMore(WFile f, Pack2D pack)
WFile
- f, the file in writing .public double xmax()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |