jcreek.util.graph
Class GraphChangeEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byjcreek.util.graph.GraphChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class GraphChangeEvent
extends java.util.EventObject

Title: GraphChangeEvent

Description: Event object for events triggered in graph models (e.g. GraphModel)

Version:
1.0
Author:
Frode Sørmo
See Also:
Serialized Form

Field Summary
static int EDGE_ADDED
           
static int EDGE_CHANGED
           
static int EDGE_REMOVED
           
static int NODE_ADDED
           
static int NODE_CHANGED
           
static int NODE_MOVED
           
static int NODE_REMOVED
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
GraphChangeEvent(Edge edge, int type)
           
GraphChangeEvent(Node node, int type)
           
 
Method Summary
 Edge getEdge()
           
 Node getNode()
           
 int getType()
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NODE_MOVED

public static final int NODE_MOVED
See Also:
Constant Field Values

NODE_ADDED

public static final int NODE_ADDED
See Also:
Constant Field Values

NODE_REMOVED

public static final int NODE_REMOVED
See Also:
Constant Field Values

NODE_CHANGED

public static final int NODE_CHANGED
See Also:
Constant Field Values

EDGE_ADDED

public static final int EDGE_ADDED
See Also:
Constant Field Values

EDGE_REMOVED

public static final int EDGE_REMOVED
See Also:
Constant Field Values

EDGE_CHANGED

public static final int EDGE_CHANGED
See Also:
Constant Field Values
Constructor Detail

GraphChangeEvent

public GraphChangeEvent(Node node,
                        int type)

GraphChangeEvent

public GraphChangeEvent(Edge edge,
                        int type)
Method Detail

getType

public int getType()

getNode

public Node getNode()

getEdge

public Edge getEdge()


Created at IDI, NTNU by the Artificial Intelligence and Learning group