Enum ShapeAnnotation.ShapeType
- java.lang.Object
-
- java.lang.Enum<ShapeAnnotation.ShapeType>
-
- org.cytoscape.view.presentation.annotations.ShapeAnnotation.ShapeType
-
- All Implemented Interfaces:
Serializable
,Comparable<ShapeAnnotation.ShapeType>
- Enclosing interface:
- ShapeAnnotation
public static enum ShapeAnnotation.ShapeType extends Enum<ShapeAnnotation.ShapeType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
shapeName()
String
toString()
static ShapeAnnotation.ShapeType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ShapeAnnotation.ShapeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RECTANGLE
public static final ShapeAnnotation.ShapeType RECTANGLE
-
ROUNDEDRECTANGLE
public static final ShapeAnnotation.ShapeType ROUNDEDRECTANGLE
-
ELLIPSE
public static final ShapeAnnotation.ShapeType ELLIPSE
-
TRIANGLE
public static final ShapeAnnotation.ShapeType TRIANGLE
-
PENTAGON
public static final ShapeAnnotation.ShapeType PENTAGON
-
STAR5
public static final ShapeAnnotation.ShapeType STAR5
-
HEXAGON
public static final ShapeAnnotation.ShapeType HEXAGON
-
STAR6
public static final ShapeAnnotation.ShapeType STAR6
-
OCTAGON
public static final ShapeAnnotation.ShapeType OCTAGON
-
PARALLELOGRAM
public static final ShapeAnnotation.ShapeType PARALLELOGRAM
-
V
public static final ShapeAnnotation.ShapeType V
-
DIAMOND
public static final ShapeAnnotation.ShapeType DIAMOND
-
CUSTOM
public static final ShapeAnnotation.ShapeType CUSTOM
-
-
Method Detail
-
values
public static ShapeAnnotation.ShapeType[] 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 (ShapeAnnotation.ShapeType c : ShapeAnnotation.ShapeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ShapeAnnotation.ShapeType 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
-
shapeName
public String shapeName()
-
toString
public String toString()
- Overrides:
toString
in classEnum<ShapeAnnotation.ShapeType>
-
-