de.uni_paderborn.fujaba.fsa.listener
Class AscendDescendMouseHandler

java.lang.Object
  extended byde.uni_paderborn.fujaba.fsa.listener.AscendDescendMouseHandler
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.MouseInputListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener
Direct Known Subclasses:
AscendDescendMouseHandler.ADHandler

public class AscendDescendMouseHandler
extends java.lang.Object
implements javax.swing.event.MouseInputListener

No comment provided by developer, please add a comment to improve documentation.

Version:
$Revision: 1.13 $
Author:
$Author: lowende $

Nested Class Summary
private static class AscendDescendMouseHandler.ADHandler
          No comment provided by developer, please add a comment to improve documentation.
static class AscendDescendMouseHandler.ADMouseEvent
          No comment provided by developer, please add a comment to improve documentation.
static interface AscendDescendMouseHandler.Ascend
          No comment provided by developer, please add a comment to improve documentation.
static class AscendDescendMouseHandler.AscendConsumer
          No comment provided by developer, please add a comment to improve documentation.
static class AscendDescendMouseHandler.Consumer
          No comment provided by developer, please add a comment to improve documentation.
static interface AscendDescendMouseHandler.Descend
          No comment provided by developer, please add a comment to improve documentation.
static class AscendDescendMouseHandler.DescendConsumer
          No comment provided by developer, please add a comment to improve documentation.
 
Field Summary
private  boolean active
          No comment provided by developer, please add a comment to improve documentation.
private static AscendDescendMouseHandler.ADHandler adHandler
          No comment provided by developer, please add a comment to improve documentation.
private static AscendDescendMouseHandler.AscendConsumer ascendConsumer
          No comment provided by developer, please add a comment to improve documentation.
private  java.util.EventListener ascendListener
          No comment provided by developer, please add a comment to improve documentation.
private static AscendDescendMouseHandler.Consumer consumer
          No comment provided by developer, please add a comment to improve documentation.
private static AscendDescendMouseHandler.DescendConsumer descendConsumer
          No comment provided by developer, please add a comment to improve documentation.
private  java.util.EventListener descendListener
          No comment provided by developer, please add a comment to improve documentation.
private  java.util.EventListener listener
          No comment provided by developer, please add a comment to improve documentation.
private  java.lang.ref.WeakReference target
          No comment provided by developer, please add a comment to improve documentation.
 
Constructor Summary
(package private) AscendDescendMouseHandler(java.awt.Component target)
          Constructor for class AscendDescendMouseHandler
 
Method Summary
static void addMouseInputListener(java.awt.Component component, javax.swing.event.MouseInputListener listener)
          Access method for an one to n association.
static void addMouseListener(java.awt.Component component, java.awt.event.MouseListener listener)
          Access method for an one to n association.
 void addMouseListener(java.awt.event.MouseListener l)
          Adds the specified mouse motion listener to receive mouse motion events from this component.
static void addMouseMotionListener(java.awt.Component component, java.awt.event.MouseMotionListener listener)
          Access method for an one to n association.
 void addMouseMotionListener(java.awt.event.MouseMotionListener l)
          Adds the specified mouse motion listener to receive mouse motion events from this component.
static void claimMouseListeners(java.awt.Component component)
          No comment provided by developer, please add a comment to improve documentation.
static void claimMouseMotionListeners(java.awt.Component component)
          No comment provided by developer, please add a comment to improve documentation.
private static AscendDescendMouseHandler.ADMouseEvent cloneEvent(java.awt.event.MouseEvent e, java.awt.Component source, java.awt.Component realSource, int xOff, int yOff)
          No comment provided by developer, please add a comment to improve documentation.
private static boolean dispatchEvent(java.awt.event.MouseEvent e, java.awt.Component comp, java.awt.Component realSource, int xOff, int yOff, java.util.Iterator listeners, boolean ascend)
          No comment provided by developer, please add a comment to improve documentation.
static void dispatchEvent(java.awt.event.MouseEvent e, java.awt.event.MouseListener sourceListener)
          No comment provided by developer, please add a comment to improve documentation.
static void dispatchEvent(java.awt.event.MouseEvent e, java.awt.event.MouseMotionListener sourceListener)
          No comment provided by developer, please add a comment to improve documentation.
private static void dispatchEventImpl(java.awt.event.MouseEvent e, java.util.EventListener sourceListener)
          No comment provided by developer, please add a comment to improve documentation.
private static void fireEvent(java.awt.event.MouseEvent e, java.util.EventListener listener)
          No comment provided by developer, please add a comment to improve documentation.
protected static AscendDescendMouseHandler.ADHandler getADHandler()
          Get the aDHandler attribute of the AscendDescendMouseHandler class
private static void getADInfo(java.awt.event.MouseEvent e, java.util.LinkedList ascend, java.util.LinkedList descend)
          Get the aDInfo attribute of the AscendDescendMouseHandler class
static AscendDescendMouseHandler.AscendConsumer getAscendConsumer()
          Get the ascendConsumer attribute of the AscendDescendMouseHandler class
 java.util.EventListener getAscendListener()
          Get the ascendListener attribute of the AscendDescendMouseHandler object
static AscendDescendMouseHandler.Consumer getConsumer()
          Get the consumer attribute of the AscendDescendMouseHandler class
static AscendDescendMouseHandler.DescendConsumer getDescendConsumer()
          Get the descendConsumer attribute of the AscendDescendMouseHandler class
 java.util.EventListener getDescendListener()
          Get the descendListener attribute of the AscendDescendMouseHandler object
private static AscendDescendMouseHandler getHandler(java.util.EventListener[] listeners)
          Get the handler attribute of the AscendDescendMouseHandler class
static boolean isADMouseEvent(java.awt.event.MouseEvent evt)
          Get the aDMouseEvent attribute of the AscendDescendMouseHandler class
static boolean isAscendMouseEvent(java.awt.event.MouseEvent evt)
          Get the ascendMouseEvent attribute of the AscendDescendMouseHandler class
static boolean isDescendMouseEvent(java.awt.event.MouseEvent evt)
          Get the descendMouseEvent attribute of the AscendDescendMouseHandler class
 void mouseClicked(java.awt.event.MouseEvent e)
          No comment provided by developer, please add a comment to improve documentation.
 void mouseDragged(java.awt.event.MouseEvent e)
          No comment provided by developer, please add a comment to improve documentation.
 void mouseEntered(java.awt.event.MouseEvent e)
          No comment provided by developer, please add a comment to improve documentation.
 void mouseExited(java.awt.event.MouseEvent e)
          No comment provided by developer, please add a comment to improve documentation.
 void mouseMoved(java.awt.event.MouseEvent e)
          No comment provided by developer, please add a comment to improve documentation.
 void mousePressed(java.awt.event.MouseEvent e)
          No comment provided by developer, please add a comment to improve documentation.
 void mouseReleased(java.awt.event.MouseEvent e)
          No comment provided by developer, please add a comment to improve documentation.
static void registerADMouseHandler(java.awt.Component component)
          No comment provided by developer, please add a comment to improve documentation.
static void registerADMouseInputHandler(java.awt.Component component)
          No comment provided by developer, please add a comment to improve documentation.
static void registerADMouseMotionHandler(java.awt.Component component)
          No comment provided by developer, please add a comment to improve documentation.
static void removeMouseInputListener(java.awt.Component component, javax.swing.event.MouseInputListener listener)
          No comment provided by developer, please add a comment to improve documentation.
static void removeMouseListener(java.awt.Component component, java.awt.event.MouseListener listener)
          No comment provided by developer, please add a comment to improve documentation.
 void removeMouseListener(java.awt.event.MouseListener l)
          Removes the specified mouse listener so that it no longer receives mouse events from this component.
static void removeMouseMotionListener(java.awt.Component component, java.awt.event.MouseMotionListener listener)
          No comment provided by developer, please add a comment to improve documentation.
 void removeMouseMotionListener(java.awt.event.MouseMotionListener l)
          Removes the specified mouse listener so that it no longer receives mouse events from this component.
static void unregisterADMouseHandler(java.awt.Component component)
          No comment provided by developer, please add a comment to improve documentation.
static void unregisterADMouseInputHandler(java.awt.Component component)
          No comment provided by developer, please add a comment to improve documentation.
static void unregisterADMouseMotionHandler(java.awt.Component component)
          No comment provided by developer, please add a comment to improve documentation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target

private final java.lang.ref.WeakReference target
No comment provided by developer, please add a comment to improve documentation.


active

private boolean active
No comment provided by developer, please add a comment to improve documentation.


listener

private java.util.EventListener listener
No comment provided by developer, please add a comment to improve documentation.


ascendListener

private java.util.EventListener ascendListener
No comment provided by developer, please add a comment to improve documentation.


descendListener

private java.util.EventListener descendListener
No comment provided by developer, please add a comment to improve documentation.


adHandler

private static transient AscendDescendMouseHandler.ADHandler adHandler
No comment provided by developer, please add a comment to improve documentation.


consumer

private static AscendDescendMouseHandler.Consumer consumer
No comment provided by developer, please add a comment to improve documentation.


ascendConsumer

private static AscendDescendMouseHandler.AscendConsumer ascendConsumer
No comment provided by developer, please add a comment to improve documentation.


descendConsumer

private static AscendDescendMouseHandler.DescendConsumer descendConsumer
No comment provided by developer, please add a comment to improve documentation.

Constructor Detail

AscendDescendMouseHandler

AscendDescendMouseHandler(java.awt.Component target)
Constructor for class AscendDescendMouseHandler

Parameters:
target - No description provided
Method Detail

addMouseListener

public void addMouseListener(java.awt.event.MouseListener l)
Adds the specified mouse motion listener to receive mouse motion events from this component. If l is null, no exception is thrown and no action is performed.

Parameters:
l - the mouse motion listener.
See Also:
MouseEvent, MouseListener, removeMouseListener(Component, MouseListener), Component.addMouseListener(java.awt.event.MouseListener)

addMouseMotionListener

public void addMouseMotionListener(java.awt.event.MouseMotionListener l)
Adds the specified mouse motion listener to receive mouse motion events from this component. If l is null, no exception is thrown and no action is performed.

Parameters:
l - the mouse motion listener.
See Also:
MouseEvent, MouseMotionListener, removeMouseMotionListener(MouseMotionListener), Component.addMouseMotionListener(java.awt.event.MouseMotionListener)

removeMouseListener

public void removeMouseListener(java.awt.event.MouseListener l)
Removes the specified mouse listener so that it no longer receives mouse events from this component. This method performs no function, nor does it throw an exception, if the listener specified by the argument was not previously added to this component. If l is null, no exception is thrown and no action is performed.

Parameters:
l - the mouse listener.
See Also:
MouseEvent, MouseListener, addMouseListener(MouseListener), Component.removeMouseListener(java.awt.event.MouseListener)

removeMouseMotionListener

public void removeMouseMotionListener(java.awt.event.MouseMotionListener l)
Removes the specified mouse listener so that it no longer receives mouse events from this component. This method performs no function, nor does it throw an exception, if the listener specified by the argument was not previously added to this component. If l is null, no exception is thrown and no action is performed.

Parameters:
l - the mouse listener.
See Also:
MouseEvent, MouseMotionListener, addMouseMotionListener(MouseMotionListener), Component.removeMouseMotionListener(java.awt.event.MouseMotionListener)

getAscendListener

public java.util.EventListener getAscendListener()
Get the ascendListener attribute of the AscendDescendMouseHandler object

Returns:
The ascendListener value

getDescendListener

public java.util.EventListener getDescendListener()
Get the descendListener attribute of the AscendDescendMouseHandler object

Returns:
The descendListener value

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
mousePressed in interface java.awt.event.MouseListener
Parameters:
e - No description provided

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
mouseReleased in interface java.awt.event.MouseListener
Parameters:
e - No description provided

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
mouseClicked in interface java.awt.event.MouseListener
Parameters:
e - No description provided

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
mouseEntered in interface java.awt.event.MouseListener
Parameters:
e - No description provided

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
mouseExited in interface java.awt.event.MouseListener
Parameters:
e - No description provided

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
Parameters:
e - No description provided

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener
Parameters:
e - No description provided

registerADMouseHandler

public static void registerADMouseHandler(java.awt.Component component)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
component - No description provided

registerADMouseMotionHandler

public static void registerADMouseMotionHandler(java.awt.Component component)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
component - No description provided

unregisterADMouseHandler

public static void unregisterADMouseHandler(java.awt.Component component)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
component - No description provided

unregisterADMouseMotionHandler

public static void unregisterADMouseMotionHandler(java.awt.Component component)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
component - No description provided

registerADMouseInputHandler

public static void registerADMouseInputHandler(java.awt.Component component)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
component - No description provided

unregisterADMouseInputHandler

public static void unregisterADMouseInputHandler(java.awt.Component component)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
component - No description provided

addMouseListener

public static void addMouseListener(java.awt.Component component,
                                    java.awt.event.MouseListener listener)
Access method for an one to n association.

Parameters:
component - The object added.
listener - The object added.

addMouseMotionListener

public static void addMouseMotionListener(java.awt.Component component,
                                          java.awt.event.MouseMotionListener listener)
Access method for an one to n association.

Parameters:
component - The object added.
listener - The object added.

addMouseInputListener

public static void addMouseInputListener(java.awt.Component component,
                                         javax.swing.event.MouseInputListener listener)
Access method for an one to n association.

Parameters:
component - The object added.
listener - The object added.

removeMouseListener

public static void removeMouseListener(java.awt.Component component,
                                       java.awt.event.MouseListener listener)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
component - No description provided
listener - No description provided

removeMouseMotionListener

public static void removeMouseMotionListener(java.awt.Component component,
                                             java.awt.event.MouseMotionListener listener)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
component - No description provided
listener - No description provided

removeMouseInputListener

public static void removeMouseInputListener(java.awt.Component component,
                                            javax.swing.event.MouseInputListener listener)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
component - No description provided
listener - No description provided

getHandler

private static AscendDescendMouseHandler getHandler(java.util.EventListener[] listeners)
Get the handler attribute of the AscendDescendMouseHandler class

Parameters:
listeners - No description provided
Returns:
The handler value

claimMouseListeners

public static void claimMouseListeners(java.awt.Component component)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
component - No description provided

claimMouseMotionListeners

public static void claimMouseMotionListeners(java.awt.Component component)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
component - No description provided

getADInfo

private static void getADInfo(java.awt.event.MouseEvent e,
                              java.util.LinkedList ascend,
                              java.util.LinkedList descend)
Get the aDInfo attribute of the AscendDescendMouseHandler class

Parameters:
e - No description provided
ascend - No description provided
descend - No description provided

dispatchEvent

private static boolean dispatchEvent(java.awt.event.MouseEvent e,
                                     java.awt.Component comp,
                                     java.awt.Component realSource,
                                     int xOff,
                                     int yOff,
                                     java.util.Iterator listeners,
                                     boolean ascend)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
e - No description provided
comp - No description provided
realSource - No description provided
xOff - No description provided
yOff - No description provided
listeners - No description provided
ascend - No description provided
Returns:
No description provided

fireEvent

private static void fireEvent(java.awt.event.MouseEvent e,
                              java.util.EventListener listener)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
e - No description provided
listener - No description provided

dispatchEvent

public static void dispatchEvent(java.awt.event.MouseEvent e,
                                 java.awt.event.MouseListener sourceListener)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
e - No description provided
sourceListener - No description provided

dispatchEvent

public static void dispatchEvent(java.awt.event.MouseEvent e,
                                 java.awt.event.MouseMotionListener sourceListener)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
e - No description provided
sourceListener - No description provided

dispatchEventImpl

private static void dispatchEventImpl(java.awt.event.MouseEvent e,
                                      java.util.EventListener sourceListener)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
e - No description provided
sourceListener - No description provided

cloneEvent

private static AscendDescendMouseHandler.ADMouseEvent cloneEvent(java.awt.event.MouseEvent e,
                                                                 java.awt.Component source,
                                                                 java.awt.Component realSource,
                                                                 int xOff,
                                                                 int yOff)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
e - No description provided
source - No description provided
realSource - No description provided
xOff - No description provided
yOff - No description provided
Returns:
No description provided

isADMouseEvent

public static boolean isADMouseEvent(java.awt.event.MouseEvent evt)
Get the aDMouseEvent attribute of the AscendDescendMouseHandler class

Parameters:
evt - No description provided
Returns:
The aDMouseEvent value

isAscendMouseEvent

public static boolean isAscendMouseEvent(java.awt.event.MouseEvent evt)
Get the ascendMouseEvent attribute of the AscendDescendMouseHandler class

Parameters:
evt - No description provided
Returns:
The ascendMouseEvent value

isDescendMouseEvent

public static boolean isDescendMouseEvent(java.awt.event.MouseEvent evt)
Get the descendMouseEvent attribute of the AscendDescendMouseHandler class

Parameters:
evt - No description provided
Returns:
The descendMouseEvent value

getADHandler

protected static AscendDescendMouseHandler.ADHandler getADHandler()
Get the aDHandler attribute of the AscendDescendMouseHandler class

Returns:
The aDHandler value

getConsumer

public static AscendDescendMouseHandler.Consumer getConsumer()
Get the consumer attribute of the AscendDescendMouseHandler class

Returns:
The consumer value

getAscendConsumer

public static AscendDescendMouseHandler.AscendConsumer getAscendConsumer()
Get the ascendConsumer attribute of the AscendDescendMouseHandler class

Returns:
The ascendConsumer value

getDescendConsumer

public static AscendDescendMouseHandler.DescendConsumer getDescendConsumer()
Get the descendConsumer attribute of the AscendDescendMouseHandler class

Returns:
The descendConsumer value