fr.esrf.tangoatk.widget.util.jdraw
Class JDMouseEvent

java.lang.Object
  extended by java.util.EventObject
      extended by fr.esrf.tangoatk.widget.util.jdraw.JDMouseEvent
All Implemented Interfaces:
java.io.Serializable

public class JDMouseEvent
extends java.util.EventObject

JDraw MouseEvent

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
JDMouseEvent(JDObject source, java.awt.event.MouseEvent e0)
          Construct a JDMouseEvent
 
Method Summary
 int getButton()
          Returns which, if any, of the mouse buttons has changed state.
 int getClickCount()
          Indicates the number of quick consecutive clicks of a mouse button.
 int getModifiers()
          Returns the modifier mask for this event.
 long getWhen()
          Returns the timestamp of when this event occurred.
 int getX()
          Returns the horizontal x position of the intial MouseEvent.
 int getY()
          Returns the vetical y position of the intial MouseEvent.
 boolean isAltDown()
          Returns whether or not the Alt modifier is down on this event.
 boolean isAltGraphDown()
          Returns whether or not the AltGraph modifier is down on this event.
 boolean isControlDown()
          Returns whether or not the Control modifier is down on this event.
 boolean isMetaDown()
          Returns whether or not the Meta modifier is down on this event.
 boolean isShiftDown()
          Returns whether or not the Shift modifier is down on this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JDMouseEvent

public JDMouseEvent(JDObject source,
                    java.awt.event.MouseEvent e0)
Construct a JDMouseEvent

Parameters:
source - JDObject source
e0 - Initial mouse event.
Method Detail

getX

public int getX()
Returns the horizontal x position of the intial MouseEvent.


getY

public int getY()
Returns the vetical y position of the intial MouseEvent.


getClickCount

public int getClickCount()
Indicates the number of quick consecutive clicks of a mouse button.


getButton

public int getButton()
Returns which, if any, of the mouse buttons has changed state.

See Also:
MouseEvent.BUTTON1, MouseEvent.BUTTON2, MouseEvent.BUTTON3

getWhen

public long getWhen()
Returns the timestamp of when this event occurred.


isShiftDown

public boolean isShiftDown()
Returns whether or not the Shift modifier is down on this event.


isControlDown

public boolean isControlDown()
Returns whether or not the Control modifier is down on this event.


isMetaDown

public boolean isMetaDown()
Returns whether or not the Meta modifier is down on this event.


isAltDown

public boolean isAltDown()
Returns whether or not the Alt modifier is down on this event.


isAltGraphDown

public boolean isAltGraphDown()
Returns whether or not the AltGraph modifier is down on this event.


getModifiers

public int getModifiers()
Returns the modifier mask for this event.