|
||||||||||
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.Rectangle2D
java.awt.geom.Rectangle2D.Double
iie.projet.graphics.Carre
Stocke une représentation d'un carré.
Forme
Nested Class Summary |
Nested classes inherited from class java.awt.geom.Rectangle2D |
java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.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.Rectangle2D.Double |
height, width, x, y |
Fields inherited from class java.awt.geom.Rectangle2D |
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP |
Constructor Summary | |
Carre()
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. |
Carre |
interpol(Carre c,
double factor)
Interpolation avec un Carre. |
Rectangle |
interpol(Rectangle r,
double factor)
Interpolation avec un Rectangle. |
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.Rectangle2D.Double |
createIntersection, createUnion, getBounds2D, getHeight, getWidth, getX, getY, isEmpty, outcode, setRect, setRect |
Methods inherited from class java.awt.geom.Rectangle2D |
add, add, add, contains, contains, equals, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, union |
Methods inherited from class java.awt.geom.RectangularShape |
clone, contains, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal |
Methods inherited from class java.lang.Object |
finalize, getClass, 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 Carre()
Method Detail |
public void redim(double X, double Y, double dX, double dY)
X
- nouvelle abscisseY
- nouvelle ordonnéedX
- nouvelle largeurdY
- nouvelle longueur (la plus petite des deux est prise comme longueur de côté)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 Carre interpol(Carre c, double factor)
c
- le carré avec lequel on s'interpolefactor
- le facteur d'interpolation (entre 0 et 1)InterpolColor
public Rectangle interpol(Rectangle r, double factor)
r
- le Rectangle avec lequel on s'interpolefactor
- le facteur d'interpolationRectangle
,
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 |