opale.m2d.object2d
Class InfoData

java.lang.Object
  |
  +--opale.m2d.InfoObject
        |
        +--opale.m2d.object2d.InfoData
All Implemented Interfaces:
java.lang.Cloneable

public class InfoData
extends InfoObject
implements java.lang.Cloneable

Classe contenant des informations graphiques sur les objets de type GData2D. Elle étend la classe InfoObjet et renseigne donc sur les champs contenus dans cette dernière.

Since:
Opale-2d 0.1

Field Summary
protected  int sizePoint
           
 
Constructor Summary
InfoData()
          Constructeur par défaut: stylePoint = 0; typeGraph = 0, sizePoint = 5;
InfoData(InfoData 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 getSizePoint()
          Deprecated. Now @see opale.m2d.MarkType
 int getStylePoint()
          Deprecated. Now @see opale.m2d.MarkType
 int getTypeGraph()
          Renvoie l'entier définissant le style de tracé du nuage.
 int readKeyWord(java.lang.String word, java.io.StreamTokenizer f, OpaleSet p)
          Interprète un mot clé lu dans un fichier.
 void setSizePoint(int size)
          Deprecated. Now @see opale.m2d.MarkType
 void setStylePoint(int s)
          Deprecated. Now @see opale.m2d.MarkType
 void setTypeGraph(int s)
          change le style de tracé du nuage.
 void writeMore(java.io.PrintWriter f, OpaleSet p)
          Ecris les informations complémentaires concernant l'objet dans un fichier.
 
Methods inherited from class opale.m2d.InfoObject
getColor, getName, isVisible, read, setColor, setName, setUnvisible, setVisible, write
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sizePoint

protected int sizePoint
Constructor Detail

InfoData

public InfoData()
Constructeur par défaut: stylePoint = 0; typeGraph = 0, sizePoint = 5;

InfoData

public InfoData(InfoData inf)
Le constructeur de copie
Parameters:
InfoLine - inf, l'information à copier
Method Detail

getStylePoint

public final int getStylePoint()
Deprecated. Now @see opale.m2d.MarkType

Renvoie l'entier définissant le style de tracé d'un point.
Returns:
int le style de tracé : 0 = pas de trcé 1 = point 2 = + 3 = X 4 = cercle 5 = carré 6 = diamant 7 = triangle haut 8 = triangle bas 9 = triangle gauche 10 = triangle droit

setStylePoint

public final void setStylePoint(int s)
Deprecated. Now @see opale.m2d.MarkType

change le style de tracé d'un point.
Parameters:
short - le nouveau style

getSizePoint

public int getSizePoint()
Deprecated. Now @see opale.m2d.MarkType

Renvoie la taille en pixel du point
Returns:
int, la taille

setSizePoint

public void setSizePoint(int size)
Deprecated. Now @see opale.m2d.MarkType

change la taille du point
Parameters:
int - size, la nouvelle taille en pixel

getTypeGraph

public final int getTypeGraph()
Renvoie l'entier définissant le style de tracé du nuage.
Returns:
int le style de tracé : 0 = tracé de ligne 1 = point seulement 2 = barres verticales 3 = barres horizontales 4 = barres horizontales et verticales

setTypeGraph

public final void setTypeGraph(int s)
change le style de tracé du nuage.
Parameters:
short - le nouveau style

clone

public java.lang.Object clone()
Crée un nouvel objet de même classe et de même contenu.
Overrides:
clone in class InfoObject
Returns:
Object un clone de l'objet.
Throws:
OutOfMemoryError - s'il n'y a pas assez de mémoire.
See Also:
Cloneable

writeMore

public final void writeMore(java.io.PrintWriter f,
                            OpaleSet p)
Description copied from class: InfoObject
Ecris les informations complémentaires concernant l'objet dans un fichier.
Overrides:
writeMore in class InfoObject
Following copied from class: opale.m2d.InfoObject
Parameters:
WFile - f, le fichier dans lequel il faut écrire.

readKeyWord

public final int readKeyWord(java.lang.String word,
                             java.io.StreamTokenizer f,
                             OpaleSet p)
                      throws java.io.IOException,
                             InvalidFormatException
Description copied from class: InfoObject
Interprète un mot clé lu dans un fichier.
Overrides:
readKeyWord in class InfoObject
Following copied from class: opale.m2d.InfoObject
Parameters:
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.
Returns:
int, 0 si le mot à été compris, -1 sinon.