Package org.apache.batik.swing.gvt
Class InteractorAdapter
java.lang.Object
org.apache.batik.swing.gvt.InteractorAdapter
- All Implemented Interfaces:
KeyListener
,MouseListener
,MouseMotionListener
,EventListener
,Interactor
- Direct Known Subclasses:
AbstractImageZoomInteractor
,AbstractPanInteractor
,AbstractRotateInteractor
,AbstractZoomInteractor
This class represents an interactor which never interacts.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Tells whether the interaction has finished.void
Invoked when a key has been pressed.void
Invoked when a key has been released.void
Invoked when a key has been typed.void
Invoked when the mouse has been clicked on a component.void
Invoked when a mouse button is pressed on a component and then dragged.void
Invoked when the mouse enters a component.void
Invoked when the mouse exits a component.void
Invoked when the mouse button has been moved on a component (with no buttons no down).void
Invoked when a mouse button has been pressed on a component.void
Invoked when a mouse button has been released on a component.boolean
Tells whether the given event will start the interactor.
-
Constructor Details
-
InteractorAdapter
public InteractorAdapter()
-
-
Method Details
-
startInteraction
Tells whether the given event will start the interactor.- Specified by:
startInteraction
in interfaceInteractor
-
endInteraction
public boolean endInteraction()Tells whether the interaction has finished.- Specified by:
endInteraction
in interfaceInteractor
-
keyTyped
Invoked when a key has been typed. This event occurs when a key press is followed by a key release.- Specified by:
keyTyped
in interfaceKeyListener
-
keyPressed
Invoked when a key has been pressed.- Specified by:
keyPressed
in interfaceKeyListener
-
keyReleased
Invoked when a key has been released.- Specified by:
keyReleased
in interfaceKeyListener
-
mouseClicked
Invoked when the mouse has been clicked on a component.- Specified by:
mouseClicked
in interfaceMouseListener
-
mousePressed
Invoked when a mouse button has been pressed on a component.- Specified by:
mousePressed
in interfaceMouseListener
-
mouseReleased
Invoked when a mouse button has been released on a component.- Specified by:
mouseReleased
in interfaceMouseListener
-
mouseEntered
Invoked when the mouse enters a component.- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
Invoked when the mouse exits a component.- Specified by:
mouseExited
in interfaceMouseListener
-
mouseDragged
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:
mouseDragged
in interfaceMouseMotionListener
-
mouseMoved
Invoked when the mouse button has been moved on a component (with no buttons no down).- Specified by:
mouseMoved
in interfaceMouseMotionListener
-