|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GPShape
GPShape
offers manipulations controls on a define Shape
object.
( ... )
Shape
,
Graphics2D
Method Summary | |
---|---|
java.awt.Shape |
getBounds()
Returns a Shape object that represents the abstract bounds
of the GPShape
This shape could be the real bounds, an aproximation (like a rectangle that enclose entirely the GPShape) or a part of the GPShape. |
void |
paint(java.awt.Graphics2D gr)
Paint the GPShape using the graphics context given in parameters |
void |
translate(int x,
int y)
Translates the GPShape object to the new given coordinates. |
void |
translate(java.awt.Point point)
Translates the GPShape object to the new given point location. |
Method Detail |
---|
void translate(int x, int y)
GPShape
object to the new given coordinates.
x
- the new x coordinates.y
- the new y coordinates.void translate(java.awt.Point point)
GPShape
object to the new given point location.
point
- the new point locationjava.awt.Shape getBounds()
Shape
object that represents the abstract bounds
of the GPShape
void paint(java.awt.Graphics2D gr)
GPShape
using the graphics context given in parameters
gr
- the graphics context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |