Back to index

wims  3.65+svn20090927
Public Member Functions | Public Attributes | Static Public Attributes
geo.Element Class Reference

Définit un élement d'une figure géométrique. More...

Collaboration diagram for geo.Element:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Element (int id, Color couleur, ObjetRepere obj, int arg0, int arg1, int arg2)
 Construction de l'élément.
 Element (int id)
 Construction d'un élément vide.
void efface (Graphics g)
 Effacement (graphique) de l'objet.
void trace (Graphics g)
 Tracé de l'objet.

Public Attributes

int id
 Identificateur de l'élement de la figure.
Color couleur
 Couleur de l'objet.
ObjetRepere obj
 Objet géométrique.
int args [] = {0, 0, 0}
 Indique l'adresse des éléments servant à construire l'élément courant.

Static Public Attributes

static final int PT_X_Y = 1
 Valeur de l'identificateur de l'élement de la figure.
static final int PT_MILIEU_PT_PT = 2
static final int PT_ROTATION_PT_A = 3
static final int PT_HOMOTHETIQUE_PT_PT_K = 4
static final int PT_SYMETRIQUE_PT_PT = 5
static final int POINTLIBRE = 6
static final int POINTSURDROITE_DT = 7
static final int POINTSURCERCLE_CRCL = 8
static final int POINT_CENTRE = 9
static final int POINT_INTER_DT_DT = 10
static final int POINT_INTER1_DT_CRCL = 11
static final int POINT_INTER2_DT_CRCL = 12
static final int POINT_INTER1_CRCL_CRCL = 13
static final int POINT_INTER2_CRCL_CRCL = 14
static final int POINT_PROJECTION_PT_DT = 15
static final int POINT_PROJECTION_PT_SEG = 16
static final int POINT_SYMETRIQUE_PT_DT = 17
static final int POINT_SYMETRIQUE_PT_SEG = 18
static final int POINT_ROTATION_PT_PT_ARCDECERCLE = 19
static final int POINT_TRANSLATION_PT_VECT = 20
static final int ARCDECERCLE_PT_PT_PT = 21
static final int CERCLE_PT_R = 22
static final int CERCLE_PT_PT = 23
static final int CERCLE_PT_PT_PT = 24
static final int SEGMENT_PT_PT = 25
static final int VECTEUR_PT_PT = 26
static final int VECTEUR_SOMME_V_W_PT = 27
static final int VECTEUR_PRODUIT_V_K_PT = 28
static final int VECTEUR_PT_PT_PT = 29
static final int DROITE_PT_PT = 30
static final int DROITE_PT_VECT = 31
static final int DROITE_A_B_C = 32
static final int DROITE_PARA_DT_PT = 33
static final int DROITE_PARA_SEG_PT = 34
static final int DROITE_PERP_DT_PT = 35
static final int DROITE_PERP_SEG_PT = 36
static final int DROITE_MEDI_PT_PT = 37
static final int DROITE_BISS_PT_PT_PT = 38
static final int DEMIDROITE_PT_PT = 39
static final int DEMIDROITE_PT_VECT = 40
static final int NOMBRE = 41
static final int NOMBRE_PT_ABS = 42
static final int NOMBRE_PT_ORD = 43
static final int NOMBRE_DISTANCE_PT_DR = 44
static final int NOMBRE_DISTANCE_PT_PT = 45
static final int NOMBRE_NORME_VECT = 46
static final int NOMBRE_LONGUEUR_SEG = 47
static final int NOMBRE_RAYON_CRCL = 48
static final int NOMBRE_SOMME = 49
static final int NOMBRE_DIFFERENCE = 50
static final int NOMBRE_PRODUIT = 51
static final int NOMBRE_QUOTIENT = 52
static final int NOMBRE_OPPOSE = 53
static final int NOMBRE_VABS = 54
static final int NOMBRE_RACINE = 55
static final int NOMBRE_COS = 56
static final int NOMBRE_SIN = 57
static final int NOMBRE_ARCCOS = 58
static final int NOMBRE_ARCSIN = 59
static final int NOMBRE_LN = 60
static final int NOMBRE_PUISSANCE = 61

Detailed Description

Définit un élement d'une figure géométrique.

Definition at line 11 of file Element.java.


Constructor & Destructor Documentation

geo.Element.Element ( int  id,
Color  couleur,
ObjetRepere  obj,
int  arg0,
int  arg1,
int  arg2 
) [inline]

Construction de l'élément.

Definition at line 108 of file Element.java.

 { this.id = id ; this.couleur = couleur ; this.obj = obj ;
   args [0] = arg0 ; args [1] = arg1 ; args [2] = arg2 ; }
geo.Element.Element ( int  id) [inline]

Construction d'un élément vide.

Definition at line 116 of file Element.java.

 { this.id = id ; }

Member Function Documentation

void geo.Element.efface ( Graphics  g) [inline]

Effacement (graphique) de l'objet.

Definition at line 123 of file Element.java.

  { if ((id >= PT_X_Y) && (id < NOMBRE))
      switch (id) 
        { case POINTLIBRE :
          case POINTSURDROITE_DT :
          case POINTSURCERCLE_CRCL : 
            if (((pointlibre) obj).deplace)
              { ((pointlibre) obj).efface (g) ;
                break ;
              }
          default : obj.trace (g) ;
        }
  }

Here is the call graph for this function:

Here is the caller graph for this function:

void geo.Element.trace ( Graphics  g) [inline]

Tracé de l'objet.

Definition at line 141 of file Element.java.

  { if ((id >= PT_X_Y) && (id < NOMBRE) && (couleur != Color.white))
      { g.setColor (couleur) ;
        obj.trace (g) ;
      }
  }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

final int geo.Element.ARCDECERCLE_PT_PT_PT = 21 [static]

Definition at line 38 of file Element.java.

int geo.Element.args[] = {0, 0, 0}

Indique l'adresse des éléments servant à construire l'élément courant.

Definition at line 102 of file Element.java.

final int geo.Element.CERCLE_PT_PT = 23 [static]

Definition at line 40 of file Element.java.

final int geo.Element.CERCLE_PT_PT_PT = 24 [static]

Definition at line 41 of file Element.java.

final int geo.Element.CERCLE_PT_R = 22 [static]

Definition at line 39 of file Element.java.

Couleur de l'objet.

Definition at line 90 of file Element.java.

final int geo.Element.DEMIDROITE_PT_PT = 39 [static]

Definition at line 56 of file Element.java.

final int geo.Element.DEMIDROITE_PT_VECT = 40 [static]

Definition at line 57 of file Element.java.

final int geo.Element.DROITE_A_B_C = 32 [static]

Definition at line 49 of file Element.java.

final int geo.Element.DROITE_BISS_PT_PT_PT = 38 [static]

Definition at line 55 of file Element.java.

final int geo.Element.DROITE_MEDI_PT_PT = 37 [static]

Definition at line 54 of file Element.java.

final int geo.Element.DROITE_PARA_DT_PT = 33 [static]

Definition at line 50 of file Element.java.

final int geo.Element.DROITE_PARA_SEG_PT = 34 [static]

Definition at line 51 of file Element.java.

final int geo.Element.DROITE_PERP_DT_PT = 35 [static]

Definition at line 52 of file Element.java.

final int geo.Element.DROITE_PERP_SEG_PT = 36 [static]

Definition at line 53 of file Element.java.

final int geo.Element.DROITE_PT_PT = 30 [static]

Definition at line 47 of file Element.java.

final int geo.Element.DROITE_PT_VECT = 31 [static]

Definition at line 48 of file Element.java.

Identificateur de l'élement de la figure.

Definition at line 84 of file Element.java.

final int geo.Element.NOMBRE = 41 [static]

Definition at line 58 of file Element.java.

final int geo.Element.NOMBRE_ARCCOS = 58 [static]

Definition at line 75 of file Element.java.

final int geo.Element.NOMBRE_ARCSIN = 59 [static]

Definition at line 76 of file Element.java.

final int geo.Element.NOMBRE_COS = 56 [static]

Definition at line 73 of file Element.java.

final int geo.Element.NOMBRE_DIFFERENCE = 50 [static]

Definition at line 67 of file Element.java.

final int geo.Element.NOMBRE_DISTANCE_PT_DR = 44 [static]

Definition at line 61 of file Element.java.

final int geo.Element.NOMBRE_DISTANCE_PT_PT = 45 [static]

Definition at line 62 of file Element.java.

final int geo.Element.NOMBRE_LN = 60 [static]

Definition at line 77 of file Element.java.

final int geo.Element.NOMBRE_LONGUEUR_SEG = 47 [static]

Definition at line 64 of file Element.java.

final int geo.Element.NOMBRE_NORME_VECT = 46 [static]

Definition at line 63 of file Element.java.

final int geo.Element.NOMBRE_OPPOSE = 53 [static]

Definition at line 70 of file Element.java.

final int geo.Element.NOMBRE_PRODUIT = 51 [static]

Definition at line 68 of file Element.java.

final int geo.Element.NOMBRE_PT_ABS = 42 [static]

Definition at line 59 of file Element.java.

final int geo.Element.NOMBRE_PT_ORD = 43 [static]

Definition at line 60 of file Element.java.

final int geo.Element.NOMBRE_PUISSANCE = 61 [static]

Definition at line 78 of file Element.java.

final int geo.Element.NOMBRE_QUOTIENT = 52 [static]

Definition at line 69 of file Element.java.

final int geo.Element.NOMBRE_RACINE = 55 [static]

Definition at line 72 of file Element.java.

final int geo.Element.NOMBRE_RAYON_CRCL = 48 [static]

Definition at line 65 of file Element.java.

final int geo.Element.NOMBRE_SIN = 57 [static]

Definition at line 74 of file Element.java.

final int geo.Element.NOMBRE_SOMME = 49 [static]

Definition at line 66 of file Element.java.

final int geo.Element.NOMBRE_VABS = 54 [static]

Definition at line 71 of file Element.java.

Objet géométrique.

Definition at line 96 of file Element.java.

final int geo.Element.POINT_CENTRE = 9 [static]

Definition at line 26 of file Element.java.

final int geo.Element.POINT_INTER1_CRCL_CRCL = 13 [static]

Definition at line 30 of file Element.java.

final int geo.Element.POINT_INTER1_DT_CRCL = 11 [static]

Definition at line 28 of file Element.java.

final int geo.Element.POINT_INTER2_CRCL_CRCL = 14 [static]

Definition at line 31 of file Element.java.

final int geo.Element.POINT_INTER2_DT_CRCL = 12 [static]

Definition at line 29 of file Element.java.

final int geo.Element.POINT_INTER_DT_DT = 10 [static]

Definition at line 27 of file Element.java.

final int geo.Element.POINT_PROJECTION_PT_DT = 15 [static]

Definition at line 32 of file Element.java.

final int geo.Element.POINT_PROJECTION_PT_SEG = 16 [static]

Definition at line 33 of file Element.java.

Definition at line 36 of file Element.java.

final int geo.Element.POINT_SYMETRIQUE_PT_DT = 17 [static]

Definition at line 34 of file Element.java.

final int geo.Element.POINT_SYMETRIQUE_PT_SEG = 18 [static]

Definition at line 35 of file Element.java.

final int geo.Element.POINT_TRANSLATION_PT_VECT = 20 [static]

Definition at line 37 of file Element.java.

final int geo.Element.POINTLIBRE = 6 [static]

Definition at line 23 of file Element.java.

final int geo.Element.POINTSURCERCLE_CRCL = 8 [static]

Definition at line 25 of file Element.java.

final int geo.Element.POINTSURDROITE_DT = 7 [static]

Definition at line 24 of file Element.java.

final int geo.Element.PT_HOMOTHETIQUE_PT_PT_K = 4 [static]

Definition at line 21 of file Element.java.

final int geo.Element.PT_MILIEU_PT_PT = 2 [static]

Definition at line 19 of file Element.java.

final int geo.Element.PT_ROTATION_PT_A = 3 [static]

Definition at line 20 of file Element.java.

final int geo.Element.PT_SYMETRIQUE_PT_PT = 5 [static]

Definition at line 22 of file Element.java.

final int geo.Element.PT_X_Y = 1 [static]

Valeur de l'identificateur de l'élement de la figure.

Definition at line 18 of file Element.java.

final int geo.Element.SEGMENT_PT_PT = 25 [static]

Definition at line 42 of file Element.java.

final int geo.Element.VECTEUR_PRODUIT_V_K_PT = 28 [static]

Definition at line 45 of file Element.java.

final int geo.Element.VECTEUR_PT_PT = 26 [static]

Definition at line 43 of file Element.java.

final int geo.Element.VECTEUR_PT_PT_PT = 29 [static]

Definition at line 46 of file Element.java.

final int geo.Element.VECTEUR_SOMME_V_W_PT = 27 [static]

Definition at line 44 of file Element.java.


The documentation for this class was generated from the following file: