de.uni_paderborn.fujaba.fsa.listener
Class ComponentMouseListener

java.lang.Object
  extended byjavax.swing.event.MouseInputAdapter
      extended byde.uni_paderborn.fujaba.fsa.listener.ComponentMouseListener
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.MouseInputListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener
Direct Known Subclasses:
ComponentBorderListener, ComponentCursorListener, DoubleClickMouseListener, DragMouseListener

public class ComponentMouseListener
extends javax.swing.event.MouseInputAdapter

A Standard listener for other listeners with special functions.

Version:
$Revision: 1.13 $
Author:
$Author: schneider $

Field Summary
protected static int DISTANCE
          Internal used constant.
protected static int EAST
          Flag to show that the mouse is in the east of a component.
protected static int INNER
          Flag to show that the mouse is in the component.
protected  java.awt.Component lastComponent
          Holds the last component.
protected static int NORTH
          Flag to show that the mouse is in the north of a component.
protected static int SOUTH
          Flag to show that the mouse is in the south of a component.
protected static int UNKNOWN
          Internal used constant.
protected static int WEST
          Flag to show that the mouse is in the west of a component.
 
Constructor Summary
ComponentMouseListener()
           
 
Method Summary
protected  int getOrientation()
          Get the orientation attribute of the ComponentMouseListener object
protected  void setOrientation(java.awt.Component comp, java.awt.event.MouseEvent event)
          Sets the orientation.
protected  boolean setOrientation(int orientation)
          Sets the orientation attribute of the ComponentMouseListener object
 
Methods inherited from class javax.swing.event.MouseInputAdapter
mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DISTANCE

protected static final int DISTANCE
Internal used constant.

See Also:
Constant Field Values

UNKNOWN

protected static final int UNKNOWN
Internal used constant.

See Also:
Constant Field Values

NORTH

protected static final int NORTH
Flag to show that the mouse is in the north of a component.

See Also:
Constant Field Values

SOUTH

protected static final int SOUTH
Flag to show that the mouse is in the south of a component.

See Also:
Constant Field Values

EAST

protected static final int EAST
Flag to show that the mouse is in the east of a component.

See Also:
Constant Field Values

WEST

protected static final int WEST
Flag to show that the mouse is in the west of a component.

See Also:
Constant Field Values

INNER

protected static final int INNER
Flag to show that the mouse is in the component.

See Also:
Constant Field Values

lastComponent

protected java.awt.Component lastComponent
Holds the last component. This attribute is used by subclasses of this class.

Constructor Detail

ComponentMouseListener

public ComponentMouseListener()
Method Detail

setOrientation

protected boolean setOrientation(int orientation)
Sets the orientation attribute of the ComponentMouseListener object

Parameters:
orientation - The new orientation value
Returns:
No description provided

setOrientation

protected void setOrientation(java.awt.Component comp,
                              java.awt.event.MouseEvent event)
Sets the orientation.

Parameters:
comp - The new orientation value
event - The new orientation value

getOrientation

protected int getOrientation()
Get the orientation attribute of the ComponentMouseListener object

Returns:
The orientation value