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.
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean(package private) long(package private) long(package private) boolean(package private) int(package private) long(package private) int(package private) int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidDeselects an interactor, if the interaction has finished.protected voidDispatches the event to the GVT tree.protected voidDispatches the event to the GVT tree.protected voidDispatches the event to the GVT tree.protected voidDispatches the event to the GVT tree.protected voidDispatches the event to the GVT tree.protected voidDispatches the event to the GVT tree.protected voidDispatches the event to the GVT tree.protected voidDispatches the event to the GVT tree.protected voidDispatches the event to the GVT tree.protected voidDispatches the event to the GVT tree.protected voidDispatches the mouse event to the GVT tree.voidCalled when a rendering was cancelled.voidCalled when a rendering was completed.voidCalled when a rendering failed.voidCalled when a rendering is in its preparing phase.voidCalled when a rendering started.voidvoidInvoked when a key has been pressed.voidInvoked when a key has been released.voidInvoked when a key has been typed.voidInvoked when the mouse has been clicked on a component.voidInvoked when a mouse button is pressed on a component and then dragged.voidInvoked when the mouse enters a component.voidInvoked when the mouse exits a component.voidInvoked when the mouse button has been moved on a component (with no buttons no down).voidInvoked when a mouse button has been pressed on a component.voidInvoked when a mouse button has been released on a component.voidInvoked when the mouse wheel has been scrolled.private voidThe actual implementation of gvtRenderingCancelled() and gvtRenderingFailed().protected voidSelects an interactor, given an input event.
-
Field Details
-
checkClick
boolean checkClick -
hadDrag
boolean hadDrag -
startX
int startX -
startY
int startY -
startTime
long startTime -
fakeClickTime
long fakeClickTime -
MAX_DISP
int MAX_DISP -
CLICK_TIME
long CLICK_TIME
-
-
Constructor Details
-
Listener
protected Listener()Creates a new Listener.
-
-
Method Details
-
gvtRenderingPrepare
Called when a rendering is in its preparing phase.- Specified by:
gvtRenderingPreparein interfaceGVTTreeRendererListener
-
gvtRenderingStarted
Called when a rendering started.- Specified by:
gvtRenderingStartedin interfaceGVTTreeRendererListener
-
gvtRenderingCompleted
Called when a rendering was completed.- Specified by:
gvtRenderingCompletedin interfaceGVTTreeRendererListener
-
gvtRenderingCancelled
Called when a rendering was cancelled.- Specified by:
gvtRenderingCancelledin interfaceGVTTreeRendererListener
-
gvtRenderingFailed
Called when a rendering failed.- Specified by:
gvtRenderingFailedin interfaceGVTTreeRendererListener
-
renderingStopped
private void renderingStopped()The actual implementation of gvtRenderingCancelled() and gvtRenderingFailed(). -
keyTyped
Invoked when a key has been typed. This event occurs when a key press is followed by a key release.- Specified by:
keyTypedin interfaceKeyListener
-
dispatchKeyTyped
Dispatches the event to the GVT tree. -
keyPressed
Invoked when a key has been pressed.- Specified by:
keyPressedin interfaceKeyListener
-
dispatchKeyPressed
Dispatches the event to the GVT tree. -
keyReleased
Invoked when a key has been released.- Specified by:
keyReleasedin interfaceKeyListener
-
dispatchKeyReleased
Dispatches the event to the GVT tree. -
mouseClicked
Invoked when the mouse has been clicked on a component.- Specified by:
mouseClickedin interfaceMouseListener
-
handleMouseClicked
-
dispatchMouseClicked
Dispatches the event to the GVT tree. -
mousePressed
Invoked when a mouse button has been pressed on a component.- Specified by:
mousePressedin interfaceMouseListener
-
dispatchMousePressed
Dispatches the event to the GVT tree. -
mouseReleased
Invoked when a mouse button has been released on a component.- Specified by:
mouseReleasedin interfaceMouseListener
-
dispatchMouseReleased
Dispatches the event to the GVT tree. -
mouseEntered
Invoked when the mouse enters a component.- Specified by:
mouseEnteredin interfaceMouseListener
-
dispatchMouseEntered
Dispatches the event to the GVT tree. -
mouseExited
Invoked when the mouse exits a component.- Specified by:
mouseExitedin 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:
mouseDraggedin 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:
mouseMovedin interfaceMouseMotionListener
-
dispatchMouseMoved
Dispatches the event to the GVT tree. -
mouseWheelMoved
Invoked when the mouse wheel has been scrolled.- Specified by:
mouseWheelMovedin 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.
-