Package org.apache.batik.swing.gvt
Class JGVTComponent.Listener
- java.lang.Object
-
- org.apache.batik.swing.gvt.JGVTComponent.Listener
-
- All Implemented Interfaces:
java.awt.event.KeyListener,java.awt.event.MouseListener,java.awt.event.MouseMotionListener,java.awt.event.MouseWheelListener,java.util.EventListener,GVTTreeRendererListener
- Direct Known Subclasses:
JSVGComponent.SVGListener
- Enclosing class:
- JGVTComponent
protected class JGVTComponent.Listener extends java.lang.Object implements GVTTreeRendererListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener
To hide the listener methods.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) booleancheckClick(package private) longCLICK_TIME(package private) longfakeClickTime(package private) booleanhadDrag(package private) intMAX_DISP(package private) longstartTime(package private) intstartX(package private) intstartY
-
Constructor Summary
Constructors Modifier Constructor Description protectedListener()Creates a new Listener.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddeselectInteractor()Deselects an interactor, if the interaction has finished.protected voiddispatchKeyPressed(java.awt.event.KeyEvent e)Dispatches the event to the GVT tree.protected voiddispatchKeyReleased(java.awt.event.KeyEvent e)Dispatches the event to the GVT tree.protected voiddispatchKeyTyped(java.awt.event.KeyEvent e)Dispatches the event to the GVT tree.protected voiddispatchMouseClicked(java.awt.event.MouseEvent e)Dispatches the event to the GVT tree.protected voiddispatchMouseDragged(java.awt.event.MouseEvent e)Dispatches the event to the GVT tree.protected voiddispatchMouseEntered(java.awt.event.MouseEvent e)Dispatches the event to the GVT tree.protected voiddispatchMouseExited(java.awt.event.MouseEvent e)Dispatches the event to the GVT tree.protected voiddispatchMouseMoved(java.awt.event.MouseEvent e)Dispatches the event to the GVT tree.protected voiddispatchMousePressed(java.awt.event.MouseEvent e)Dispatches the event to the GVT tree.protected voiddispatchMouseReleased(java.awt.event.MouseEvent e)Dispatches the event to the GVT tree.protected voiddispatchMouseWheelMoved(java.awt.event.MouseWheelEvent e)Dispatches the mouse event to the GVT tree.voidgvtRenderingCancelled(GVTTreeRendererEvent e)Called when a rendering was cancelled.voidgvtRenderingCompleted(GVTTreeRendererEvent e)Called when a rendering was completed.voidgvtRenderingFailed(GVTTreeRendererEvent e)Called when a rendering failed.voidgvtRenderingPrepare(GVTTreeRendererEvent e)Called when a rendering is in its preparing phase.voidgvtRenderingStarted(GVTTreeRendererEvent e)Called when a rendering started.voidhandleMouseClicked(java.awt.event.MouseEvent e)voidkeyPressed(java.awt.event.KeyEvent e)Invoked when a key has been pressed.voidkeyReleased(java.awt.event.KeyEvent e)Invoked when a key has been released.voidkeyTyped(java.awt.event.KeyEvent e)Invoked when a key has been typed.voidmouseClicked(java.awt.event.MouseEvent e)Invoked when the mouse has been clicked on a component.voidmouseDragged(java.awt.event.MouseEvent e)Invoked when a mouse button is pressed on a component and then dragged.voidmouseEntered(java.awt.event.MouseEvent e)Invoked when the mouse enters a component.voidmouseExited(java.awt.event.MouseEvent e)Invoked when the mouse exits a component.voidmouseMoved(java.awt.event.MouseEvent e)Invoked when the mouse button has been moved on a component (with no buttons no down).voidmousePressed(java.awt.event.MouseEvent e)Invoked when a mouse button has been pressed on a component.voidmouseReleased(java.awt.event.MouseEvent e)Invoked when a mouse button has been released on a component.voidmouseWheelMoved(java.awt.event.MouseWheelEvent e)Invoked when the mouse wheel has been scrolled.private voidrenderingStopped()The actual implementation of gvtRenderingCancelled() and gvtRenderingFailed().protected voidselectInteractor(java.awt.event.InputEvent ie)Selects an interactor, given an input event.
-
-
-
Method Detail
-
gvtRenderingPrepare
public void gvtRenderingPrepare(GVTTreeRendererEvent e)
Called when a rendering is in its preparing phase.- Specified by:
gvtRenderingPreparein interfaceGVTTreeRendererListener
-
gvtRenderingStarted
public void gvtRenderingStarted(GVTTreeRendererEvent e)
Called when a rendering started.- Specified by:
gvtRenderingStartedin interfaceGVTTreeRendererListener
-
gvtRenderingCompleted
public void gvtRenderingCompleted(GVTTreeRendererEvent e)
Called when a rendering was completed.- Specified by:
gvtRenderingCompletedin interfaceGVTTreeRendererListener
-
gvtRenderingCancelled
public void gvtRenderingCancelled(GVTTreeRendererEvent e)
Called when a rendering was cancelled.- Specified by:
gvtRenderingCancelledin interfaceGVTTreeRendererListener
-
gvtRenderingFailed
public void gvtRenderingFailed(GVTTreeRendererEvent e)
Called when a rendering failed.- Specified by:
gvtRenderingFailedin interfaceGVTTreeRendererListener
-
renderingStopped
private void renderingStopped()
The actual implementation of gvtRenderingCancelled() and gvtRenderingFailed().
-
keyTyped
public void keyTyped(java.awt.event.KeyEvent e)
Invoked when a key has been typed. This event occurs when a key press is followed by a key release.- Specified by:
keyTypedin interfacejava.awt.event.KeyListener
-
dispatchKeyTyped
protected void dispatchKeyTyped(java.awt.event.KeyEvent e)
Dispatches the event to the GVT tree.
-
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
Invoked when a key has been pressed.- Specified by:
keyPressedin interfacejava.awt.event.KeyListener
-
dispatchKeyPressed
protected void dispatchKeyPressed(java.awt.event.KeyEvent e)
Dispatches the event to the GVT tree.
-
keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
Invoked when a key has been released.- Specified by:
keyReleasedin interfacejava.awt.event.KeyListener
-
dispatchKeyReleased
protected void dispatchKeyReleased(java.awt.event.KeyEvent e)
Dispatches the event to the GVT tree.
-
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
Invoked when the mouse has been clicked on a component.- Specified by:
mouseClickedin interfacejava.awt.event.MouseListener
-
handleMouseClicked
public void handleMouseClicked(java.awt.event.MouseEvent e)
-
dispatchMouseClicked
protected void dispatchMouseClicked(java.awt.event.MouseEvent e)
Dispatches the event to the GVT tree.
-
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button has been pressed on a component.- Specified by:
mousePressedin interfacejava.awt.event.MouseListener
-
dispatchMousePressed
protected void dispatchMousePressed(java.awt.event.MouseEvent e)
Dispatches the event to the GVT tree.
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on a component.- Specified by:
mouseReleasedin interfacejava.awt.event.MouseListener
-
dispatchMouseReleased
protected void dispatchMouseReleased(java.awt.event.MouseEvent e)
Dispatches the event to the GVT tree.
-
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
Invoked when the mouse enters a component.- Specified by:
mouseEnteredin interfacejava.awt.event.MouseListener
-
dispatchMouseEntered
protected void dispatchMouseEntered(java.awt.event.MouseEvent e)
Dispatches the event to the GVT tree.
-
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse exits a component.- Specified by:
mouseExitedin interfacejava.awt.event.MouseListener
-
dispatchMouseExited
protected void dispatchMouseExited(java.awt.event.MouseEvent e)
Dispatches the event to the GVT tree.
-
mouseDragged
public void mouseDragged(java.awt.event.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).- Specified by:
mouseDraggedin interfacejava.awt.event.MouseMotionListener
-
dispatchMouseDragged
protected void dispatchMouseDragged(java.awt.event.MouseEvent e)
Dispatches the event to the GVT tree.
-
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent e)
Invoked when the mouse button has been moved on a component (with no buttons no down).- Specified by:
mouseMovedin interfacejava.awt.event.MouseMotionListener
-
dispatchMouseMoved
protected void dispatchMouseMoved(java.awt.event.MouseEvent e)
Dispatches the event to the GVT tree.
-
mouseWheelMoved
public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
Invoked when the mouse wheel has been scrolled.- Specified by:
mouseWheelMovedin interfacejava.awt.event.MouseWheelListener
-
dispatchMouseWheelMoved
protected void dispatchMouseWheelMoved(java.awt.event.MouseWheelEvent e)
Dispatches the mouse event to the GVT tree.
-
selectInteractor
protected void selectInteractor(java.awt.event.InputEvent ie)
Selects an interactor, given an input event.
-
deselectInteractor
protected void deselectInteractor()
Deselects an interactor, if the interaction has finished.
-
-