|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.gvt.event.AbstractAWTEventDispatcher
org.apache.batik.gvt.event.AWTEventDispatcher
public class AWTEventDispatcher
A concrete version of AWTEventDispatcher.
This class is used for JDKs >= 1.4, which have MouseWheelEvent
support. For JDKs < 1.4, the file
sources-1.3/org/apache/batik/gvt/event/AWTEventDispatcher defines a
version of this class that does not support MouseWheelEvents.
| Field Summary |
|---|
| Fields inherited from class org.apache.batik.gvt.event.AbstractAWTEventDispatcher |
|---|
baseTransform, currentKeyEventTarget, eventDispatchEnabled, eventQueue, eventQueueMaxSize, glisteners, lastHit, root |
| Constructor Summary | |
|---|---|
AWTEventDispatcher()
|
|
| Method Summary | |
|---|---|
void |
dispatchEvent(EventObject evt)
Dispatches the specified AWT event. |
protected void |
dispatchKeyEvent(KeyEvent evt)
Dispatches the specified AWT key event. |
protected void |
dispatchMouseWheelEvent(MouseWheelEvent evt)
Dispatches the specified AWT mouse wheel event. |
protected int |
getButton(MouseEvent evt)
Returns the button whose state changed for the given event. |
protected int |
getModifiers(InputEvent evt)
Returns the modifiers mask for this event. |
protected static boolean |
isMetaDown(int modifiers)
Returns whether the meta key is down according to the given modifiers bitfield. |
void |
mouseWheelMoved(MouseWheelEvent evt)
Dispatches the specified AWT mouse wheel event down to the GVT tree. |
protected void |
processMouseWheelEvent(GraphicsNodeMouseWheelEvent evt)
Processes the specified event by firing the 'global' listeners attached to this event dispatcher. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AWTEventDispatcher()
| Method Detail |
|---|
public void mouseWheelMoved(MouseWheelEvent evt)
mouseWheelMoved in interface MouseWheelListenerevt - the mouse event to propagatepublic void dispatchEvent(EventObject evt)
dispatchEvent in interface EventDispatcherdispatchEvent in class AbstractAWTEventDispatcherevt - the event to dispatchprotected void dispatchMouseWheelEvent(MouseWheelEvent evt)
evt - the mouse wheel event to dispatchprotected void processMouseWheelEvent(GraphicsNodeMouseWheelEvent evt)
evt - the event to processprotected void dispatchKeyEvent(KeyEvent evt)
dispatchKeyEvent in class AbstractAWTEventDispatcherevt - the key event to dispatchprotected int getModifiers(InputEvent evt)
InputEvent.getModifiersEx() on evt.
getModifiers in class AbstractAWTEventDispatcherprotected int getButton(MouseEvent evt)
MouseEvent.getButton().
getButton in class AbstractAWTEventDispatcherprotected static boolean isMetaDown(int modifiers)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||