public abstract class DragTransformInteractor2D extends Object implements TransformInteractor, FigMouseButtonListener, FigMouseMotionListener
Details: No details entered.
Modifier | Constructor and Description |
---|---|
protected |
DragTransformInteractor2D(int iButton)
Details:
This constructor sets the button used for dragging with this interactor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
dragTransform2D(FigMouseEvent iEvent,
Point iP0,
Point iP1) |
void |
mouseButtonPressed(FigMouseEvent iEvent)
Begins drag-translating.
|
void |
mouseButtonReleased(FigMouseEvent iEvent)
Ends drag-translating.
|
void |
mouseCursorEntered(FigMouseEvent iEvent)
Ignored.
|
void |
mouseCursorExited(FigMouseEvent iEvent)
Ignored.
|
void |
mouseCursorMoved(FigMouseEvent iEvent)
Continues drag-translating.
|
protected DragTransformInteractor2D(int iButton)
Details:
This constructor sets the button used for dragging with this interactor.
The button values used here are the same as used in FigMouseEvent
.
iButton
- the button valuepublic void mouseButtonPressed(FigMouseEvent iEvent)
Details: This implementation determines if the button pushed is the button used for this transform interaction, and if it is, it records the point where the drag operation began.
mouseButtonPressed
in interface FigMouseButtonListener
iEvent
- the mouse eventFigMouseButtonListener.mouseButtonReleased(FigMouseEvent)
public void mouseButtonReleased(FigMouseEvent iEvent)
Details: This implementation determines if the button released is the button used for this transform interaction, and if it is, it ends the drag operation.
mouseButtonReleased
in interface FigMouseButtonListener
iEvent
- the mouse eventpublic void mouseCursorMoved(FigMouseEvent iEvent)
Details: This implementation determines if this drag transform is currently in progress, and if it is, transforms the view by an amount appropriate for the dragging that took place since the last mouse event.
mouseCursorMoved
in interface FigMouseMotionListener
iEvent
- the mouse eventprotected abstract void dragTransform2D(FigMouseEvent iEvent, Point iP0, Point iP1)
public void mouseCursorEntered(FigMouseEvent iEvent)
mouseCursorEntered
in interface FigMouseMotionListener
iEvent
- describes the eventpublic void mouseCursorExited(FigMouseEvent iEvent)
mouseCursorExited
in interface FigMouseMotionListener
iEvent
- describes the eventCopyright © 2013. All Rights Reserved.