public class AbstractZoomInteractor extends InteractorAdapter
InteractorAdapter.startInteraction(java.awt.event.InputEvent)
method.Modifier and Type | Class and Description |
---|---|
protected class |
AbstractZoomInteractor.ZoomOverlay
To paint the interactor.
|
Modifier and Type | Field and Description |
---|---|
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.
|
Constructor and Description |
---|
AbstractZoomInteractor() |
Modifier and Type | Method and Description |
---|---|
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.
|
keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseMoved, startInteraction
protected boolean finished
protected int xStart
protected int yStart
protected int xCurrent
protected int yCurrent
protected Line2D markerTop
protected Line2D markerLeft
protected Line2D markerBottom
protected Line2D markerRight
protected Overlay overlay
protected BasicStroke markerStroke
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 mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
mouseExited
in class InteractorAdapter
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
mouseDragged
in class InteractorAdapter
Copyright © 2000–2023 Apache Software Foundation. All rights reserved.