public class DiagramEvent
extends java.util.EventObject
This class defines diagram events
Modifier and Type | Field and Description |
---|---|
static int |
ACTION |
static int |
ADD |
protected java.awt.event.MouseEvent |
e |
protected java.awt.Point |
location |
static int |
MOVE |
protected java.lang.Object |
object |
static int |
SELECTION |
protected int |
type |
Constructor and Description |
---|
DiagramEvent(java.lang.Object source,
int type,
java.lang.Object object,
java.awt.event.MouseEvent e)
Constructs the DiagramEvent
|
Modifier and Type | Method and Description |
---|---|
java.awt.Point |
getLocation()
Gets the location if any
|
java.awt.event.MouseEvent |
getMouseEvent()
Gets the mouse event
|
java.lang.Object |
getObject()
Gets the object
|
int |
getType()
Gets the event type
|
void |
setLocation(java.awt.Point location)
Sets the location
|
protected int type
protected java.lang.Object object
protected java.awt.event.MouseEvent e
protected java.awt.Point location
public static final int SELECTION
public static final int MOVE
public static final int ADD
public static final int ACTION
public DiagramEvent(java.lang.Object source, int type, java.lang.Object object, java.awt.event.MouseEvent e)
source
- The event sourcetype
- The event typeobject
- The object affected - node/relationship/diagrame
- The original mouse eventpublic int getType()
public java.awt.Point getLocation()
public void setLocation(java.awt.Point location)
location
- The locationpublic java.lang.Object getObject()
public java.awt.event.MouseEvent getMouseEvent()