de.postfuse.ui
Enum NodeShape
java.lang.Object
java.lang.Enum<NodeShape>
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
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
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)