|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--opale.m2d.ker.InfoObject | +--opale.m2d.ker.InfoPoint
Classe contenant des informations sur les objets de type Point2D
. Elle étend la classe InfoObjet
et renseigne donc sur les champs contenus dans cette dernière.
Field Summary | |
protected int |
fill
|
protected int |
size
|
protected int |
symbol
|
Constructor Summary | |
InfoPoint()
Constructeur par défaut: symbol = 0; size = 1; |
|
InfoPoint(InfoPoint inf)
Le constructeur de copie |
Method Summary | |
java.lang.Object |
clone()
Crée un nouvel objet de même classe et de même contenu. |
int |
getFill()
Renvoie le mode de remplissage du point |
int |
getSize()
Renvoie la taille en pixel du point |
int |
getSymbol()
Renvoie l'entier définissant la forme du point |
int |
readKeyWord(java.lang.String word,
RFile f,
Pack2D p)
Interprète un mot clé lu dans un fichier. |
void |
setFill(int fill)
change le mode de remplissage du point |
void |
setSize(int size)
change la taille du point |
void |
setSymbol(int sym)
change la forme du point |
void |
writeFileMore(WFile f,
Pack2D p)
Ecris les informations complémentaires concernant l'objet dans un fichier. |
Methods inherited from class opale.m2d.ker.InfoObject |
getColor, getName, isVisible, readFile, setColor, setName, setUnvisible, setVisible, writeFile |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int symbol
protected int size
protected int fill
Constructor Detail |
public InfoPoint()
public InfoPoint(InfoPoint inf)
InfoPoint
- inf, l'information à copierMethod Detail |
public int getSymbol()
public void setSymbol(int sym)
int,
- la nouvelle formepublic int getSize()
public void setSize(int size)
int
- size, la nouvelle taille en pixelpublic int getFill()
public void setFill(int fill)
int
- fill, le nouveau mode de remplissagepublic java.lang.Object clone()
clone
in class InfoObject
OutOfMemoryError
- s'il n'y a pas assez de mémoire.Cloneable
public void writeFileMore(WFile f, Pack2D p)
InfoObject
writeFileMore
in class InfoObject
opale.m2d.ker.InfoObject
WFile
- f, le fichier dans lequel il faut écrire.public int readKeyWord(java.lang.String word, RFile f, Pack2D p) throws java.io.IOException, MalformedFileException
InfoObject
readKeyWord
in class InfoObject
opale.m2d.ker.InfoObject
String
- word, le mot clé à décoder.RFile
- f, le fichier en cours de lecture.Pack2D
- p, le pack qui contient l'ensemble des objets 2d en cours
d'existence.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |