|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.geom.RectangularShape
java.awt.geom.Ellipse2D
java.awt.geom.Ellipse2D.Double
iie.projet.graphics.Cercle
Cercle. Enregistre la représentation d'un cercle.
Forme
Nested Class Summary |
Nested classes inherited from class java.awt.geom.Ellipse2D |
java.awt.geom.Ellipse2D.Double, java.awt.geom.Ellipse2D.Float |
Field Summary | |
private java.awt.Color |
couleurFond
|
private java.awt.Color |
couleurTrait
|
private static int |
globalFigIndex
|
private java.lang.String |
nature
|
private java.lang.String |
tostring
|
Fields inherited from class java.awt.geom.Ellipse2D.Double |
height, width, x, y |
Constructor Summary | |
Cercle()
Constructeur. |
Method Summary | |
void |
draw(java.awt.Graphics2D g)
draw. |
java.awt.Color |
getCouleurFond()
getCouleurFond. |
java.awt.Color |
getCouleurTrait()
getCouleurTrait. |
java.lang.String |
getNature()
getNature. |
Cercle |
interpol(Cercle c,
double factor)
Interpolation avec un Cercle. |
Ellipse |
interpol(Ellipse e,
double factor)
Interpolation avec une Ellipse. |
void |
redim(double X,
double Y,
double dX,
double dY)
Redimensionnement. |
void |
setCouleurFond(java.awt.Color couleur)
setCouleurFond. |
void |
setCouleurTrait(java.awt.Color couleur)
setCouleurTrait. |
void |
setLibelle(java.lang.String libelle)
setLibelle. |
java.lang.String |
toString()
toString. |
Methods inherited from class java.awt.geom.Ellipse2D.Double |
getBounds2D, getHeight, getWidth, getX, getY, isEmpty, setFrame |
Methods inherited from class java.awt.geom.Ellipse2D |
contains, contains, getPathIterator, intersects |
Methods inherited from class java.awt.geom.RectangularShape |
clone, contains, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, getPathIterator, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal |
Methods inherited from class java.lang.Object |
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
Constructor Detail |
public Cercle()
Method Detail |
public void redim(double X, double Y, double dX, double dY)
X
- abscisse du rectangle (coin inférieur gauche)Y
- ordonnéedX
- longueur du rectangledY
- largeur du rectanglepublic 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 Cercle interpol(Cercle c, double factor)
c
- Le cercle avec qui faire l'interpolationfactor
- Le facteur d'interpolationInterpolColor
public Ellipse interpol(Ellipse e, double factor)
e
- L'éllipse avec qui effectuer l'interpolationfactor
- Le facteur d'interpolationEllipse
,
InterpolColor
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 |