interactors
Class PickInteractor

java.lang.Object
  extended by interactors.Interactor
      extended by interactors.PickInteractor

public class PickInteractor
extends Interactor

Interactor for selecting and dragging objects.


Field Summary
(package private)  boolean moveObject
          specifies if the mouse has been dragged far to start a drag gesture
 
Fields inherited from class interactors.Interactor
handler
 
Constructor Summary
PickInteractor(InteractionHandler handler)
          Constructs the pick interactor.
 
Method Summary
 void mouseDragged(java.awt.event.MouseEvent arg0)
          Dragging the mouse translates the selected object.
 void mouseMoved(java.awt.event.MouseEvent arg0)
          Allow the user to select relations.
 void mousePressed(java.awt.event.MouseEvent arg0)
          Left and right click select an object.
 void mouseReleased(java.awt.event.MouseEvent arg0)
          Releasing the mouse causes the selected object to snap to the grid, if snapping is enabled.
 
Methods inherited from class interactors.Interactor
draw, endInteraction, getCursor, keyPressed, keyReleased, startInteraction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

moveObject

boolean moveObject
specifies if the mouse has been dragged far to start a drag gesture

Constructor Detail

PickInteractor

public PickInteractor(InteractionHandler handler)
Constructs the pick interactor.

Parameters:
handler - - the interaction handler
Method Detail

mousePressed

public void mousePressed(java.awt.event.MouseEvent arg0)
Left and right click select an object.

Overrides:
mousePressed in class Interactor

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent arg0)
Releasing the mouse causes the selected object to snap to the grid, if snapping is enabled.

Overrides:
mouseReleased in class Interactor

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent arg0)
Dragging the mouse translates the selected object.

Overrides:
mouseDragged in class Interactor

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent arg0)
Allow the user to select relations.

Overrides:
mouseMoved in class Interactor