manifold.base
Class ManipulatorAdaptor

java.lang.Object
  |
  +--manifold.base.ManipulatorAdaptor
All Implemented Interfaces:
Manipulator
Direct Known Subclasses:
RotateCanvasTool.RotateManipulator

public class ManipulatorAdaptor
extends java.lang.Object
implements Manipulator

Convenience Adaptor for creating Manipulators.

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

Since:
manifold %Version%
Version:
%Version%, %Time%

Constructor Summary
ManipulatorAdaptor()
           
 
Method Summary
 Command click(java.lang.Object event)
          Click event to the manipulator.
 Command effect(java.lang.Object event)
          Finalizes the manipulation.
 Command grasp(java.lang.Object event)
          Begins the manipulation by grasping the event's source uform.
 Command manipulate(java.lang.Object event)
          Manipulates the source uform.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManipulatorAdaptor

public ManipulatorAdaptor()
Method Detail

grasp

public Command grasp(java.lang.Object event)
Begins the manipulation by grasping the event's source uform.

Specified by:
grasp in interface Manipulator
Parameters:
event - event object encapsulation the information received from the input device
Returns:
Command to be passed to the domain for execution. The command is exectuted on the uform

manipulate

public Command manipulate(java.lang.Object event)
Manipulates the source uform.

Specified by:
manipulate in interface Manipulator
Parameters:
event - event object encapsulation the information received from the input device
Returns:
Command to be passed to the domain for execution. The command is exectuted on the uform

effect

public Command effect(java.lang.Object event)
Finalizes the manipulation.

Specified by:
effect in interface Manipulator
Parameters:
event - event object encapsulation the information received from the input device
Returns:
Command to be passed to the domain for execution. The command is exectuted on the uform

click

public Command click(java.lang.Object event)
Click event to the manipulator. E.g. used by tools creating objects with a mouse click.

Specified by:
click in interface Manipulator
Parameters:
event - event object encapsulation the information received from the input device
Returns:
Command to be passed to the domain for execution. The command is exectuted on the uform


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