PButton.Type (jpen-2-150301) (original) (raw)
java.lang.Object
- java.lang.Enum<PButton.Type>
- jpen.PButton.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PButton.Type>
Enclosing class:
PButton
public static enum PButton.Type
extends java.lang.Enum<PButton.Type>
Enum Constant Summary
Enum Constants
Enum Constant and Description ALT CENTER CONTROL CUSTOM LEFT ON_PRESSURE Used whenever the Pen PLevel.Type.PRESSURE level value changes from/to 0. RIGHT SHIFT Field Summary
Fields
Modifier and Type Field and Description static java.util.List<PButton.Type> ALL_VALUES static java.util.List<PButton.Type> VALUES Method Summary
All Methods Static Methods Instance Methods Concrete Methods
Modifier and Type Method and Description PButton.TypeGroup getGroup() static PButton.Type valueOf(java.lang.String name) Returns the enum constant of this type with the specified name. static PButton.Type[] values() Returns an array containing the constants of this enum type, in the order they are declared. * ### Methods inherited from class java.lang.Enum `clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf` * ### Methods inherited from class java.lang.Object `getClass, notify, notifyAll, wait, wait, wait`
Enum Constant Detail
* #### LEFT public static final [PButton.Type](../jpen/PButton.Type.html "enum in jpen") [LEFT](../src-html/jpen/PButton.Type.html#line.34) * #### CENTER public static final [PButton.Type](../jpen/PButton.Type.html "enum in jpen") [CENTER](../src-html/jpen/PButton.Type.html#line.34) * #### RIGHT public static final [PButton.Type](../jpen/PButton.Type.html "enum in jpen") [RIGHT](../src-html/jpen/PButton.Type.html#line.34) * #### ON\_PRESSURE public static final [PButton.Type](../jpen/PButton.Type.html "enum in jpen") [ON_PRESSURE](../src-html/jpen/PButton.Type.html#line.38) * #### CONTROL public static final [PButton.Type](../jpen/PButton.Type.html "enum in jpen") [CONTROL](../src-html/jpen/PButton.Type.html#line.40) * #### SHIFT public static final [PButton.Type](../jpen/PButton.Type.html "enum in jpen") [SHIFT](../src-html/jpen/PButton.Type.html#line.40) * #### ALT public static final [PButton.Type](../jpen/PButton.Type.html "enum in jpen") [ALT](../src-html/jpen/PButton.Type.html#line.40) * #### CUSTOM public static final [PButton.Type](../jpen/PButton.Type.html "enum in jpen") [CUSTOM](../src-html/jpen/PButton.Type.html#line.45)
Field Detail
* #### ALL\_VALUES public static final java.util.List<[PButton.Type](../jpen/PButton.Type.html "enum in jpen")> [ALL_VALUES](../src-html/jpen/PButton.Type.html#line.58) * #### VALUES public static final java.util.List<[PButton.Type](../jpen/PButton.Type.html "enum in jpen")> [VALUES](../src-html/jpen/PButton.Type.html#line.59)
Method Detail
* #### values public static [PButton.Type](../jpen/PButton.Type.html "enum in jpen")[] [values](../src-html/jpen/PButton.Type.html#line.58)() 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 (PButton.Type c : PButton.Type.values()) System.out.println(c); Returns: an array containing the constants of this enum type, in the order they are declared * #### valueOf public static [PButton.Type](../jpen/PButton.Type.html "enum in jpen") [valueOf](../src-html/jpen/PButton.Type.html#line.58)(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 name `java.lang.NullPointerException` \- if the argument is null * #### getGroup public [PButton.TypeGroup](../jpen/PButton.TypeGroup.html "enum in jpen") [getGroup](../src-html/jpen/PButton.Type.html#line.54)()