Package com.bc.ceres.swing.figure
Enum Class Figure.Rank
- All Implemented Interfaces:
Serializable
,Comparable<Figure.Rank>
,Constable
- Enclosing interface:
Figure
The rang of a figure.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFigure rank is a 2-dimensional area.Figure rank is a 1-dimensional line.Figure rank has not explicitly been specified.Figure rank is 0-dimensional point. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Figure.Rank
Returns the enum constant of this class with the specified name.static Figure.Rank[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_SPECIFIED
Figure rank has not explicitly been specified. -
POINT
Figure rank is 0-dimensional point. -
LINE
Figure rank is a 1-dimensional line. -
AREA
Figure rank is a 2-dimensional area.
-
-
Field Details
-
value
public final int value
-
-
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
-