Package Torello.Browser.BrowserAPI
Class Input.TouchPoint
- java.lang.Object
-
- Torello.Browser.BaseType<Input.TouchPoint>
-
- Torello.Browser.BrowserAPI.Input.TouchPoint
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BaseType<?>>
- Enclosing class:
- Input
public static class Input.TouchPoint extends BaseType<Input.TouchPoint> implements java.io.Serializable
This Nested Java Class is declared as a "Type", which is similar to a Java Class. The CDP API Specifications list this type among the types, events & commands located in theInputdomain, which may be found within theBrowserAPI.
📌 All browser domain type classes will have a class name that begins with an upper case letter.[No Description Provided by Google]- See Also:
- Serialized Form
Hi-Lited Source-Code:This File's Source Code:
- View Here: Torello/Browser/BrowserAPI/Input.java
- Open New Browser-Tab: Torello/Browser/BrowserAPI/Input.java
File Size: 4,472 Bytes Line Count: 114 '\n' Characters Found
Helper: Equals, HashCode, toJSON, etc
- View Here: Input$$TouchPoint$$.java
- Open New Browser-Tab: Input$$TouchPoint$$.java
File Size: 12,540 Bytes Line Count: 303 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field Description protected static longserialVersionUIDType Fields / Properties (from Google & Browser Specs) Modifier and Type Field Description NumberforceForce (default: 1.0).NumberidIdentifier used to track touch sources between events, must be unique within an event.NumberradiusXX radius of the touch area (default: 1.0).NumberradiusYY radius of the touch area (default: 1.0).NumberrotationAngleRotation angle (default: 0.0).NumbertangentialPressureThe normalized tangential pressure, which has a range of [-1,1] (default: 0).NumbertiltXThe plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0)NumbertiltYThe plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0).IntegertwistThe clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).NumberxX coordinate of the event relative to the main frame's viewport in CSS pixels.NumberyY coordinate of the event relative to the main frame's viewport in CSS pixels.
-
Constructor Summary
Constructors Constructor Description TouchPoint(ReadOnlyList<Boolean> isPresent, Number x, Number y, Number radiusX, Number radiusY, Number rotationAngle, Number force, Number tangentialPressure, Number tiltX, Number tiltY, Integer twist, Number id)Constructor.
-
Method Summary
Static Builder Convert a JsonObject to a POJO Modifier and Type Method Description static Input.TouchPointfromJSON(JsonObject jo)Creates an instance of this class from aJsonObject.Retrieve the Type-Descriptor Singleton-Instance for this Nested Class. Modifier and Type Method Description static NestedDescriptor<Input.TouchPoint>descriptor()Returns this class'sNestedDescriptorsingleton-instance.-
Methods inherited from class Torello.Browser.BaseType
allEnumStrROLs, compareTo, enumStrList, enumStrValidate, enumStrValidateThrow, equals, hashCode, isPresent, optionalsValidate, optionalsValidateThrow, toJSON, toString
-
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
This fulfils the SerialVersion UID requirement for all classes that implement Java'sinterface java.io.Serializable. Using theSerializableImplementation offered by java is very easy, and can make saving program state when debugging a lot easier. It can also be used in place of more complicated systems like "hibernate" to store data as well.- See Also:
- Constant Field Values
-
x
public final java.lang.Number x
X coordinate of the event relative to the main frame's viewport in CSS pixels.
-
y
public final java.lang.Number y
Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
-
radiusX
public final java.lang.Number radiusX
X radius of the touch area (default: 1.0).
OPTIONAL
-
radiusY
public final java.lang.Number radiusY
Y radius of the touch area (default: 1.0).
OPTIONAL
-
rotationAngle
public final java.lang.Number rotationAngle
Rotation angle (default: 0.0).
OPTIONAL
-
force
public final java.lang.Number force
Force (default: 1.0).
OPTIONAL
-
tangentialPressure
public final java.lang.Number tangentialPressure
The normalized tangential pressure, which has a range of [-1,1] (default: 0).
OPTIONALEXPERIMENTAL
-
tiltX
public final java.lang.Number tiltX
The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0)
OPTIONAL
-
tiltY
public final java.lang.Number tiltY
The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0).
OPTIONAL
-
twist
public final java.lang.Integer twist
The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).
OPTIONALEXPERIMENTAL
-
id
public final java.lang.Number id
Identifier used to track touch sources between events, must be unique within an event.
OPTIONAL
-
-
Constructor Detail
-
TouchPoint
public TouchPoint(ReadOnlyList<java.lang.Boolean> isPresent, java.lang.Number x, java.lang.Number y, java.lang.Number radiusX, java.lang.Number radiusY, java.lang.Number rotationAngle, java.lang.Number force, java.lang.Number tangentialPressure, java.lang.Number tiltX, java.lang.Number tiltY, java.lang.Integer twist, java.lang.Number id)
Constructor. Please review this class' fields for documentation.
-
-
Method Detail
-
fromJSON
public static Input.TouchPoint fromJSON(JsonObject jo)
Creates an instance of this class from aJsonObject.- Code:
- Exact Method Body:
return singleton.fromJSON(jo);
-
descriptor
public static NestedDescriptor<Input.TouchPoint> descriptor()
Returns this class'sNestedDescriptorsingleton-instance. class / type.- Code:
- Exact Method Body:
return singleton.descriptor();
-
-