public static enum PLevel.Type extends java.lang.Enum<PLevel.Type>
Enum Constant and Description |
---|
CUSTOM |
PRESSURE
Range: 0 to 1.
|
ROTATION
Pen rotation.
|
SIDE_PRESSURE
Barrel button or wheel.
|
TILT_X
Angle between the Z axis and the projection of the pen against the X-Z plane.
|
TILT_Y
Angle between the Z axis and the projection of the pen against the Y-Z plane.
|
X
X axis value in pixels.
|
Y
Y axis value in pixels.
|
Modifier and Type | Field and Description |
---|---|
static java.util.List<PLevel.Type> |
ALL_VALUES |
static java.util.Set<PLevel.Type> |
MOVEMENT_TYPES |
static java.util.Set<PLevel.Type> |
TILT_TYPES |
static java.util.List<PLevel.Type> |
VALUES |
Modifier and Type | Method and Description |
---|---|
static void |
evalAzimuthXAndAltitude(double[] azimuthXAndAltitude,
double tiltX,
double tiltY)
|
static void |
evalAzimuthXAndAltitude(double[] azimuthXAndAltitude,
PenState pen)
Evaluates the azimuthX and altitude given the tilt values of the pen.
|
static PLevel.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PLevel.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PLevel.Type X
public static final PLevel.Type Y
public static final PLevel.Type PRESSURE
public static final PLevel.Type TILT_X
public static final PLevel.Type TILT_Y
public static final PLevel.Type SIDE_PRESSURE
Warning: Testing needed. The development team does not have an airbrush to test on all platforms. Please help us giving feedback (start a topic on the help forum):
public static final PLevel.Type ROTATION
public static final PLevel.Type CUSTOM
public static final java.util.List<PLevel.Type> ALL_VALUES
public static final java.util.List<PLevel.Type> VALUES
public static final java.util.Set<PLevel.Type> MOVEMENT_TYPES
public static final java.util.Set<PLevel.Type> TILT_TYPES
public static PLevel.Type[] values()
for (PLevel.Type c : PLevel.Type.values()) System.out.println(c);
public static PLevel.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static void evalAzimuthXAndAltitude(double[] azimuthXAndAltitude, PenState pen)
public static void evalAzimuthXAndAltitude(double[] azimuthXAndAltitude, double tiltX, double tiltY)
TILT_X
, TILT_Y
) values. Where:
azimuthX
is the angle between the X axis and the projection of the pen against the X-Y plane. Clockwise direction. Range: -pi/2 and 3*pi/2
And altitude
is the angle between the pen and the projection of the pen against the X-Y plane. Range: 0 to pi/2.