Class Annotation

java.lang.Object
com.trimblemaps.mapsdk.annotations.Annotation
All Implemented Interfaces:
Comparable<Annotation>
Direct Known Subclasses:
BasePointCollection, Marker

@Deprecated public abstract class Annotation extends Object implements Comparable<Annotation>
Deprecated.
Use TrimbleMaps Annotation Plugin instead
Annotation is an overlay on top of a Map.

Known subclasses are Polygon, Polyline and Marker.

This class manages attachment to a map and identification, but does not require content to be placed at a geographical point.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected MapView
    Deprecated.
     
    protected TrimbleMapsMap
    Deprecated.
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    compareTo(Annotation annotation)
    Deprecated.
    Compares this Annotation object with another Annotation.
    boolean
    equals(Object object)
    Deprecated.
    Checks if this Annotation object is equal to another Annotation.
    long
    Deprecated.
    Gets the annotation's unique ID.
    protected MapView
    Deprecated.
    Gets the hosting map view.
    protected TrimbleMapsMap
    Deprecated.
    Gets the hosting TrimbleMapsMap.
    int
    Deprecated.
    Gives an integer which can be used as the bucket number for storing elements of the set/map.
    void
    Deprecated.
    Do not use this method, used internally by the SDK.
    void
    setId(long id)
    Deprecated.
    Do not use this method, used internally by the SDK.
    void
    Deprecated.
    Do not use this method, used internally by the SDK.
    void
    Deprecated.
    Do not use this method, used internally by the SDK.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • trimbleMapsMap

      protected TrimbleMapsMap trimbleMapsMap
      Deprecated.
    • mapView

      protected MapView mapView
      Deprecated.
  • Constructor Details

    • Annotation

      protected Annotation()
      Deprecated.
  • Method Details

    • getId

      public long getId()
      Deprecated.

      Gets the annotation's unique ID.

      This ID is unique for a MapView instance and is suitable for associating your own extra data with.
      Returns:
      the assigned id.
    • remove

      public void remove()
      Deprecated.
      Do not use this method, used internally by the SDK.
    • setId

      public void setId(long id)
      Deprecated.
      Do not use this method, used internally by the SDK.
      Parameters:
      id - the assigned id
    • setTrimbleMapsMap

      public void setTrimbleMapsMap(TrimbleMapsMap trimbleMapsMap)
      Deprecated.
      Do not use this method, used internally by the SDK.
      Parameters:
      trimbleMapsMap - the hosting TrimbleMapsMap
    • getTrimbleMapsMap

      protected TrimbleMapsMap getTrimbleMapsMap()
      Deprecated.
      Gets the hosting TrimbleMapsMap.
      Returns:
      the TrimbleMapsMap
    • setMapView

      public void setMapView(MapView mapView)
      Deprecated.
      Do not use this method, used internally by the SDK.
      Parameters:
      mapView - the hosting map view
    • getMapView

      protected MapView getMapView()
      Deprecated.
      Gets the hosting map view.
      Returns:
      The MapView
    • compareTo

      public int compareTo(@NonNull Annotation annotation)
      Deprecated.
      Compares this Annotation object with another Annotation.
      Specified by:
      compareTo in interface Comparable<Annotation>
      Parameters:
      annotation - Another Annotation to compare with this object.
      Returns:
      returns 0 if id's match, 1 if id is lower, -1 if id is higher of another Annotation
    • equals

      public boolean equals(@Nullable Object object)
      Deprecated.
      Checks if this Annotation object is equal to another Annotation.
      Overrides:
      equals in class Object
      Parameters:
      object - Another Annotation to check equality with this object.
      Returns:
      returns true both id's match else returns false.
    • hashCode

      public int hashCode()
      Deprecated.
      Gives an integer which can be used as the bucket number for storing elements of the set/map. This bucket number is the address of the element inside the set/map. There's no guarantee that this hash value will be consistent between different Java implementations, or even between different execution runs of the same program.
      Overrides:
      hashCode in class Object
      Returns:
      integer value you can use for storing element.