-
- All Implemented Interfaces:
public class TouchedAnnotation
* TouchedAnnotation - class describing an annotation that has been touched, and the coordinates of the touch inside the Texture, which computed internally with the origin in top-left corner Copyright reserved by telenav 2020.
-
-
Field Summary
Fields Modifier and Type Field Description public final Annotation
annotation
public final int
touchedInsideX
public final int
touchedInsideY
-
Constructor Summary
Constructors Constructor Description TouchedAnnotation(Annotation annotation, int touchedInsideX, int touchedInsideY)
-
Method Summary
Modifier and Type Method Description static TouchedAnnotation
createTouchedAnnotation(@NonNull() Annotation annotation, int touchedInsideX, int touchedInsideY)
Create a TouchedAnnotation object from an Annotation object, and the x and y coordinates of the touch event. -
-
Constructor Detail
-
TouchedAnnotation
TouchedAnnotation(Annotation annotation, int touchedInsideX, int touchedInsideY)
-
-
Method Detail
-
createTouchedAnnotation
static TouchedAnnotation createTouchedAnnotation(@NonNull() Annotation annotation, int touchedInsideX, int touchedInsideY)
Create a TouchedAnnotation object from an Annotation object, and the x and y coordinates of the touch event.
- Parameters:
annotation
- Annotation - The annotation that was touched.touchedInsideX
- The X coordinate of the offset relative to the texture size.touchedInsideY
- The Y coordinate of the offset relative to the texture size.
-
-
-
-