public abstract class AbstractPanInteractor extends InteractorAdapter
InteractorAdapter.startInteraction(InputEvent) method.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
finished
Whether the interactor has finished.
|
static Cursor |
PAN_CURSOR
The cursor for panning.
|
protected Cursor |
previousCursor
To store the previous cursor.
|
protected int |
xCurrent
The mouse x current position.
|
protected int |
xStart
The mouse x start position.
|
protected int |
yCurrent
The mouse y current position.
|
protected int |
yStart
The mouse y start position.
|
| Constructor and Description |
|---|
AbstractPanInteractor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
endInteraction()
Tells whether the interactor has finished.
|
void |
mouseDragged(MouseEvent e)
Invoked when a mouse button is pressed on a component and then
dragged.
|
void |
mouseExited(MouseEvent e)
Invoked when the mouse exits a component.
|
void |
mousePressed(MouseEvent e)
Invoked when a mouse button has been pressed on a component.
|
void |
mouseReleased(MouseEvent e)
Invoked when a mouse button has been released on a component.
|
keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseMoved, startInteractionpublic static final Cursor PAN_CURSOR
protected boolean finished
protected int xStart
protected int yStart
protected int xCurrent
protected int yCurrent
protected Cursor previousCursor
public boolean endInteraction()
endInteraction in interface InteractorendInteraction in class InteractorAdapterpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenermousePressed in class InteractorAdapterpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenermouseReleased in class InteractorAdapterpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenermouseExited in class InteractorAdapterpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenermouseDragged in class InteractorAdapterCopyright © 2000–2017 Apache Software Foundation. All rights reserved.