java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener, Interactorpublic abstract class AbstractPanInteractor extends InteractorAdapter
InteractorAdapter.startInteraction(java.awt.event.InputEvent) method.| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
finished |
Whether the interactor has finished.
|
static java.awt.Cursor |
PAN_CURSOR |
The cursor for panning.
|
protected java.awt.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 | Description |
|---|---|
AbstractPanInteractor() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
endInteraction() |
Tells whether the interactor has finished.
|
void |
mouseDragged(java.awt.event.MouseEvent e) |
Invoked when a mouse button is pressed on a component and then
dragged.
|
void |
mouseExited(java.awt.event.MouseEvent e) |
Invoked when the mouse exits a component.
|
void |
mousePressed(java.awt.event.MouseEvent e) |
Invoked when a mouse button has been pressed on a component.
|
void |
mouseReleased(java.awt.event.MouseEvent e) |
Invoked when a mouse button has been released on a component.
|
keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseMoved, startInteractionpublic static final java.awt.Cursor PAN_CURSOR
protected boolean finished
protected int xStart
protected int yStart
protected int xCurrent
protected int yCurrent
protected java.awt.Cursor previousCursor
public boolean endInteraction()
endInteraction in interface InteractorendInteraction in class InteractorAdapterpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenermousePressed in class InteractorAdapterpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenermouseReleased in class InteractorAdapterpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenermouseExited in class InteractorAdapterpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenermouseDragged in class InteractorAdapterCopyright ? 2018 Apache Software Foundation. All Rights Reserved.