Enum Class Shapes

java.lang.Object
java.lang.Enum<Shapes>
com.github.tadukoo.view.shapes.Shapes
All Implemented Interfaces:
Serializable, Comparable<Shapes>, Constable

public enum Shapes extends Enum<Shapes>
A collection of ShapeInfos that can be used
Version:
Alpha v.0.2
Author:
Logan Ferree (Tadukoo)
  • Enum Constant Details

    • ELLIPSE

      public static final Shapes ELLIPSE
      Creates an ellipse
    • CIRCLE

      public static final Shapes CIRCLE
      Creates a circle centered in the space
    • RECTANGLE

      public static final Shapes RECTANGLE
      Creates a Rectangle
    • ROUND_RECTANGLE

      public static final Shapes ROUND_RECTANGLE
      Creates a rounded rectangle
    • RECTANGLE_WITH_CUT_CORNERS_TR_BL

      public static final Shapes 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

      public static final Shapes RECTANGLE_WITH_CUT_CORNERS_TL_BR
      Creates a Rectangle with the top left and bottom right corners cut out
  • Field Details

  • Constructor Details

    • Shapes

      private Shapes(ShapeInfo shapeInfo)
      Creates a Shapes enumeration with the given ShapeInfo.
      Parameters:
      shapeInfo - The ShapeInfo
  • Method Details

    • values

      public static Shapes[] 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

      public static Shapes valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getShapeInfo

      public ShapeInfo getShapeInfo()
      Returns:
      The ShapeInfo