Package org.apache.batik.swing.gvt
Class JGVTComponent.Listener
java.lang.Object
org.apache.batik.swing.gvt.JGVTComponent.Listener
- All Implemented Interfaces:
KeyListener
,MouseListener
,MouseMotionListener
,MouseWheelListener
,EventListener
,GVTTreeRendererListener
- Direct Known Subclasses:
JSVGComponent.SVGListener
- Enclosing class:
JGVTComponent
protected class JGVTComponent.Listener
extends Object
implements GVTTreeRendererListener, KeyListener, MouseListener, MouseMotionListener, MouseWheelListener
To hide the listener methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Deselects an interactor, if the interaction has finished.protected void
Dispatches the event to the GVT tree.protected void
Dispatches the event to the GVT tree.protected void
Dispatches the event to the GVT tree.protected void
Dispatches the event to the GVT tree.protected void
Dispatches the event to the GVT tree.protected void
Dispatches the event to the GVT tree.protected void
Dispatches the event to the GVT tree.protected void
Dispatches the event to the GVT tree.protected void
Dispatches the event to the GVT tree.protected void
Dispatches the event to the GVT tree.protected void
Dispatches the mouse event to the GVT tree.void
Called when a rendering was cancelled.void
Called when a rendering was completed.void
Called when a rendering failed.void
Called when a rendering is in its preparing phase.void
Called when a rendering started.void
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.void
Invoked when the mouse wheel has been scrolled.protected void
Selects an interactor, given an input event.
-
Constructor Details
-
Listener
protected Listener()Creates a new Listener.
-
-
Method Details
-
gvtRenderingPrepare
Called when a rendering is in its preparing phase.- Specified by:
gvtRenderingPrepare
in interfaceGVTTreeRendererListener
-
gvtRenderingStarted
Called when a rendering started.- Specified by:
gvtRenderingStarted
in interfaceGVTTreeRendererListener
-
gvtRenderingCompleted
Called when a rendering was completed.- Specified by:
gvtRenderingCompleted
in interfaceGVTTreeRendererListener
-
gvtRenderingCancelled
Called when a rendering was cancelled.- Specified by:
gvtRenderingCancelled
in interfaceGVTTreeRendererListener
-
gvtRenderingFailed
Called when a rendering failed.- Specified by:
gvtRenderingFailed
in interfaceGVTTreeRendererListener
-
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
-
dispatchKeyTyped
Dispatches the event to the GVT tree. -
keyPressed
Invoked when a key has been pressed.- Specified by:
keyPressed
in interfaceKeyListener
-
dispatchKeyPressed
Dispatches the event to the GVT tree. -
keyReleased
Invoked when a key has been released.- Specified by:
keyReleased
in interfaceKeyListener
-
dispatchKeyReleased
Dispatches the event to the GVT tree. -
mouseClicked
Invoked when the mouse has been clicked on a component.- Specified by:
mouseClicked
in interfaceMouseListener
-
handleMouseClicked
-
dispatchMouseClicked
Dispatches the event to the GVT tree. -
mousePressed
Invoked when a mouse button has been pressed on a component.- Specified by:
mousePressed
in interfaceMouseListener
-
dispatchMousePressed
Dispatches the event to the GVT tree. -
mouseReleased
Invoked when a mouse button has been released on a component.- Specified by:
mouseReleased
in interfaceMouseListener
-
dispatchMouseReleased
Dispatches the event to the GVT tree. -
mouseEntered
Invoked when the mouse enters a component.- Specified by:
mouseEntered
in interfaceMouseListener
-
dispatchMouseEntered
Dispatches the event to the GVT tree. -
mouseExited
Invoked when the mouse exits a component.- Specified by:
mouseExited
in interfaceMouseListener
-
dispatchMouseExited
Dispatches the event to the GVT tree. -
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
-
dispatchMouseDragged
Dispatches the event to the GVT tree. -
mouseMoved
Invoked when the mouse button has been moved on a component (with no buttons no down).- Specified by:
mouseMoved
in interfaceMouseMotionListener
-
dispatchMouseMoved
Dispatches the event to the GVT tree. -
mouseWheelMoved
Invoked when the mouse wheel has been scrolled.- Specified by:
mouseWheelMoved
in interfaceMouseWheelListener
-
dispatchMouseWheelMoved
Dispatches the mouse event to the GVT tree. -
selectInteractor
Selects an interactor, given an input event. -
deselectInteractor
protected void deselectInteractor()Deselects an interactor, if the interaction has finished.
-