|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.AWTEventMulticaster
jpicedt.graphic.event.PEEventMulticaster
public class PEEventMulticaster
An enhanced version of java.awt.AWTEventMulticaster
that supports chaining PEMouseInputListener's.
| Field Summary |
|---|
| Fields inherited from class java.awt.AWTEventMulticaster |
|---|
a, b |
| Constructor Summary | |
|---|---|
protected |
PEEventMulticaster(EventListener a,
EventListener b)
Creates a PEEventMulticaster instance which chains
listener-a with listener-b |
| Method Summary | |
|---|---|
static PEMouseInputListener |
add(PEMouseInputListener a,
PEMouseInputListener b)
Adds PEMouseInputListener “a” with
PEMouseInputListener “b” and returns the
resulting multicast listener. |
protected static EventListener |
addInternal(EventListener a,
EventListener b)
Returns the multicast listener resulting from the addition of listener-a and listener-b. |
void |
mouseClicked(PEMouseEvent e)
Handles a mouseClicked event by invoking the mouseClicked methods on listener-a and listener-b. |
void |
mouseDragged(PEMouseEvent e)
Handles the mouseDragged event by invoking the mouseDragged methods on listener-a and listener-b. |
void |
mouseEntered(PEMouseEvent e)
Handles the mouseEntered event by invoking the mouseEntered methods on listener-a and listener-b. |
void |
mouseExited(PEMouseEvent e)
Handles the mouseExited event by invoking the mouseExited methods on listener-a and listener-b. |
void |
mouseMoved(PEMouseEvent e)
Handles the mouseMoved event by invoking the mouseMoved methods on listener-a and listener-b. |
void |
mousePressed(PEMouseEvent e)
Handles the mousePressed event by invoking the mousePressed methods on listener-a and listener-b. |
void |
mouseReleased(PEMouseEvent e)
Handles the mouseReleased event by invoking the mouseReleased methods on listener-a and listener-b. |
protected EventListener |
remove(EventListener oldl)
Removes a listener from this multicaster and returns the resulting multicast listener. |
static PEMouseInputListener |
remove(PEMouseInputListener l,
PEMouseInputListener oldl)
Removes the old PEMouseInputListener from PEMouseInputListener-l and returns the resulting multicast listener. |
protected static EventListener |
removeInternal(EventListener l,
EventListener oldl)
Returns the multicast listener obtained after removing the old listener from listener-l. |
String |
toString()
|
| Methods inherited from class java.awt.AWTEventMulticaster |
|---|
actionPerformed, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, adjustmentValueChanged, ancestorMoved, ancestorResized, caretPositionChanged, componentAdded, componentHidden, componentMoved, componentRemoved, componentResized, componentShown, focusGained, focusLost, getListeners, hierarchyChanged, inputMethodTextChanged, itemStateChanged, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, remove, remove, remove, remove, remove, remove, remove, remove, remove, remove, remove, remove, remove, remove, remove, remove, remove, save, saveInternal, textValueChanged, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened, windowStateChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected PEEventMulticaster(EventListener a,
EventListener b)
PEEventMulticaster instance which chains
listener-a with listener-b
| Method Detail |
|---|
public static PEMouseInputListener add(PEMouseInputListener a,
PEMouseInputListener b)
PEMouseInputListener “a” with
PEMouseInputListener “b” and returns the
resulting multicast listener.
a - PEMouseInputListener “a”b - PEMouseInputListener “b”
public static PEMouseInputListener remove(PEMouseInputListener l,
PEMouseInputListener oldl)
l - PEMouseInputListener-loldl - the PEMouseInputListener being removedprotected EventListener remove(EventListener oldl)
remove in class AWTEventMulticasteroldl - the listener to be removed
protected static EventListener addInternal(EventListener a,
EventListener b)
a - event listener-ab - event listener-b
protected static EventListener removeInternal(EventListener l,
EventListener oldl)
l - the listener being removed fromoldl - the listener being removedpublic void mouseClicked(PEMouseEvent e)
mouseClicked in interface PEMouseInputListenere - the mouse eventpublic void mousePressed(PEMouseEvent e)
mousePressed in interface PEMouseInputListenere - the mouse eventpublic void mouseReleased(PEMouseEvent e)
mouseReleased in interface PEMouseInputListenere - the mouse eventpublic void mouseEntered(PEMouseEvent e)
mouseEntered in interface PEMouseInputListenere - the mouse eventpublic void mouseExited(PEMouseEvent e)
mouseExited in interface PEMouseInputListenere - the mouse eventpublic void mouseDragged(PEMouseEvent e)
mouseDragged in interface PEMouseInputListenere - the mouse eventpublic void mouseMoved(PEMouseEvent e)
mouseMoved in interface PEMouseInputListenere - the mouse eventpublic String toString()
toString in class Object
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||