|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.swing.gvt.InteractorAdapter
org.apache.batik.swing.gvt.AbstractImageZoomInteractor
public class AbstractImageZoomInteractor
This class represents a zoom interactor.
To use it, just redefine the InteractorAdapter.startInteraction(InputEvent)
method.
Field Summary | |
---|---|
protected boolean |
finished
Whether the interactor has finished. |
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 | |
---|---|
AbstractImageZoomInteractor()
|
Method Summary | |
---|---|
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 |
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. |
Methods inherited from class org.apache.batik.swing.gvt.InteractorAdapter |
---|
keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseMoved, startInteraction |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean finished
protected int xStart
protected int yStart
protected int xCurrent
protected int yCurrent
Constructor Detail |
---|
public AbstractImageZoomInteractor()
Method Detail |
---|
public boolean endInteraction()
endInteraction
in interface Interactor
endInteraction
in class InteractorAdapter
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
mousePressed
in class InteractorAdapter
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
mouseReleased
in class InteractorAdapter
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
mouseDragged
in class InteractorAdapter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |