Class TouchInit
- java.lang.Object
- 
- org.pepstock.charba.client.commons.NativeObjectContainer
- 
- org.pepstock.charba.client.dom.events.TouchInit
 
 
- 
 public final class TouchInit extends NativeObjectContainer Initialization object for aTouch.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Constructor SummaryConstructors Constructor Description TouchInit(double identifier, BaseHtmlElement target)Creates an object with identifier and target, both mandatory.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetClientX()Returns the horizontal position of the touch on the client window of user's screen, excluding any scroll offset.doublegetClientY()Returns the vertical position of the touch on the client window of the user's screen, excluding any scroll offset.doublegetForce()Returns the amount of pressure being applied to the surface by the user, as a double between 0.0 (no pressure) and 1.0 (maximum pressure).doublegetIdentifier()Returns a unique identifier for this touch object.
 A given touch point (say, by a finger) will have the same identifier for the duration of its movement around the surface.
 This lets you ensure that you're tracking the same touch all the time.doublegetPageX()Returns the horizontal position of the touch on the client window of user's screen, including any scroll offset.doublegetPageY()Returns the horizontal position of the touch on the client window of user's screen, including any scroll offset.doublegetRadiusX()Returns the radius of the ellipse which most closely circumscribes the touching area (e.g.doublegetRadiusY()Returns the radius of the ellipse which most closely circumscribes the touching area (e.g.doublegetRotationAngle()Returns the angle (in degrees) that the ellipse described by radiusX and radiusY must be rotated, clockwise, to most accurately cover the area of contact between the user and the surface.doublegetScreenX()Returns the horizontal position of the touch on the user's screen.doublegetScreenY()Returns the vertical position of the touch on the user's screen.BaseHtmlElementgetTarget()Returns the element on which the touch point started when it was first placed on the surface, even if the touch point has since moved outside the interactive area of that element or even been removed from the document.voidsetClientX(double clientX)Sets the horizontal position of the touch on the client window of user's screen, excluding any scroll offset.voidsetClientY(double clientY)Returns the vertical position of the touch on the client window of the user's screen, excluding any scroll offset.voidsetForce(double force)Sets the amount of pressure being applied to the surface by the user, as a double between 0.0 (no pressure) and 1.0 (maximum pressure).voidsetIdentifier(double identifier)Sets a unique identifier for this touch object.
 A given touch point (say, by a finger) will have the same identifier for the duration of its movement around the surface.
 This lets you ensure that you're tracking the same touch all the time.voidsetPageX(double pageX)Sets the horizontal position of the touch on the client window of user's screen, including any scroll offset.voidsetPageY(double pageY)Sets the horizontal position of the touch on the client window of user's screen, including any scroll offset.voidsetRadiusX(double radiusX)Sets the radius of the ellipse which most closely circumscribes the touching area (e.g.voidsetRadiusY(double radiusY)Sets the radius of the ellipse which most closely circumscribes the touching area (e.g.voidsetRotationAngle(double rotation)Sets the angle (in degrees) that the ellipse described by radiusX and radiusY must be rotated, clockwise, to most accurately cover the area of contact between the user and the surface.
 The value must be greater than or equal to 0 and less than 90.voidsetScreenX(double screenX)Setss the horizontal position of the touch on the user's screen.voidsetScreenY(double screenY)Sets the vertical position of the touch on the user's screen.voidsetTarget(BaseHtmlElement target)Sets the element on which the touch point started when it was first placed on the surface, even if the touch point has since moved outside the interactive area of that element or even been removed from the document.- 
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainercheckDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
 
- 
 
- 
- 
- 
Constructor Detail- 
TouchInitpublic TouchInit(double identifier, BaseHtmlElement target)Creates an object with identifier and target, both mandatory.- Parameters:
- identifier- a unique identifier for this touch object
- target- the element on which the touch point started when it was first placed on the surface
 
 
- 
 - 
Method Detail- 
getIdentifierpublic double getIdentifier() Returns a unique identifier for this touch object.
 A given touch point (say, by a finger) will have the same identifier for the duration of its movement around the surface.
 This lets you ensure that you're tracking the same touch all the time.- Returns:
- a unique identifier for this touch object
 
 - 
setIdentifierpublic void setIdentifier(double identifier) Sets a unique identifier for this touch object.
 A given touch point (say, by a finger) will have the same identifier for the duration of its movement around the surface.
 This lets you ensure that you're tracking the same touch all the time.- Parameters:
- identifier- a unique identifier for this touch object
 
 - 
getTargetpublic BaseHtmlElement getTarget() Returns the element on which the touch point started when it was first placed on the surface, even if the touch point has since moved outside the interactive area of that element or even been removed from the document.- Returns:
- the element on which the touch point started when it was first placed on the surface
 
 - 
setTargetpublic void setTarget(BaseHtmlElement target) Sets the element on which the touch point started when it was first placed on the surface, even if the touch point has since moved outside the interactive area of that element or even been removed from the document.- Parameters:
- target- the element on which the touch point started when it was first placed on the surface
 
 - 
getClientXpublic double getClientX() Returns the horizontal position of the touch on the client window of user's screen, excluding any scroll offset.- Returns:
- the horizontal position of the touch on the client window of user's screen, excluding any scroll offset
 
 - 
setClientXpublic void setClientX(double clientX) Sets the horizontal position of the touch on the client window of user's screen, excluding any scroll offset.- Parameters:
- clientX- the horizontal position of the touch on the client window of user's screen, excluding any scroll offset
 
 - 
getClientYpublic double getClientY() Returns the vertical position of the touch on the client window of the user's screen, excluding any scroll offset.- Returns:
- the vertical position of the touch on the client window of the user's screen, excluding any scroll offset
 
 - 
setClientYpublic void setClientY(double clientY) Returns the vertical position of the touch on the client window of the user's screen, excluding any scroll offset.- Parameters:
- clientY- the vertical position of the touch on the client window of the user's screen, excluding any scroll offset
 
 - 
getScreenXpublic double getScreenX() Returns the horizontal position of the touch on the user's screen.- Returns:
- the horizontal position of the touch on the user's screen.
 
 - 
setScreenXpublic void setScreenX(double screenX) Setss the horizontal position of the touch on the user's screen.- Parameters:
- screenX- the horizontal position of the touch on the user's screen.
 
 - 
getScreenYpublic double getScreenY() Returns the vertical position of the touch on the user's screen.- Returns:
- the vertical position of the touch on the user's screen
 
 - 
setScreenYpublic void setScreenY(double screenY) Sets the vertical position of the touch on the user's screen.- Parameters:
- screenY- the vertical position of the touch on the user's screen
 
 - 
getPageXpublic double getPageX() Returns the horizontal position of the touch on the client window of user's screen, including any scroll offset.- Returns:
- the horizontal position of the touch on the client window of user's screen, including any scroll offset
 
 - 
setPageXpublic void setPageX(double pageX) Sets the horizontal position of the touch on the client window of user's screen, including any scroll offset.- Parameters:
- pageX- the horizontal position of the touch on the client window of user's screen, including any scroll offset
 
 - 
getPageYpublic double getPageY() Returns the horizontal position of the touch on the client window of user's screen, including any scroll offset.- Returns:
- the horizontal position of the touch on the client window of user's screen, including any scroll offset
 
 - 
setPageYpublic void setPageY(double pageY) Sets the horizontal position of the touch on the client window of user's screen, including any scroll offset.- Parameters:
- pageY- the horizontal position of the touch on the client window of user's screen, including any scroll offset
 
 - 
getRadiusXpublic double getRadiusX() Returns the radius of the ellipse which most closely circumscribes the touching area (e.g. finger, stylus) along the axis indicated by rotationAngle.- Returns:
- the radius of the ellipse which most closely circumscribes the touching area (e.g. finger, stylus) along the axis indicated by rotationAngle
 
 - 
setRadiusXpublic void setRadiusX(double radiusX) Sets the radius of the ellipse which most closely circumscribes the touching area (e.g. finger, stylus) along the axis indicated by rotationAngle.- Parameters:
- radiusX- the radius of the ellipse which most closely circumscribes the touching area (e.g. finger, stylus) along the axis indicated by rotationAngle
 
 - 
getRadiusYpublic double getRadiusY() Returns the radius of the ellipse which most closely circumscribes the touching area (e.g. finger, stylus) along the axis perpendicular to that indicated by rotationAngle.- Returns:
- the radius of the ellipse which most closely circumscribes the touching area (e.g. finger, stylus) along the axis perpendicular to that indicated by rotationAngle
 
 - 
setRadiusYpublic void setRadiusY(double radiusY) Sets the radius of the ellipse which most closely circumscribes the touching area (e.g. finger, stylus) along the axis perpendicular to that indicated by rotationAngle.- Parameters:
- radiusY- the radius of the ellipse which most closely circumscribes the touching area (e.g. finger, stylus) along the axis perpendicular to that indicated by rotationAngle
 
 - 
getRotationAnglepublic double getRotationAngle() Returns the angle (in degrees) that the ellipse described by radiusX and radiusY must be rotated, clockwise, to most accurately cover the area of contact between the user and the surface.- Returns:
- the angle (in degrees) that the ellipse described by radiusX and radiusY must be rotated, clockwise, to most accurately cover the area of contact between the user and the surface
 
 - 
setRotationAnglepublic void setRotationAngle(double rotation) Sets the angle (in degrees) that the ellipse described by radiusX and radiusY must be rotated, clockwise, to most accurately cover the area of contact between the user and the surface.
 The value must be greater than or equal to 0 and less than 90.- Parameters:
- rotation- the angle (in degrees) that the ellipse described by radiusX and radiusY must be rotated, clockwise, to most accurately cover the area of contact between the user and the surface.
 The value must be greater than or equal to 0 and less than 90
 
 - 
getForcepublic double getForce() Returns the amount of pressure being applied to the surface by the user, as a double between 0.0 (no pressure) and 1.0 (maximum pressure).- Returns:
- the amount of pressure being applied to the surface by the user
 
 - 
setForcepublic void setForce(double force) Sets the amount of pressure being applied to the surface by the user, as a double between 0.0 (no pressure) and 1.0 (maximum pressure).- Parameters:
- force- the amount of pressure being applied to the surface by the user
 
 
- 
 
-