public static enum View.LayerType extends java.lang.Enum<View.LayerType> implements Decorators.Decorator, Decorators.HasLabel
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
label |
private edu.uci.ics.jung.visualization.Layer |
layer |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toLabel() |
edu.uci.ics.jung.visualization.Layer |
toLayer() |
java.lang.Object |
toValue() |
static View.LayerType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static View.LayerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final View.LayerType LAYOUT
public static final View.LayerType VIEW
public static final View.LayerType BOTH
private final edu.uci.ics.jung.visualization.Layer layer
private final java.lang.String label
public static View.LayerType[] values()
for (View.LayerType c : View.LayerType.values()) System.out.println(c);
public static View.LayerType 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 java.lang.String toLabel()
toLabel
in interface Decorators.HasLabel
public java.lang.Object toValue()
toValue
in interface Decorators.Decorator
public edu.uci.ics.jung.visualization.Layer toLayer()