Package library
Enum Shape_Forms
- java.lang.Object
-
- java.lang.Enum<Shape_Forms>
-
- library.Shape_Forms
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Shape_Forms>
public enum Shape_Forms extends java.lang.Enum<Shape_Forms>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Shape_Forms
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Shape_Forms[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RECTANGLE
public static final Shape_Forms RECTANGLE
-
CIRCLE
public static final Shape_Forms CIRCLE
-
STROKE
public static final Shape_Forms STROKE
-
ECLIPSE
public static final Shape_Forms ECLIPSE
-
TRIANGLE
public static final Shape_Forms TRIANGLE
-
QUADRANGLE
public static final Shape_Forms QUADRANGLE
-
STAR
public static final Shape_Forms STAR
-
TEXT
public static final Shape_Forms TEXT
-
POLYGON
public static final Shape_Forms POLYGON
-
-
Method Detail
-
values
public static Shape_Forms[] 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 (Shape_Forms c : Shape_Forms.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Shape_Forms 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 namejava.lang.NullPointerException
- if the argument is null
-
-