|
|||||||||
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.InfoVector
Classe contenant des informations sur les objets de type Vector2D. Elle étend la classe InfoObjet et renseigne donc sur les champs contenus dans cette dernière.
Field Summary | |
protected int |
size
|
protected int |
symbol
|
protected int |
symbolArrow
|
Constructor Summary | |
InfoVector()
Constructeur par défaut: symbol = 0; size = 1; symbolArrow=0 |
|
InfoVector(InfoVector 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 |
getArrow()
Renvoie l'entier définissant la forme de la flèche. |
int |
getSize()
Renvoie la taille en pixel de la fleche |
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 |
setArrow(int sym)
change la forme de la fleche |
void |
setSize(int size)
change la taille de la fleche |
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 symbolArrow
Constructor Detail |
public InfoVector()
public InfoVector(InfoVector inf)
InfoVector
- 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 getArrow()
public void setArrow(int sym)
int,
- la nouvelle formepublic 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 |