Enum Class ShapeType
- All Implemented Interfaces:
Serializable,Comparable<ShapeType>,Constable
Enumeration of all available shape types in Prism.
Used by ShapeObject to determine which shape to draw.
- Since:
- Prism B1
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn arrow shape pointing in a directionA round shape defined by a center point and radiusA plus/cross shapeA diamond/rhombus shapeA heart-shaped curve (parametric equation)A six-sided polygonA straight line between two pointsAn eight-sided polygonA five-sided polygonA four-sided polygon with equal anglesA multi-pointed star shapeA three-sided polygon -
Method Summary
-
Enum Constant Details
-
SQUARE
A four-sided polygon with equal angles -
TRIANGLE
A three-sided polygon -
CIRCLE
A round shape defined by a center point and radius -
HEART
A heart-shaped curve (parametric equation) -
LINE
A straight line between two points -
STAR
A multi-pointed star shape -
ARROW
An arrow shape pointing in a direction -
PENTAGON
A five-sided polygon -
HEXAGON
A six-sided polygon -
OCTAGON
An eight-sided polygon -
CROSS
A plus/cross shape -
DIAMOND
A diamond/rhombus shape
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-