Package Torello.Browser
Class Input.TouchPoint
- java.lang.Object
-
- Torello.Java.JSON.BaseType
-
- Torello.Browser.Input.TouchPoint
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Input
public static class Input.TouchPoint extends BaseType implements java.io.Serializable
[No Description Provided by Google]
- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Browser/Input.java
- Open New Browser-Tab: Torello/Browser/Input.java
File Size: 8,946 Bytes Line Count: 211 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field protected static long
serialVersionUID
For Object Serialization.Type Properties Modifier and Type Field Number
force
Force (default: 1.0).Number
id
Identifier used to track touch sources between events, must be unique within an event.Number
radiusX
X radius of the touch area (default: 1.0).Number
radiusY
Y radius of the touch area (default: 1.0).Number
rotationAngle
Rotation angle (default: 0.0).Number
tangentialPressure
The normalized tangential pressure, which has a range of [-1,1] (default: 0).Integer
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
EXPERIMENTALInteger
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).Integer
twist
The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).Number
x
X coordinate of the event relative to the main frame's viewport in CSS pixels.Number
y
Y coordinate of the event relative to the main frame's viewport in CSS pixels.
-
Constructor Summary
Constructors Constructor Description TouchPoint(Number x, Number y, Number radiusX, Number radiusY, Number rotationAngle, Number force, Number tangentialPressure, Integer tiltX, Integer tiltY, Integer twist, Number id)
ConstructorTouchPoint(JsonObject jo)
JSON Object Constructor
-
Method Summary
Generate Array that Indicates which Parameter are Optional Modifier and Type Method boolean[]
optionals()
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null.Methods: class java.lang.Object Modifier and Type Method boolean
equals(Object other)
Checks whether'this'
equals an input Java-Object
int
hashCode()
Generates a Hash-Code for'this'
instance
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
For Object Serialization. java.io.Serializable- 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).
OPTIONAL
EXPERIMENTAL
-
tiltX
public final java.lang.Integer 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
EXPERIMENTAL
-
tiltY
public final java.lang.Integer 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
EXPERIMENTAL
-
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).
OPTIONAL
EXPERIMENTAL
-
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(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.Integer tiltX, java.lang.Integer tiltY, java.lang.Integer twist, java.lang.Number id)
Constructor- Parameters:
x
- X coordinate of the event relative to the main frame's viewport in CSS pixels.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
- X radius of the touch area (default: 1.0).
OPTIONALradiusY
- Y radius of the touch area (default: 1.0).
OPTIONALrotationAngle
- Rotation angle (default: 0.0).
OPTIONALforce
- Force (default: 1.0).
OPTIONALtangentialPressure
- The normalized tangential pressure, which has a range of [-1,1] (default: 0).
OPTIONAL
EXPERIMENTALtiltX
- 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
EXPERIMENTALtiltY
- 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
EXPERIMENTALtwist
- The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).
OPTIONAL
EXPERIMENTALid
- Identifier used to track touch sources between events, must be unique within an event.
OPTIONAL
-
TouchPoint
public TouchPoint(JsonObject jo)
JSON Object Constructor- Parameters:
jo
- A Json-Object having data about an instance of'TouchPoint'
.
-
-
Method Detail
-
optionals
public boolean[] optionals()
Description copied from class:BaseType
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null. When binding aJsonObject
to a Java-Object, if some of the expected fields for the Java-Object map to Properties which might be left-out or omitted, then that may be indicated by setting that fields array positionTRUE
.
NOTE: This array should have a length equal to the number of fields contained by the Java Object. The first boolean in the array should specify whether the first Object Field may by absent. The second boolean should specify whether the second Object Field is optional in the JSON - and so on and so forth...
-
equals
public boolean equals(java.lang.Object other)
Checks whether'this'
equals an input Java-Object
- Overrides:
equals
in classjava.lang.Object
- Code:
- Exact Method Body:
if (other == null) return false; if (other.getClass() != this.getClass()) return false; TouchPoint o = (TouchPoint) other; return Objects.equals(this.x, o.x) && Objects.equals(this.y, o.y) && Objects.equals(this.radiusX, o.radiusX) && Objects.equals(this.radiusY, o.radiusY) && Objects.equals(this.rotationAngle, o.rotationAngle) && Objects.equals(this.force, o.force) && Objects.equals(this.tangentialPressure, o.tangentialPressure) && Objects.equals(this.tiltX, o.tiltX) && Objects.equals(this.tiltY, o.tiltY) && Objects.equals(this.twist, o.twist) && Objects.equals(this.id, o.id);
-
hashCode
public int hashCode()
Generates a Hash-Code for'this'
instance- Overrides:
hashCode
in classjava.lang.Object
- Code:
- Exact Method Body:
return Objects.hashCode(this.x) + Objects.hashCode(this.y) + Objects.hashCode(this.radiusX) + Objects.hashCode(this.radiusY) + Objects.hashCode(this.rotationAngle) + Objects.hashCode(this.force) + Objects.hashCode(this.tangentialPressure) + Objects.hashCode(this.tiltX) + Objects.hashCode(this.tiltY) + Objects.hashCode(this.twist) + Objects.hashCode(this.id);
-
-