org.apache.batik.swing.gvt

Class AbstractZoomInteractor

public class AbstractZoomInteractor extends InteractorAdapter

This class represents a zoom interactor. To use it, just redefine the startInteraction method.
Nested Class Summary
protected classAbstractZoomInteractor.ZoomOverlay
To paint the interactor.
Field Summary
protected booleanfinished
Whether the interactor has finished.
protected Line2DmarkerBottom
The zoom marker bottom line.
protected Line2DmarkerLeft
The zoom marker left line.
protected Line2DmarkerRight
The zoom marker right line.
protected BasicStrokemarkerStroke
Used to draw marker
protected Line2DmarkerTop
The zoom marker top line.
protected Overlayoverlay
The overlay.
protected intxCurrent
The mouse x current position.
protected intxStart
The mouse x start position.
protected intyCurrent
The mouse y current position.
protected intyStart
The mouse y start position.
Method Summary
booleanendInteraction()
Tells whether the interactor has finished.
voidmouseDragged(MouseEvent e)
Invoked when a mouse button is pressed on a component and then dragged.
voidmouseExited(MouseEvent e)
Invoked when the mouse exits a component.
voidmousePressed(MouseEvent e)
Invoked when a mouse button has been pressed on a component.
voidmouseReleased(MouseEvent e)
Invoked when a mouse button has been released on a component.

Field Detail

finished

protected boolean finished
Whether the interactor has finished.

markerBottom

protected Line2D markerBottom
The zoom marker bottom line.

markerLeft

protected Line2D markerLeft
The zoom marker left line.

markerRight

protected Line2D markerRight
The zoom marker right line.

markerStroke

protected BasicStroke markerStroke
Used to draw marker

markerTop

protected Line2D markerTop
The zoom marker top line.

overlay

protected Overlay overlay
The overlay.

xCurrent

protected int xCurrent
The mouse x current position.

xStart

protected int xStart
The mouse x start position.

yCurrent

protected int yCurrent
The mouse y current position.

yStart

protected int yStart
The mouse y start position.

Method Detail

endInteraction

public boolean endInteraction()
Tells whether the interactor has finished.

mouseDragged

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).

mouseExited

public void mouseExited(MouseEvent e)
Invoked when the mouse exits a component.

mousePressed

public void mousePressed(MouseEvent e)
Invoked when a mouse button has been pressed on a component.

mouseReleased

public void mouseReleased(MouseEvent e)
Invoked when a mouse button has been released on a component.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.