|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.swing.gvt.InteractorAdapter | +--org.apache.batik.swing.gvt.AbstractPanInteractor
This class represents a pan interactor.
To use it, just redefine the InteractorAdapter.startInteraction(InputEvent)
method.
Field Summary | |
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 Summary | |
AbstractPanInteractor()
|
Method Summary | |
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. |
Methods inherited from class org.apache.batik.swing.gvt.InteractorAdapter |
keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseMoved, startInteraction |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public 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
Constructor Detail |
public AbstractPanInteractor()
Method Detail |
public boolean endInteraction()
endInteraction
in class InteractorAdapter
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in class InteractorAdapter
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in class InteractorAdapter
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in class InteractorAdapter
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in class InteractorAdapter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |