public class GraphViewEvent extends EventObject
Each graph event contains an ID and a previous value for all changes and deletions, the specifics of which are described on a case-by-case basis below.
GraphController
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
EDGE_DRAWN
The given edge was just drawn.
|
static int |
EDGE_ROUTED
The connector representing an edge was just routed.
|
static int |
NODE_DRAWN
The given node was just drawn.
|
static int |
NODE_MOVED
The figure representing a node was moved.
|
source
Constructor and Description |
---|
GraphViewEvent(Object source,
int id,
Object target)
Construct a GraphViewEvent with the given source and target
and a null previous value.
|
GraphViewEvent(Object source,
int id,
Object target,
Object oldValue)
Construct a GraphViewEvent with the given
source, target, and previous value.
|
Modifier and Type | Method and Description |
---|---|
int |
getID()
Return the type id for this event.
|
Object |
getOldValue()
Return the old value, which is event-specific.
|
Object |
getTarget()
Return the target value, which is event-specific.
|
String |
toString()
Return a string representation of this event.
|
getSource
public static final int NODE_MOVED
public static final int EDGE_ROUTED
public static final int NODE_DRAWN
public static final int EDGE_DRAWN
public GraphViewEvent(Object source, int id, Object target)
public int getID()
public Object getTarget()
public Object getOldValue()
public String toString()
toString
in class EventObject
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.