flatscape.tool
Class DragLineTool.DragManipulator

java.lang.Object
  |
  +--flatscape.tool.DragLineTool.DragManipulator
All Implemented Interfaces:
Manipulator
Enclosing class:
DragLineTool

public class DragLineTool.DragManipulator
extends java.lang.Object
implements Manipulator

Base manipulator for drag create tools, e.g. line, circle and rectangle tools.


Field Summary
protected  org.w3c.dom.Element model_
           
protected  java.awt.geom.Point2D startPoint_
           
 
Constructor Summary
DragLineTool.DragManipulator(org.w3c.dom.Element model)
           
 
Method Summary
 Command click(java.lang.Object event)
          Does nothing.
 Command effect(java.lang.Object event)
          As manipulate.
 Command grasp(java.lang.Object event)
          Saves the start point, creates the transform of the UForm, and returns a SetUFCmd with the UForm.
 Command manipulate(java.lang.Object event)
          Computes width and height, and new center of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model_

protected org.w3c.dom.Element model_

startPoint_

protected java.awt.geom.Point2D startPoint_
Constructor Detail

DragLineTool.DragManipulator

public DragLineTool.DragManipulator(org.w3c.dom.Element model)
Method Detail

grasp

public Command grasp(java.lang.Object event)
Saves the start point, creates the transform of the UForm, and returns a SetUFCmd with the 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)
Computes width and height, and new center of the object.

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)
As manipulate.

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)
Does nothing.

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