public class PEEventMulticaster extends java.awt.AWTEventMulticaster implements PEMouseInputListener
java.awt.AWTEventMulticaster
that supports chaining PEMouseInputListener's
.Modifier | Constructor and Description |
---|---|
protected |
PEEventMulticaster(java.util.EventListener a,
java.util.EventListener b)
Creates a PEEventMulticaster instance which chains listener-a with listener-b
|
Modifier and Type | Method and Description |
---|---|
static PEMouseInputListener |
add(PEMouseInputListener a,
PEMouseInputListener b)
Adds PEMouseInputListener-a with PEMouseInputListener-b and
returns the resulting multicast listener.
|
protected static java.util.EventListener |
addInternal(java.util.EventListener a,
java.util.EventListener b)
Returns the multicast listener resulting from the addition of listener-a
and listener-b.
If listener-a is null, it returns listener-b; If listener-b is null, it returns listener-a If neither are null, then it creates and returns a new PEEventMulticaster instance which chains a with 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 java.util.EventListener |
remove(java.util.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 java.util.EventListener |
removeInternal(java.util.EventListener l,
java.util.EventListener oldl)
Returns the multicast listener obtained after removing the
old listener from listener-l.
If listener-l equals the old listener OR listener-l is null, returns null. Else if listener-l is an instance of AWTEventMulticaster, then removes the old listener from it. Else, returns listener l. |
java.lang.String |
toString() |
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
protected PEEventMulticaster(java.util.EventListener a, java.util.EventListener b)
public static PEMouseInputListener add(PEMouseInputListener a, PEMouseInputListener b)
a
- PEMouseInputListener-ab
- PEMouseInputListener-bpublic static PEMouseInputListener remove(PEMouseInputListener l, PEMouseInputListener oldl)
l
- PEMouseInputListener-loldl
- the PEMouseInputListener being removedprotected java.util.EventListener remove(java.util.EventListener oldl)
remove
in class java.awt.AWTEventMulticaster
oldl
- the listener to be removedprotected static java.util.EventListener addInternal(java.util.EventListener a, java.util.EventListener b)
a
- event listener-ab
- event listener-bprotected static java.util.EventListener removeInternal(java.util.EventListener l, java.util.EventListener oldl)
l
- the listener being removed fromoldl
- the listener being removedpublic void mouseClicked(PEMouseEvent e)
mouseClicked
in interface PEMouseInputListener
e
- the mouse eventpublic void mousePressed(PEMouseEvent e)
mousePressed
in interface PEMouseInputListener
e
- the mouse eventpublic void mouseReleased(PEMouseEvent e)
mouseReleased
in interface PEMouseInputListener
e
- the mouse eventpublic void mouseEntered(PEMouseEvent e)
mouseEntered
in interface PEMouseInputListener
e
- the mouse eventpublic void mouseExited(PEMouseEvent e)
mouseExited
in interface PEMouseInputListener
e
- the mouse eventpublic void mouseDragged(PEMouseEvent e)
mouseDragged
in interface PEMouseInputListener
e
- the mouse eventpublic void mouseMoved(PEMouseEvent e)
mouseMoved
in interface PEMouseInputListener
e
- the mouse eventpublic java.lang.String toString()
toString
in class java.lang.Object
Submit a bug : syd@jpicedt.org