canvas
Interface RotatingCanvasComponent

All Superinterfaces:
CanvasComponent
All Known Implementing Classes:
PictureComponent, ShapeComponent

public interface RotatingCanvasComponent
extends CanvasComponent

An extension to the CanvasComponent interface that provides methods for rotation.


Method Summary
 void rotate(double degrees)
          Rotates this component around its center by the given amount
 void rotateAbout(double degrees, double x, double y)
          Rotates this component about a given set of coordinates by the given amount
 void smoothRotate(double degrees, int milliseconds)
          Smoothly rotates this component around its center by the given amount over the given time period.
 void smoothRotateAbout(double degrees, double x, double y, int milliseconds)
          Smoothly rotates this component around the given coordinates by the given amount over the given time period.
 
Methods inherited from interface canvas.CanvasComponent
getHeight, getWidth, moveTo, redraw, resizeTo, setFeedbackText, smoothMove, smoothResize
 

Method Detail

rotate

public void rotate(double degrees)
Rotates this component around its center by the given amount


smoothRotate

public void smoothRotate(double degrees,
                         int milliseconds)
Smoothly rotates this component around its center by the given amount over the given time period.


rotateAbout

public void rotateAbout(double degrees,
                        double x,
                        double y)
Rotates this component about a given set of coordinates by the given amount


smoothRotateAbout

public void smoothRotateAbout(double degrees,
                              double x,
                              double y,
                              int milliseconds)
Smoothly rotates this component around the given coordinates by the given amount over the given time period.