gishur.gui2.event
Class GuiMouseEvent
java.lang.Object
|
+--java.util.EventObject
|
+--java.awt.AWTEvent
|
+--java.awt.event.ComponentEvent
|
+--java.awt.event.InputEvent
|
+--java.awt.event.MouseEvent
|
+--gishur.gui2.event.GuiMouseEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class GuiMouseEvent
- extends java.awt.event.MouseEvent
- See Also:
- Serialized Form
Field Summary |
static int |
MOUSE_OVER_ELEMENT
Event ID for mouse-over-element-changed-events. |
Fields inherited from class java.awt.event.MouseEvent |
MOUSE_CLICKED, MOUSE_DRAGGED, MOUSE_ENTERED, MOUSE_EXITED, MOUSE_FIRST, MOUSE_LAST, MOUSE_MOVED, MOUSE_PRESSED, MOUSE_RELEASED |
Fields inherited from class java.awt.event.InputEvent |
ALT_GRAPH_MASK, ALT_MASK, BUTTON1_MASK, BUTTON2_MASK, BUTTON3_MASK, CTRL_MASK, META_MASK, SHIFT_MASK |
Fields inherited from class java.awt.event.ComponentEvent |
COMPONENT_FIRST, COMPONENT_HIDDEN, COMPONENT_LAST, COMPONENT_MOVED, COMPONENT_RESIZED, COMPONENT_SHOWN |
Fields inherited from class java.awt.AWTEvent |
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
GuiMouseEvent(int id,
long when,
int x,
int y,
java.awt.event.MouseEvent e,
DrawAtom source,
java.lang.String element)
Constructs a new GuiMouseEvent according to the given parameters. |
GuiMouseEvent(int id,
java.awt.event.MouseEvent e,
DrawAtom source,
java.lang.String element)
Constructs a new GuiMouseEvent according to the given parameters. |
Methods inherited from class java.awt.event.MouseEvent |
getClickCount, getPoint, getX, getY, isPopupTrigger, translatePoint |
Methods inherited from class java.awt.event.InputEvent |
consume, getModifiers, getWhen, isAltDown, isAltGraphDown, isConsumed, isControlDown, isMetaDown, isShiftDown |
Methods inherited from class java.awt.event.ComponentEvent |
getComponent |
Methods inherited from class java.awt.AWTEvent |
finalize, getID, toString |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MOUSE_OVER_ELEMENT
public static final int MOUSE_OVER_ELEMENT
- Event ID for mouse-over-element-changed-events.
GuiMouseEvent
public GuiMouseEvent(int id,
java.awt.event.MouseEvent e,
DrawAtom source,
java.lang.String element)
- Constructs a new
GuiMouseEvent
according to the given parameters.
- Parameters:
id
- the id for the evente
- the MouseEvent
, this event is based uponsource
- the source DrawAtom
, where this event occuredelement
- the element name, where this event occured
GuiMouseEvent
public GuiMouseEvent(int id,
long when,
int x,
int y,
java.awt.event.MouseEvent e,
DrawAtom source,
java.lang.String element)
- Constructs a new
GuiMouseEvent
according to the given parameters.
- Parameters:
id
- the id for the eventwhen
- the timestamp of the eventx,y
- the position of the evente
- the MouseEvent
, this event is based uponsource
- the source DrawAtom
, where this event occuredelement
- the element name, where this event occured
getSourceObject
public DrawAtom getSourceObject()
- Returns the
DrawAtom
, where the GuiMouseEvent
occured.
- Returns:
- the
DrawAtom
, where the GuiMouseEvent
occured.
getSourceElement
public java.lang.String getSourceElement()
- Returns the element name of the element, where the
GuiMouseEvent
occured.
- Returns:
- the element name of the element, where the
GuiMouseEvent
occured.
paramString
public java.lang.String paramString()
- Returns a parameter string identifying this event.
This method is useful for event-logging and for debugging.
- Overrides:
paramString
in class java.awt.event.MouseEvent
- Returns:
- a string identifying the event and its attributes