scale.common
Enum DShape
java.lang.Object
java.lang.Enum<DShape>
scale.common.DShape
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<DShape>
public enum DShape
- extends java.lang.Enum<DShape>
This enum specifies graphical display shapes - box,
circle, etc.
$Id$
Copyright 2008 by the
Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
Method Summary |
java.lang.String |
sName()
|
static DShape |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DShape[] |
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 |
BOX
public static final DShape BOX
RHOMBUS
public static final DShape RHOMBUS
CIRCLE
public static final DShape CIRCLE
ELLIPSE
public static final DShape ELLIPSE
values
public static DShape[] 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 (DShape c : DShape.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static DShape 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
sName
public java.lang.String sName()