net.xqhs.graphs.representation.graphical
Enum GraphicalRepresentationElement.Type

java.lang.Object
  extended by java.lang.Enum<GraphicalRepresentationElement.Type>
      extended by net.xqhs.graphs.representation.graphical.GraphicalRepresentationElement.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<GraphicalRepresentationElement.Type>
Enclosing class:
GraphicalRepresentationElement

static enum GraphicalRepresentationElement.Type
extends java.lang.Enum<GraphicalRepresentationElement.Type>

The type of the representation.

Author:
Andrei Olaru

Enum Constant Summary
EDGE
          The representation corresponds to a graph edge, and has as central element a GConnector.
ELEMENT_CONTAINER
          The representation corresponds to whole graph, that is contained in a GContainer.
NODE
          The representation corresponds to a graph node and has as central element a default GElement.
 
Method Summary
static GraphicalRepresentationElement.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static GraphicalRepresentationElement.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NODE

public static final GraphicalRepresentationElement.Type NODE
The representation corresponds to a graph node and has as central element a default GElement.


EDGE

public static final GraphicalRepresentationElement.Type EDGE
The representation corresponds to a graph edge, and has as central element a GConnector.


ELEMENT_CONTAINER

public static final GraphicalRepresentationElement.Type ELEMENT_CONTAINER
The representation corresponds to whole graph, that is contained in a GContainer.

Method Detail

values

public static GraphicalRepresentationElement.Type[] 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 (GraphicalRepresentationElement.Type c : GraphicalRepresentationElement.Type.values())
    System.out.println(c);

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

valueOf

public static GraphicalRepresentationElement.Type 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