|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinteractors.Interactor
interactors.PickInteractor
public class PickInteractor
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 |
---|
boolean moveObject
Constructor Detail |
---|
public PickInteractor(InteractionHandler handler)
handler
- - the interaction handlerMethod Detail |
---|
public void mousePressed(java.awt.event.MouseEvent arg0)
mousePressed
in class Interactor
public void mouseReleased(java.awt.event.MouseEvent arg0)
mouseReleased
in class Interactor
public void mouseDragged(java.awt.event.MouseEvent arg0)
mouseDragged
in class Interactor
public void mouseMoved(java.awt.event.MouseEvent arg0)
mouseMoved
in class Interactor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |