pedviz.view
Class NodeEvent

java.lang.Object
  extended by pedviz.view.NodeEvent

public class NodeEvent
extends java.lang.Object


Field Summary
static int ALL_DESELECTED
          All nodes were deselected.
static int DESELECTED
          Node was deselected.
static int MOUSE_ENTER
          Mouse enters node.
static int MOUSE_LEAVE
          Mouse leaves node.
static int SELECTED
          Node was selected.
 
Constructor Summary
NodeEvent(GraphView graphView, Node node, int type)
          Creates a new NodeEvent with the given properties.
 
Method Summary
 Graph getGraph()
          Returns the Graph object.
 GraphView getGraphView()
          Returns the GraphView object.
 Node getNode()
          Returns the Node object.
 NodeView getNodeView()
          Returns the NodeView object.
 int getType()
          Returns the type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MOUSE_ENTER

public static final int MOUSE_ENTER
Mouse enters node.

See Also:
Constant Field Values

MOUSE_LEAVE

public static final int MOUSE_LEAVE
Mouse leaves node.

See Also:
Constant Field Values

SELECTED

public static final int SELECTED
Node was selected.

See Also:
Constant Field Values

DESELECTED

public static final int DESELECTED
Node was deselected.

See Also:
Constant Field Values

ALL_DESELECTED

public static final int ALL_DESELECTED
All nodes were deselected.

See Also:
Constant Field Values
Constructor Detail

NodeEvent

public NodeEvent(GraphView graphView,
                 Node node,
                 int type)
Creates a new NodeEvent with the given properties.

Parameters:
graphView - Sender object
node - Node
type - Type
Method Detail

getType

public int getType()
Returns the type.

Returns:
the type.

getGraphView

public GraphView getGraphView()
Returns the GraphView object.

Returns:
the GraphView object.

getNode

public Node getNode()
Returns the Node object.

Returns:
the Node object.

getGraph

public Graph getGraph()
Returns the Graph object.

Returns:
the Graph object.

getNodeView

public NodeView getNodeView()
Returns the NodeView object.

Returns:
the NodeView object.