quicktime.app.actions
Class DragAction

java.lang.Object
  |
  +--quicktime.app.event.DragAdapter
        |
        +--quicktime.app.actions.DragAction
All Implemented Interfaces:
java.util.EventListener, MouseButtonListener, MouseMoveListener, QTMouseListener

Deprecated. since QTJava 6.1

public class DragAction
extends DragAdapter

The DragAction is a drag adapter that delegates the role of responding to a mouse drag event to the TransformMatrix transformer. It is a utility class that assumes that the mousePressed method will select a Transformable target and the mouseDragged method will alter the matrix of this target in some manner.


Constructor Summary
DragAction(TransformMatrix transformer)
          Deprecated. since QTJava 6.1
 
Method Summary
 Actionable getActionable()
          Deprecated. since QTJava 6.1
 TransformMatrix getTransformer()
          Deprecated. since QTJava 6.1
 void mouseDragged(QTMouseEvent event)
          Deprecated. since QTJava 6.1
 void mousePressed(QTMouseEvent event)
          Deprecated. since QTJava 6.1
 void setActionable(Actionable actor)
          Deprecated. since QTJava 6.1
 void setTransformer(TransformMatrix transformer)
          Deprecated. since QTJava 6.1
 
Methods inherited from class quicktime.app.event.DragAdapter
matchModifierFilter, mouseClicked, mouseMoved, mouseReleased
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DragAction

public DragAction(TransformMatrix transformer)
Deprecated. since QTJava 6.1

Create a DragAction object.

Parameters:
transformer - this is the object that will apply the matrix transformations in reponse to a mouseDragged event.
Method Detail

getActionable

public Actionable getActionable()
Deprecated. since QTJava 6.1

This method retreives the current actor that is attached to the action


setActionable

public void setActionable(Actionable actor)
Deprecated. since QTJava 6.1

This method sets the actionable object of the action.


setTransformer

public void setTransformer(TransformMatrix transformer)
Deprecated. since QTJava 6.1

This method sets the actionable object of the action.


getTransformer

public TransformMatrix getTransformer()
Deprecated. since QTJava 6.1

This method retreives the current actor that is attached to the action


mousePressed

public void mousePressed(QTMouseEvent event)
Deprecated. since QTJava 6.1

Initializes the currently set TransformMatrix object to the current coordinates of the mouse event.

Specified by:
mousePressed in interface MouseButtonListener
Overrides:
mousePressed in class DragAdapter
Parameters:
event - the mouse event that triggers the drag action

mouseDragged

public void mouseDragged(QTMouseEvent event)
Deprecated. since QTJava 6.1

Responds to the mouseDragged event by calling the transformTarget (int x, int y) method on the set TransformMatrix object.

Specified by:
mouseDragged in interface MouseMoveListener
Overrides:
mouseDragged in class DragAdapter
Parameters:
event - the mouse event that triggers the drag action