public enum DisplayType extends java.lang.Enum<DisplayType>
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<? extends Displayable> |
getImplClass()
Gets the implementation class for the DisplayType.
|
static DisplayType |
of(java.lang.Class<? extends Displayable> implClass)
Gets the DisplayType corresponding to the implementation class.
|
static DisplayType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DisplayType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DisplayType Image
public static final DisplayType Marker
public static final DisplayType Polygon
public static DisplayType[] values()
for (DisplayType c : DisplayType.values()) System.out.println(c);
public static DisplayType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static DisplayType of(java.lang.Class<? extends Displayable> implClass)
implClass - the displayable classjava.lang.IllegalArgumentException - if it's not a valid implementation classpublic java.lang.Class<? extends Displayable> getImplClass()