Enum Class Figure.Rank

java.lang.Object
java.lang.Enum<Figure.Rank>
com.bc.ceres.swing.figure.Figure.Rank
All Implemented Interfaces:
Serializable, Comparable<Figure.Rank>, Constable
Enclosing interface:
Figure

public static enum Figure.Rank extends Enum<Figure.Rank>
The rang of a figure.
  • Enum Constant Details

    • NOT_SPECIFIED

      public static final Figure.Rank NOT_SPECIFIED
      Figure rank has not explicitly been specified.
    • POINT

      public static final Figure.Rank POINT
      Figure rank is 0-dimensional point.
    • LINE

      public static final Figure.Rank LINE
      Figure rank is a 1-dimensional line.
    • AREA

      public static final Figure.Rank AREA
      Figure rank is a 2-dimensional area.
  • Field Details

    • value

      public final int value
  • Method Details

    • values

      public static Figure.Rank[] 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 Figure.Rank 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