org.apache.batik.swing.gvt
Class AbstractZoomInteractor
public
class
AbstractZoomInteractor
extends InteractorAdapter
This class represents a zoom interactor.
To use it, just redefine the {@link
InteractorAdapter#startInteraction(InputEvent)} method.
Field Summary |
protected boolean | finished
Whether the interactor has finished. |
protected Line2D | markerBottom
The zoom marker bottom line. |
protected Line2D | markerLeft
The zoom marker left line. |
protected Line2D | markerRight
The zoom marker right line. |
protected BasicStroke | markerStroke
Used to draw marker |
protected Line2D | markerTop
The zoom marker top line. |
protected Overlay | overlay
The overlay. |
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. |
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 | 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. |
protected boolean finished
Whether the interactor has finished.
protected Line2D markerBottom
The zoom marker bottom line.
protected Line2D markerLeft
The zoom marker left line.
protected Line2D markerRight
The zoom marker right line.
protected BasicStroke markerStroke
Used to draw marker
protected Line2D markerTop
The zoom marker top line.
The overlay.
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.
public boolean endInteraction()
Tells whether the interactor has finished.
public void mouseDragged(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).
public void mouseExited(MouseEvent e)
Invoked when the mouse exits a component.
public void mousePressed(MouseEvent e)
Invoked when a mouse button has been pressed on a component.
public void mouseReleased(MouseEvent e)
Invoked when a mouse button has been released on a component.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.