public enum MagicDrawShape extends Enum<MagicDrawShape>
Enum Constant and Description |
---|
RECTANGULAR_SHAPE
The 'RectangularShape' literal object.
|
SEPARATOR
The 'Separator' literal object.
|
TEXT_BOX
The 'TextBox' literal object.
|
Modifier and Type | Method and Description |
---|---|
String |
getLiteral() |
static boolean |
isShape(String type) |
String |
toString() |
static MagicDrawShape |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MagicDrawShape[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MagicDrawShape TEXT_BOX
public static final MagicDrawShape RECTANGULAR_SHAPE
public static final MagicDrawShape SEPARATOR
public static MagicDrawShape[] values()
for (MagicDrawShape c : MagicDrawShape.values()) System.out.println(c);
public static MagicDrawShape valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getLiteral()
public String toString()
toString
in class Enum<MagicDrawShape>
public static boolean isShape(String type)