Package com.github.tadukoo.view.shapes
Enum Class Shapes
- All Implemented Interfaces:
Serializable
,Comparable<Shapes>
,Constable
A collection of
ShapeInfo
s that can be used- Version:
- Alpha v.0.2
- Author:
- Logan Ferree (Tadukoo)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCreates a circle centered in the spaceCreates an ellipseCreates a RectangleCreates a Rectangle with the top left and bottom right corners cut outCreates a Rectangle with the top right and bottom left corners cut outCreates a rounded rectangle -
Field Summary
-
Constructor Summary
-
Method Summary
-
Enum Constant Details
-
ELLIPSE
Creates an ellipse -
CIRCLE
Creates a circle centered in the space -
RECTANGLE
Creates a Rectangle -
ROUND_RECTANGLE
Creates a rounded rectangle -
RECTANGLE_WITH_CUT_CORNERS_TR_BL
Creates a Rectangle with the top right and bottom left corners cut out -
RECTANGLE_WITH_CUT_CORNERS_TL_BR
Creates a Rectangle with the top left and bottom right corners cut out
-
-
Field Details
-
shapeInfo
TheShapeInfo
-
-
Constructor Details
-
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
-
getShapeInfo
- Returns:
- The
ShapeInfo
-