-
public abstract class Annotation<T extends Geometry>
-
-
Field Summary
Fields Modifier and Type Field Description protected Tgeometryprivate booleanisDraggable
-
Method Summary
Modifier and Type Method Description TgetGeometry()Get the geometry of an annotation, type of geometry returned depends on the generic attribute. voidsetGeometry(T geometry)Set the geometry of an annotation, geometry type depends on the generic attribute. booleanisDraggable()Returns whether this annotation is draggable, meaning it can be dragged across the screen when touched and moved. longgetId()Returns this annotation's internal ID. voidsetDraggable(boolean draggable)Set whether this annotation should be draggable,meaning it can be dragged across the screen when touched and moved. voidsetData(@Nullable() JsonElement jsonElement)Set the arbitrary json data of the annotation. JsonElementgetData()Get the arbitrary json object data of the annotation. booleanequals(Object o)inthashCode()StringtoString()-
-
Method Detail
-
getGeometry
T getGeometry()
Get the geometry of an annotation, type of geometry returned depends on the generic attribute.
-
setGeometry
void setGeometry(T geometry)
Set the geometry of an annotation, geometry type depends on the generic attribute.
- Parameters:
geometry- an instance of a geometry type
-
isDraggable
boolean isDraggable()
Returns whether this annotation is draggable, meaning it can be dragged across the screen when touched and moved.
-
getId
long getId()
Returns this annotation's internal ID.
-
setDraggable
void setDraggable(boolean draggable)
Set whether this annotation should be draggable,meaning it can be dragged across the screen when touched and moved.
- Parameters:
draggable- should be draggable
-
setData
void setData(@Nullable() JsonElement jsonElement)
Set the arbitrary json data of the annotation.
- Parameters:
jsonElement- the arbitrary json object data
-
hashCode
int hashCode()
-
-
-
-