|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
y.base.GraphEvent
public class GraphEvent
An event which indicates that a graph structure change occurred.
This low-level event is generated by a graph when its structure changes.
The event is passed to every GraphListener
object that registered to
receive such events using the graph's
addGraphListener
method.
Field Summary | |
---|---|
static byte |
EDGE_CREATION
Type constant that identifies an event that gets fired immediately after an edge has been created. |
static byte |
EDGE_REINSERTION
Type constant that identifies an event that gets fired immediately after an edge has been reinserted into the graph. |
static byte |
NODE_CREATION
Type constant that identifies an event that gets fired immediately after a node has been created. |
static byte |
NODE_REINSERTION
Type constant that identifies an event that gets fired immediately after a node has been reinserted into the graph. |
static byte |
POST_EDGE_CHANGE
Type constant that identifies an event that gets fired immediately after the end points of an edge have been changed. |
static byte |
POST_EDGE_REMOVAL
Type constant that identifies an event that gets fired immediately after an edge has been removed from the graph. |
static byte |
POST_EVENT
Type constant that signals the end of a some logically coherent event sequence. |
static byte |
POST_NODE_REMOVAL
Type constant that identifies an event that gets fired immediately after a node has been removed from the graph. |
static byte |
PRE_EDGE_CHANGE
Type constant that identifies an event that gets fired immediately before the end points of an edge will be changed. |
static byte |
PRE_EDGE_REMOVAL
Type constant that identifies an event that gets fired immediately before an edge will be removed from the graph. |
static byte |
PRE_EVENT
Type constant that signals the start of a some logically coherent event sequence. |
static byte |
PRE_NODE_REMOVAL
Type constant that identifies an event that gets fired immediately before a node will be removed from the graph. |
static byte |
SUBGRAPH_INSERTION
Type constant that identifies an event that gets fired after a subgraph of a graph G has been moved to the emitting graph. |
static byte |
SUBGRAPH_REMOVAL
Type constant that identifies an event that gets fired after a subgraph of the emitting graph has been moved to a graph G. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
GraphEvent(Graph source,
byte type,
java.lang.Object data)
Creates a new GraphEvent instance with given type and data. |
Method Summary | |
---|---|
java.lang.Object |
getData()
Returns the data object associated with this graph event. |
Graph |
getGraph()
Returns the graph that is the emitter of this event. |
byte |
getType()
Returns the type of this GraphEvent. |
java.lang.String |
toString()
Returns a String representation of this GraphEvent object's type. |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final byte NODE_CREATION
public static final byte EDGE_CREATION
public static final byte PRE_NODE_REMOVAL
public static final byte POST_NODE_REMOVAL
public static final byte PRE_EDGE_REMOVAL
public static final byte POST_EDGE_REMOVAL
public static final byte NODE_REINSERTION
public static final byte EDGE_REINSERTION
public static final byte PRE_EDGE_CHANGE
public static final byte POST_EDGE_CHANGE
public static final byte SUBGRAPH_INSERTION
NodeList
containing the nodes that induce
the moved subgraph.
This event gets fired just after the SUBGRAPH_REMOVAL
event got fired
on the subgraph's original graph G.
Note that at the time the event gets fired, the nodes from the node list are
already part of the emitting graph.
public static final byte SUBGRAPH_REMOVAL
NodeList
containing the nodes that induce
the moved subgraph.
This event gets fired just before the SUBGRAPH_INSERTION
event will
be fired on the subgraph's new graph G.
Note that at the time the event gets fired, the nodes from the node list are
already part of graph G.
public static final byte PRE_EVENT
public static final byte POST_EVENT
Constructor Detail |
---|
public GraphEvent(Graph source, byte type, java.lang.Object data)
Method Detail |
---|
public byte getType()
public java.lang.Object getData()
public Graph getGraph()
public java.lang.String toString()
toString
in class java.util.EventObject
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |