Package com.myscript.iink
Enum PointerTool
- java.lang.Object
-
- java.lang.Enum<PointerTool>
-
- com.myscript.iink.PointerTool
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PointerTool>
public enum PointerTool extends java.lang.Enum<PointerTool>
Describes the tools that the pointer types can be associated with.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERASER
HAND
HIGHLIGHTER
PEN
SELECTOR
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PointerTool
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PointerTool[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PEN
public static final PointerTool PEN
-
HAND
public static final PointerTool HAND
-
ERASER
public static final PointerTool ERASER
-
SELECTOR
public static final PointerTool SELECTOR
-
HIGHLIGHTER
public static final PointerTool HIGHLIGHTER
-
-
Method Detail
-
values
public static PointerTool[] 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 (PointerTool c : PointerTool.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PointerTool 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
-
-