Enum Lens.Shape
- java.lang.Object
-
- java.lang.Enum<Lens.Shape>
-
- org.jungrapht.visualization.transform.Lens.Shape
-
- All Implemented Interfaces:
Serializable
,Comparable<Lens.Shape>
- Enclosing class:
- Lens
public static enum Lens.Shape extends Enum<Lens.Shape>
supported lens shapes are Ellipse and Rectangle
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Lens.Shape
valueOf(String name)
Returns the enum constant of this type with the specified name.static Lens.Shape[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ELLIPSE
public static final Lens.Shape ELLIPSE
-
RECTANGLE
public static final Lens.Shape RECTANGLE
-
-
Method Detail
-
values
public static Lens.Shape[] 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 (Lens.Shape c : Lens.Shape.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Lens.Shape valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-