annas.graph
Enum Event

java.lang.Object
  extended by java.lang.Enum<Event>
      extended by annas.graph.Event
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Event>

public enum Event
extends java.lang.Enum<Event>

Lists all possible event that can occur in a graph

Author:
Sam Wilson

Enum Constant Summary
Arc_Added
          Indicates a Arc has been added to the Graph
Arc_Removed
          Indicates a Arc has been removed to the Graph
Arc_Reset
          Removes all Arcs from the Graph
Node_Added
          Indicates a Node has been added to the Graph
Node_Removed
          Indicates a Node has been removed to the Graph
 
Method Summary
static Event valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Event[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Node_Added

public static final Event Node_Added
Indicates a Node has been added to the Graph


Node_Removed

public static final Event Node_Removed
Indicates a Node has been removed to the Graph


Arc_Added

public static final Event Arc_Added
Indicates a Arc has been added to the Graph


Arc_Removed

public static final Event Arc_Removed
Indicates a Arc has been removed to the Graph


Arc_Reset

public static final Event Arc_Reset
Removes all Arcs from the Graph

Method Detail

values

public static Event[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Event c : Event.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Event valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null