sears.gui.glassPane.element
Interface GPShape

All Known Implementing Classes:
PillShape

public interface GPShape

GPShape offers manipulations controls on a define Shape object. ( ... )

See Also:
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

translate

void translate(int x,
               int y)
Translates the GPShape object to the new given coordinates.

Parameters:
x - the new x coordinates.
y - the new y coordinates.

translate

void translate(java.awt.Point point)
Translates the GPShape object to the new given point location.

Parameters:
point - the new point location

getBounds

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.
It's depends to the implementation.

Returns:
the shape bounds

paint

void paint(java.awt.Graphics2D gr)
Paint the GPShape using the graphics context given in parameters

Parameters:
gr - the graphics context