actions
Class RotateAction

java.lang.Object
  extended by actions.RotateAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class RotateAction
extends java.lang.Object
implements java.awt.event.ActionListener

Action for rotation an object.


Field Summary
(package private)  double amount
          the amount to rotate the shape, in radians
(package private)  InteractionHandler handler
          the interaction handler
 
Constructor Summary
RotateAction(InteractionHandler handler, double amount)
          Constructs a rotation action.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent arg0)
          Rotates the object currently selected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

handler

InteractionHandler handler
the interaction handler


amount

double amount
the amount to rotate the shape, in radians

Constructor Detail

RotateAction

public RotateAction(InteractionHandler handler,
                    double amount)
Constructs a rotation action.

Parameters:
handler - - the interaction handler
amount - - the amount in radians to rotate the shape
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent arg0)
Rotates the object currently selected.

Specified by:
actionPerformed in interface java.awt.event.ActionListener