org.openbp.cockpit.modeler.figures
Class VisualElementEvent

java.lang.Object
  extended by org.openbp.cockpit.modeler.figures.VisualElementEvent

public class VisualElementEvent
extends java.lang.Object

Event that may happen to a visual element.

Author:
Heiko Erhardt

Field Summary
static java.lang.String CURSOR_ENTERED
          Event: Cursor entered the element
static java.lang.String CURSOR_LEFT
          Event: Cursor left the element
static java.lang.String DESELECTED
          Event: Element was deselected
static java.lang.String DOUBLE_CLICK
          Event: Element was double-clicked
 DrawingEditorPlugin editor
          Current editor
 java.awt.event.MouseEvent mouseEvent
          Mouse event that caused this event or null
static java.lang.String SELECTED
          Event: Element was selected
static java.lang.String SET_DND_PARTICIPANT
          Event: Element is participating in a drag and drop operation
 java.lang.String type
          Event type (one of the constants of this class)
static java.lang.String UNSET_DND_PARTICIPANT
          Event: Element is not participating in a drag and drop operation any more
static java.lang.String UPDATE_STATE
          Event: State should be updated
 int x
          X Document coordinate this event refers to or -1
 int y
          Y Document coordinate this event refers to or -1
 
Constructor Summary
VisualElementEvent(java.lang.String type, DrawingEditorPlugin editor)
          Constructor.
VisualElementEvent(java.lang.String type, DrawingEditorPlugin editor, java.awt.event.MouseEvent mouseEvent, int x, int y)
          Constructor for mouse-related events.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CURSOR_ENTERED

public static final java.lang.String CURSOR_ENTERED
Event: Cursor entered the element

See Also:
Constant Field Values

CURSOR_LEFT

public static final java.lang.String CURSOR_LEFT
Event: Cursor left the element

See Also:
Constant Field Values

SELECTED

public static final java.lang.String SELECTED
Event: Element was selected

See Also:
Constant Field Values

DESELECTED

public static final java.lang.String DESELECTED
Event: Element was deselected

See Also:
Constant Field Values

UPDATE_STATE

public static final java.lang.String UPDATE_STATE
Event: State should be updated

See Also:
Constant Field Values

SET_DND_PARTICIPANT

public static final java.lang.String SET_DND_PARTICIPANT
Event: Element is participating in a drag and drop operation

See Also:
Constant Field Values

UNSET_DND_PARTICIPANT

public static final java.lang.String UNSET_DND_PARTICIPANT
Event: Element is not participating in a drag and drop operation any more

See Also:
Constant Field Values

DOUBLE_CLICK

public static final java.lang.String DOUBLE_CLICK
Event: Element was double-clicked

See Also:
Constant Field Values

type

public java.lang.String type
Event type (one of the constants of this class)


mouseEvent

public java.awt.event.MouseEvent mouseEvent
Mouse event that caused this event or null


x

public int x
X Document coordinate this event refers to or -1


y

public int y
Y Document coordinate this event refers to or -1


editor

public DrawingEditorPlugin editor
Current editor

Constructor Detail

VisualElementEvent

public VisualElementEvent(java.lang.String type,
                          DrawingEditorPlugin editor)
Constructor.

Parameters:
type - Event type (one of the constants of this class)
editor - Current editor

VisualElementEvent

public VisualElementEvent(java.lang.String type,
                          DrawingEditorPlugin editor,
                          java.awt.event.MouseEvent mouseEvent,
                          int x,
                          int y)
Constructor for mouse-related events.

Parameters:
type - Event type (one of the constants of this class)
editor - Current editor
mouseEvent - Mouse event that caused this event or null
x - X Document coordinate this event refers to or -1
y - Y Document coordinate this event refers to or -1


Copyright © 2011. All Rights Reserved.