Package 

Class Annotation


  • 
    public abstract class Annotation<T extends Geometry>
    
                        
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected T geometry
      private boolean isDraggable
    • Method Summary

      Modifier and Type Method Description
      T getGeometry() Get the geometry of an annotation, type of geometry returned depends on the generic attribute.
      void setGeometry(T geometry) Set the geometry of an annotation, geometry type depends on the generic attribute.
      boolean isDraggable() Returns whether this annotation is draggable, meaning it can be dragged across the screen when touched and moved.
      long getId() Returns this annotation's internal ID.
      void setDraggable(boolean draggable) Set whether this annotation should be draggable,meaning it can be dragged across the screen when touched and moved.
      void setData(@Nullable() JsonElement jsonElement) Set the arbitrary json data of the annotation.
      JsonElement getData() Get the arbitrary json object data of the annotation.
      boolean equals(Object o)
      int hashCode()
      String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
      • getData

        @Nullable() JsonElement getData()

        Get the arbitrary json object data of the annotation.