public class LayerEventMulticaster extends java.awt.AWTEventMulticaster implements LayerListener, LayerMotionListener
| Modifier | Constructor and Description |
|---|---|
protected |
LayerEventMulticaster(java.util.EventListener a,
java.util.EventListener b)
Create an event multicaster from two listeners.
|
| Modifier and Type | Method and Description |
|---|---|
static LayerListener |
add(LayerListener a,
LayerListener b)
Adds layer-listener-a with layer-listener-b and
returns the resulting multicast listener.
|
static LayerMotionListener |
add(LayerMotionListener a,
LayerMotionListener b)
Adds layer-motion-listener-a with layer-motion-listener-b and
returns the resulting multicast listener.
|
protected static java.util.EventListener |
addInternal(java.util.EventListener a,
java.util.EventListener b)
Returns the resulting multicast listener from adding listener-a
and listener-b together.
|
void |
mouseClicked(LayerEvent e)
Invoked when the mouse is clicked on a layer or figure.
|
void |
mouseDragged(LayerEvent e)
Invoked when the mouse moves while the button is still held
down.
|
void |
mouseEntered(LayerEvent e)
Invoked when the mouse enters a layer or figure.
|
void |
mouseExited(LayerEvent e)
Invoked when the mouse exits a layer or figure.
|
void |
mouseMoved(LayerEvent e)
Invoked when the mouse moves while over a layer or figure.
|
void |
mousePressed(LayerEvent e)
Invoked when the mouse is pressed on a layer or figure.
|
void |
mouseReleased(LayerEvent e)
Invoked when the mouse is released on a layer or figure.
|
static LayerListener |
remove(LayerListener l,
LayerListener oldl)
Removes the old layer-listener from layer-listener-l and
returns the resulting multicast listener.
|
static LayerMotionListener |
remove(LayerMotionListener l,
LayerMotionListener oldl)
Removes the old layer-motion-listener from layer-motion-listener-l and
returns the resulting multicast listener.
|
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, remove, removeInternal, save, saveInternal, textValueChanged, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened, windowStateChangedprotected LayerEventMulticaster(java.util.EventListener a,
java.util.EventListener b)
public void mouseDragged(LayerEvent e)
mouseDragged in interface LayerListenere - The eventpublic void mouseEntered(LayerEvent e)
mouseEntered in interface LayerMotionListenere - The eventpublic void mouseExited(LayerEvent e)
mouseExited in interface LayerMotionListenere - The eventpublic void mouseMoved(LayerEvent e)
mouseMoved in interface LayerMotionListenere - The eventpublic void mousePressed(LayerEvent e)
mousePressed in interface LayerListenere - The eventpublic void mouseReleased(LayerEvent e)
mouseReleased in interface LayerListenere - The eventpublic void mouseClicked(LayerEvent e)
mouseClicked in interface LayerListenere - The eventpublic static LayerListener add(LayerListener a, LayerListener b)
protected static java.util.EventListener addInternal(java.util.EventListener a,
java.util.EventListener b)
a - event listener-ab - event listener-bpublic static LayerMotionListener add(LayerMotionListener a, LayerMotionListener b)
public static LayerListener remove(LayerListener l, LayerListener oldl)
public static LayerMotionListener remove(LayerMotionListener l, LayerMotionListener oldl)