org.apache.batik.bridge.svg12
protected static class SVG12BridgeEventSupport.Listener extends BridgeEventSupport.Listener implements GraphicsNodeMouseWheelListener
Field Summary | |
---|---|
protected SVG12BridgeContext | ctx12
The BridgeContext downcasted to an SVG12BridgeContext. |
protected static String[][] | IDENTIFIER_KEY_CODES
Array to hold the map of Java keycodes to DOM 3 key strings. |
Constructor Summary | |
---|---|
Listener(BridgeContext ctx, UserAgent u) |
Method Summary | |
---|---|
protected void | dispatchKeyboardEvent(String eventType, GraphicsNodeKeyEvent evt)
Dispatch a DOM 3 Keyboard event. |
protected void | dispatchMouseEvent(String eventType, Element targetElement, Element relatedElement, Point clientXY, GraphicsNodeMouseEvent evt, boolean cancelable)
Dispatches a DOM MouseEvent according to the specified
parameters.
|
protected void | dispatchMouseEvent(String eventType, Element targetElement, Element relatedElement, Point clientXY, GraphicsNodeMouseEvent evt, boolean cancelable, int bubbleLimit)
Dispatches a DOM MouseEvent according to the specified
parameters.
|
protected void | dispatchTextEvent(GraphicsNodeKeyEvent evt)
Dispatch a DOM 3 Text event. |
void | keyPressed(GraphicsNodeKeyEvent evt)
Invoked when a key has been pressed. |
void | keyReleased(GraphicsNodeKeyEvent evt)
Invoked when a key has been released. |
void | keyTyped(GraphicsNodeKeyEvent evt)
Invoked when a key has been typed. |
protected String | mapKeyCodeToIdentifier(int keyCode)
Convert a Java key code to a DOM 3 key string. |
protected int | mapKeyLocation(int location)
Maps Java KeyEvent location numbers to DOM 3 location numbers. |
void | mouseEntered(GraphicsNodeMouseEvent evt) |
void | mouseExited(GraphicsNodeMouseEvent evt) |
void | mouseMoved(GraphicsNodeMouseEvent evt) |
void | mouseWheelMoved(GraphicsNodeMouseWheelEvent evt) |
protected static void | putIdentifierKeyCode(String keyIdentifier, int keyCode)
Put a key code to key identifier mapping into the
IDENTIFIER_KEY_CODES table. |
Parameters: eventType the event type targetElement the target of the event relatedElement the related target if any clientXY the mouse coordinates in the client space evt the GVT GraphicsNodeMouseEvent cancelable true means the event is cancelable
Parameters: eventType the event type targetElement the target of the event relatedElement the related target if any clientXY the mouse coordinates in the client space evt the GVT GraphicsNodeMouseEvent cancelable true means the event is cancelable bubbleLimit the limit to the number of nodes the event will bubble to
Parameters: evt the graphics node key event
Parameters: evt the graphics node key event
Parameters: evt the graphics node key event