|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jpicedt.graphic.toolkit.ConvexZone
public class ConvexZone
Objet graphique permettant de visualiser une zone polygonale convexe sur
la toile de dessin PECanvas
, ainsi que dérouter les évenements
d'entrée de l'utilisateur.
Field Summary | |
---|---|
protected PECanvas |
canvas
|
protected ConvexPolygonalZone |
convexPolygonalZone
La définition de la zone polyogonale convexe sous-jacente. |
Constructor Summary | |
---|---|
ConvexZone(ConvexPolygonalZone convexPolygonalZone,
PECanvas canvas)
|
Method Summary | |
---|---|
ConvexZone |
clone()
|
boolean |
containsPoint(PicPoint pt)
|
void |
createShape(Rectangle2D allocation)
Le méthode createShape crée la forme qui sert à visualiser
le contour de la zone convexe. |
Rectangle2D |
getBoundingBox()
|
ConvexPolygonalZone |
getConvexPolygonalZone()
|
Drawing |
getDrawing()
|
String |
getName()
|
ConvexZoneHitInfo |
hitTest(PEMouseEvent e,
boolean isHighlightVisible)
Describe hitTest method here. |
void |
paint(Graphics2D g,
Rectangle2D allocation,
double scale)
|
void |
paintHighlighter(Graphics2D g,
Rectangle2D allocation,
double scale)
|
void |
rotate(PicPoint org,
double angle)
|
void |
scale(double x,
double y,
double dx,
double dy)
|
void |
scale(PicPoint pt,
double dx,
double dy)
|
void |
shear(PicPoint pt,
double shx,
double shy)
|
String |
toString()
Renvoie une String décrivant this à des fin
de débogage. |
void |
translate(double dx,
double dy)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected ConvexPolygonalZone convexPolygonalZone
protected PECanvas canvas
Constructor Detail |
---|
public ConvexZone(ConvexPolygonalZone convexPolygonalZone, PECanvas canvas)
Method Detail |
---|
public ConvexZone clone()
clone
in class Object
public String getName()
public ConvexPolygonalZone getConvexPolygonalZone()
public void createShape(Rectangle2D allocation)
createShape
crée la forme qui sert à visualiser
le contour de la zone convexe.
public ConvexZoneHitInfo hitTest(PEMouseEvent e, boolean isHighlightVisible)
hitTest
method here.
e
- a PEMouseEvent
valueisHighlightVisible
- a boolean
value
ConvexZoneHitTest
valuepublic void paint(Graphics2D g, Rectangle2D allocation, double scale)
public Rectangle2D getBoundingBox()
public Drawing getDrawing()
public void shear(PicPoint pt, double shx, double shy)
public void rotate(PicPoint org, double angle)
public void scale(double x, double y, double dx, double dy)
public void scale(PicPoint pt, double dx, double dy)
public void translate(double dx, double dy)
public void paintHighlighter(Graphics2D g, Rectangle2D allocation, double scale)
public String toString()
String
décrivant this
à des fin
de débogage.
toString
in class Object
String
décrivant this
.public boolean containsPoint(PicPoint pt)
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |