de.postfuse.ui
Enum NodeShape

java.lang.Object
  extended by java.lang.Enum<NodeShape>
      extended by de.postfuse.ui.NodeShape
All Implemented Interfaces:
Serializable, Comparable<NodeShape>

public enum NodeShape
extends Enum<NodeShape>

This enum contains different geometric shapes for nodes.

Author:
Peter

Enum Constant Summary
CIRCLE
           
CIRCLE_DOUBLE
           
ELLIPSE
           
ELLIPSE_DOUBLE
           
RECTANGLE
           
RECTANGLE_DOUBLE
           
ROUNDRECTANGLE
           
ROUNDRECTANGLE_DOUBLE
           
 
Method Summary
static NodeShape fromInt(int shape)
           
 int getInt()
           
 void setInt(int shape)
           
static NodeShape valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NodeShape[] values()
          Returns an array containing the constants of this enum type, in the order they're 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

CIRCLE

public static final NodeShape CIRCLE

CIRCLE_DOUBLE

public static final NodeShape CIRCLE_DOUBLE

ELLIPSE

public static final NodeShape ELLIPSE

ELLIPSE_DOUBLE

public static final NodeShape ELLIPSE_DOUBLE

RECTANGLE

public static final NodeShape RECTANGLE

RECTANGLE_DOUBLE

public static final NodeShape RECTANGLE_DOUBLE

ROUNDRECTANGLE

public static final NodeShape ROUNDRECTANGLE

ROUNDRECTANGLE_DOUBLE

public static final NodeShape ROUNDRECTANGLE_DOUBLE
Method Detail

values

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

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

valueOf

public static NodeShape valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name

getInt

public int getInt()

setInt

public void setInt(int shape)

fromInt

public static NodeShape fromInt(int shape)