|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Polygon
iie.projet.graphics.Etoile
Nested Class Summary |
Nested classes inherited from class java.awt.Polygon |
|
Field Summary | |
private double |
centreX
|
private double |
centreY
|
private java.awt.Color |
couleurFond
|
private java.awt.Color |
couleurTrait
|
private static int |
globalFigIndex
|
private java.lang.String |
nature
|
private int |
nBranches
|
private double |
rayonExt
|
private double |
rayonInt
|
private java.lang.String |
tostring
|
Fields inherited from class java.awt.Polygon |
bounds, npoints, xpoints, ypoints |
Constructor Summary | |
Etoile()
|
Method Summary | |
void |
draw(java.awt.Graphics2D g)
draw. |
double |
getCentreX()
|
double |
getCentreY()
|
java.awt.Color |
getCouleurFond()
getCouleurFond. |
java.awt.Color |
getCouleurTrait()
getCouleurTrait. |
java.lang.String |
getNature()
getNature. |
int |
getNBranches()
|
double |
getRayonExt()
|
double |
getRayonInt()
|
Etoile |
interpol(Etoile e,
double factor)
|
void |
setCouleurFond(java.awt.Color couleur)
setCouleurFond. |
void |
setCouleurTrait(java.awt.Color couleur)
setCouleurTrait. |
void |
setLibelle(java.lang.String libelle)
setLibelle. |
void |
setParams(double X,
double Y,
double ri,
double re,
int n)
|
java.lang.String |
toString()
toString. |
Methods inherited from class java.awt.Polygon |
addPoint, contains, contains, contains, contains, contains, contains, getBoundingBox, getBounds, getBounds2D, getPathIterator, getPathIterator, inside, intersects, intersects, invalidate, reset, translate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.lang.String nature
private java.lang.String tostring
private java.awt.Color couleurTrait
private java.awt.Color couleurFond
private static int globalFigIndex
private double centreX
private double centreY
private double rayonInt
private double rayonExt
private int nBranches
Constructor Detail |
public Etoile()
Method Detail |
public void setParams(double X, double Y, double ri, double re, int n)
public double getCentreX()
public double getCentreY()
public double getRayonInt()
public double getRayonExt()
public int getNBranches()
public void setCouleurTrait(java.awt.Color couleur)
Forme
setCouleurTrait
in interface Forme
couleur
- La nouvelle couleurpublic java.awt.Color getCouleurTrait()
Forme
getCouleurTrait
in interface Forme
public void setCouleurFond(java.awt.Color couleur)
Forme
setCouleurFond
in interface Forme
couleur
- La nouvelle couleur de fondpublic java.awt.Color getCouleurFond()
Forme
getCouleurFond
in interface Forme
public java.lang.String getNature()
Forme
getNature
in interface Forme
public java.lang.String toString()
Forme
toString
in interface Forme
public void setLibelle(java.lang.String libelle)
Forme
setLibelle
in interface Forme
libelle
- Le nouvel identifiant.public Etoile interpol(Etoile e, double factor)
public void draw(java.awt.Graphics2D g)
Forme
draw
in interface Forme
g
- Le contexte graphique dans lequel dessinerTransformation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |