|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.umd.cs.jazz.event.ZFilteredEventHandler.ZFilteredEventDispatcher
ZFilteredEventDispatcher is used internally to register with the filtered event sources. It applies the filter to incoming events. If the event passes the filter then it updates the current filtered mouse event variable (see getCurrentFilteredMouseEvent
) and calls the appropriate 'filtered*' template method.
Constructor Summary | |
ZFilteredEventHandler.ZFilteredEventDispatcher() |
Method Summary | |
void |
keyPressed(java.awt.event.KeyEvent e) Invoked when a key has is pressed on the key event souce. |
void |
keyReleased(java.awt.event.KeyEvent e) Invoked when a key is released on the key event souce. |
void |
keyTyped(java.awt.event.KeyEvent e) Invoked when a key is typed on the key event souce. |
void |
mouseClicked(ZMouseEvent e) Invoked when the mouse is clicked the mouse event source. |
void |
mouseDragged(ZMouseEvent e) Invoked when a mouse button is pressed on the mouse event source and then dragged. |
void |
mouseEntered(ZMouseEvent e) Invoked when the mouse enters the mouse event source. |
void |
mouseExited(ZMouseEvent e) Invoked when the mouse exits the mouse event source. |
void |
mouseMoved(ZMouseEvent e) Invoked when the mouse button is moved on the mouse event source. |
void |
mousePressed(ZMouseEvent e) Invoked when the mouse is pressed on the mouse event source. |
void |
mouseReleased(ZMouseEvent e) Invoked when the mouse is released on the mouse event source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ZFilteredEventHandler.ZFilteredEventDispatcher()
Method Detail |
public void keyPressed(java.awt.event.KeyEvent e)
filteredKeyPressed
if the current event filter accepts the event.
keyPressed
in interface java.awt.event.KeyListener
e
- the key event.public void keyReleased(java.awt.event.KeyEvent e)
filteredKeyReleased
if the current event filter accepts the event.
keyReleased
in interface java.awt.event.KeyListener
e
- the key event.public void keyTyped(java.awt.event.KeyEvent e)
filteredKeyTyped
if the current event filter accepts the event. This event occurs when a key press is followed by a key release.
keyTyped
in interface java.awt.event.KeyListener
e
- the key event.public void mouseClicked(ZMouseEvent e)
filteredMouseClicked
. After filteredMouseClicked
returns the current event is set to null.
mouseClicked
in interface ZMouseListener
e
- the mouse clicked event.public void mouseDragged(ZMouseEvent e)
filteredMouseDragged
. After filteredMouseDragged
returns the current event is set to null.
mouseDragged
in interface ZMouseMotionListener
e
- the mouse dragged event.public void mouseEntered(ZMouseEvent e)
filteredMouseEntered
. After filteredMouseEntered
returns the current event is set to null.
mouseEntered
in interface ZMouseListener
e
- the mouse entered event.public void mouseExited(ZMouseEvent e)
filteredMouseExited
. After filteredMouseExited
returns the current event is set to null.
mouseExited
in interface ZMouseListener
e
- the mouse exited event.public void mouseMoved(ZMouseEvent e)
filteredMouseMoved
. After filteredMouseMovde
returns the current event is set to null.
mouseMoved
in interface ZMouseMotionListener
e
- the mouse moved event.public void mousePressed(ZMouseEvent e)
filteredMousePressed
. After filteredMousePressed
returns the current event is set to null.
mousePressed
in interface ZMouseListener
e
- the mouse pressed event.public void mouseReleased(ZMouseEvent e)
filteredMousePressed
. After filteredMousePressed
returns the current event is set to null.
mouseReleased
in interface ZMouseListener
e
- the mouse pressed event.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |