flatscape.tool
Class RotateCanvasTool.RotateManipulator

java.lang.Object
  |
  +--manifold.base.ManipulatorAdaptor
        |
        +--flatscape.tool.RotateCanvasTool.RotateManipulator
All Implemented Interfaces:
Manipulator
Enclosing class:
RotateCanvasTool

public class RotateCanvasTool.RotateManipulator
extends ManipulatorAdaptor

Implementation of Manipulator interface for the Rotate Canvas Tool.


Constructor Summary
RotateCanvasTool.RotateManipulator()
           
 
Method Summary
 Command grasp(java.lang.Object event)
          Saves the original canvas transformation, starting point and center of canvas
 Command manipulate(java.lang.Object event)
          Finds angle of rotation around saved center, and modifies canvas rotation
 
Methods inherited from class manifold.base.ManipulatorAdaptor
click, effect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RotateCanvasTool.RotateManipulator

public RotateCanvasTool.RotateManipulator()
Method Detail

grasp

public Command grasp(java.lang.Object event)
Saves the original canvas transformation, starting point and center of canvas

Specified by:
grasp in interface Manipulator
Overrides:
grasp in class ManipulatorAdaptor
Parameters:
event - event object encapsulation the information received from the input device
Returns:
null

manipulate

public Command manipulate(java.lang.Object event)
Finds angle of rotation around saved center, and modifies canvas rotation

Specified by:
manipulate in interface Manipulator
Overrides:
manipulate in class ManipulatorAdaptor
Parameters:
event - event object encapsulation the information received from the input device
Returns:
null


Copyright (c) 2003 Rutgers, The State University of New Jersey