Enum Class BrickTools

java.lang.Object
java.lang.Enum<BrickTools>
com.example.brickpaint.BrickTools
All Implemented Interfaces:
Serializable, Comparable<BrickTools>, Constable

public enum BrickTools extends Enum<BrickTools>
Enum for all the tool options in the BrickPaint App
  • Enum Constant Details

    • Pointer

      public static final BrickTools Pointer
    • Pencil

      public static final BrickTools Pencil
    • RainbowPencil

      public static final BrickTools RainbowPencil
    • Eraser

      public static final BrickTools Eraser
    • Line

      public static final BrickTools Line
    • Rectangle

      public static final BrickTools Rectangle
    • RoundRectangle

      public static final BrickTools RoundRectangle
    • Square

      public static final BrickTools Square
    • Circle

      public static final BrickTools Circle
    • Oval

      public static final BrickTools Oval
    • Polygon

      public static final BrickTools Polygon
    • CustomShape

      public static final BrickTools CustomShape
    • SolidLine

      public static final BrickTools SolidLine
    • DashedLine

      public static final BrickTools DashedLine
    • ColorGrabber

      public static final BrickTools ColorGrabber
    • SelectionTool

      public static final BrickTools SelectionTool
    • BucketFill

      public static final BrickTools BucketFill
    • Nothing

      public static final BrickTools Nothing
  • Method Details

    • values

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