Package grp25.captcha.tag
Enum Binary
- java.lang.Object
-
- java.lang.Enum<Binary>
-
- grp25.captcha.tag.Binary
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HABITABLEThe tag habitable.NON_HABITABLEThe tag non-habitable.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.scene.paint.ColorgetColor()Get the color representing this tag.static TaggetDefault()Give the defaultBinarytag.intgetSize()Get the number of different tags (e.g.Binarynext()Get the next tag.static BinaryvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Binary[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HABITABLE
public static final Binary HABITABLE
The tag habitable. It will be represented in ImagePatch (a inner class ofController) with green border.
-
NON_HABITABLE
public static final Binary NON_HABITABLE
The tag non-habitable. It will be represented in ImagePatch (a inner class ofController) with blue border.
-
-
Method Detail
-
values
public static Binary[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Binary c : Binary.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Binary valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getDefault
public static Tag getDefault()
Give the defaultBinarytag.- Returns:
- The default
Binarytag.
-
getSize
public int getSize()
Description copied from interface:TagGet the number of different tags (e.g. 2 for binary tag).
-
next
public Binary next()
Description copied from interface:TagGet the next tag. It should be circular: get the exact tag beck after calling this function several times.
-
-