|
|||||||||
| Home >> All >> org >> apache >> batik >> swing >> [ gvt overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.batik.swing.gvt
Class AbstractImageZoomInteractor

java.lang.Objectorg.apache.batik.swing.gvt.InteractorAdapter
org.apache.batik.swing.gvt.AbstractImageZoomInteractor
- All Implemented Interfaces:
- java.util.EventListener, Interactor, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener
- public class AbstractImageZoomInteractor
- extends InteractorAdapter
This class represents a zoom interactor.
To use it, just redefine the InteractorAdapter.startInteraction(InputEvent) 55 method.
- Version:
- $Id: AbstractImageZoomInteractor.java,v 1.4 2004/08/18 07:15:32 vhardy Exp $
| 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(java.awt.event.MouseEvent e)
Invoked when a mouse button is pressed on a component and then dragged. |
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, mouseExited, mouseMoved, startInteraction |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
finished
protected boolean finished
- Whether the interactor has finished.
xStart
protected int xStart
- The mouse x start position.
yStart
protected int yStart
- The mouse y start position.
xCurrent
protected int xCurrent
- The mouse x current position.
yCurrent
protected int yCurrent
- The mouse y current position.
| Constructor Detail |
AbstractImageZoomInteractor
public AbstractImageZoomInteractor()
| Method Detail |
endInteraction
public boolean endInteraction()
- Tells whether the interactor has finished.
- Specified by:
endInteractionin interfaceInteractor- Overrides:
endInteractionin classInteractorAdapter
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Invoked when a mouse button has been pressed on a component.
- Specified by:
mousePressedin interfacejava.awt.event.MouseListener- Overrides:
mousePressedin classInteractorAdapter
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Invoked when a mouse button has been released on a component.
- Specified by:
mouseReleasedin interfacejava.awt.event.MouseListener- Overrides:
mouseReleasedin classInteractorAdapter
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)
- Invoked when a mouse button is pressed on a component and then
dragged. Mouse drag events will continue to be delivered to
the component where the first originated until the mouse button is
released (regardless of whether the mouse position is within the
bounds of the component).
- Specified by:
mouseDraggedin interfacejava.awt.event.MouseMotionListener- Overrides:
mouseDraggedin classInteractorAdapter
|
|||||||||
| Home >> All >> org >> apache >> batik >> swing >> [ gvt overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC