Class PolygonOptions

java.lang.Object
com.trimblemaps.mapsdk.annotations.PolygonOptions
All Implemented Interfaces:
android.os.Parcelable

@Deprecated public final class PolygonOptions extends Object implements android.os.Parcelable
Deprecated.
Use TrimbleMaps Annotation Plugin instead
Builder for composing Polygon objects.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface android.os.Parcelable

    android.os.Parcelable.ClassLoaderCreator<T extends Object>, android.os.Parcelable.Creator<T extends Object>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final android.os.Parcelable.Creator<PolygonOptions>
    Deprecated.
     

    Fields inherited from interface android.os.Parcelable

    CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Defines options for a polygon.
  • Method Summary

    Modifier and Type
    Method
    Description
    add(com.trimblemaps.mapsdk.geometry.LatLng point)
    Deprecated.
    Adds a vertex to the outline of the polygon being built.
    add(com.trimblemaps.mapsdk.geometry.LatLng... points)
    Deprecated.
    Adds vertices to the outline of the polygon being built.
    addAll(Iterable<com.trimblemaps.mapsdk.geometry.LatLng> points)
    Deprecated.
    Adds vertices to the outline of the polygon being built.
    addAllHoles(Iterable<List<com.trimblemaps.mapsdk.geometry.LatLng>> holes)
    Deprecated.
    Adds holes to the outline of the polygon being built.
    addHole(List<com.trimblemaps.mapsdk.geometry.LatLng> hole)
    Deprecated.
    Adds a hole to the outline of the polygon being built.
    addHole(List<com.trimblemaps.mapsdk.geometry.LatLng>... holes)
    Deprecated.
    Adds holes to the outline of the polygon being built.
    alpha(float alpha)
    Deprecated.
    Set the alpha value of the polyline.
    int
    Deprecated.
    Describe the kinds of special objects contained in this Parcelable's marshalled representation.
    boolean
    Deprecated.
    Compares this PolygonOptions object with another PolygonOptions and determines if their color, alpha, stroke color, and vertices match.
    fillColor(int color)
    Deprecated.
    Specifies the polygon's fill color, as 32-bit ARGB.
    float
    Deprecated.
    Gets the alpha set for this PolygonOptions object.
    int
    Deprecated.
    Gets the fill color set for this PolygonOptions object.
    List<List<com.trimblemaps.mapsdk.geometry.LatLng>>
    Deprecated.
    Gets the holes set for this PolygonOptions object.
    List<com.trimblemaps.mapsdk.geometry.LatLng>
    Deprecated.
    Gets the points set for this PolygonOptions object.
    Deprecated.
    Do not use this method.
    int
    Deprecated.
    Gets the stroke color set for this PolygonOptions object.
    int
    Deprecated.
    Gives an integer which can be used as the bucket number for storing elements of the set/map.
    strokeColor(int color)
    Deprecated.
    Specifies the polygon's stroke color, as 32-bit ARGB.
    void
    writeToParcel(android.os.Parcel out, int flags)
    Deprecated.
    Flatten this object in to a Parcel.

    Methods inherited from class java.lang.Object

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

    • CREATOR

      public static final android.os.Parcelable.Creator<PolygonOptions> CREATOR
      Deprecated.
  • Constructor Details

    • PolygonOptions

      public PolygonOptions()
      Deprecated.
      Defines options for a polygon.
  • Method Details

    • describeContents

      public int describeContents()
      Deprecated.
      Describe the kinds of special objects contained in this Parcelable's marshalled representation.
      Specified by:
      describeContents in interface android.os.Parcelable
      Returns:
      integer 0.
    • writeToParcel

      public void writeToParcel(android.os.Parcel out, int flags)
      Deprecated.
      Flatten this object in to a Parcel.
      Specified by:
      writeToParcel in interface android.os.Parcelable
      Parameters:
      out - The Parcel in which the object should be written.
      flags - Additional flags about how the object should be written. May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.
    • add

      @NonNull public PolygonOptions add(com.trimblemaps.mapsdk.geometry.LatLng point)
      Deprecated.
      Adds a vertex to the outline of the polygon being built.
      Parameters:
      point - LatLng point to be added to polygon geometry.
      Returns:
      This PolygonOptions object with the given point added to the outline.
    • add

      @NonNull public PolygonOptions add(com.trimblemaps.mapsdk.geometry.LatLng... points)
      Deprecated.
      Adds vertices to the outline of the polygon being built.
      Parameters:
      points - LatLng points to be added to polygon geometry.
      Returns:
      This PolygonOptions object with the given points added to the outline.
    • addAll

      @NonNull public PolygonOptions addAll(Iterable<com.trimblemaps.mapsdk.geometry.LatLng> points)
      Deprecated.
      Adds vertices to the outline of the polygon being built.
      Parameters:
      points - Iterable list made up of LatLng points defining the polygon geometry
      Returns:
      This PolygonOptions object with the given points added to the outline.
    • addHole

      @NonNull public PolygonOptions addHole(List<com.trimblemaps.mapsdk.geometry.LatLng> hole)
      Deprecated.
      Adds a hole to the outline of the polygon being built.
      Parameters:
      hole - List list made up of LatLng points defining the hole
      Returns:
      This PolygonOptions object with the given hole added to the outline.
    • addHole

      @NonNull public PolygonOptions addHole(List<com.trimblemaps.mapsdk.geometry.LatLng>... holes)
      Deprecated.
      Adds holes to the outline of the polygon being built.
      Parameters:
      holes - List list made up of LatLng holes to be added to polygon geometry
      Returns:
      This PolygonOptions object with the given holes added to the outline.
    • addAllHoles

      @NonNull public PolygonOptions addAllHoles(Iterable<List<com.trimblemaps.mapsdk.geometry.LatLng>> holes)
      Deprecated.
      Adds holes to the outline of the polygon being built.
      Parameters:
      holes - Iterable list made up of List list of LatLng holes defining the hole geometry
      Returns:
      This PolygonOptions object with the given holes added to the outline.
    • alpha

      @NonNull public PolygonOptions alpha(float alpha)
      Deprecated.
      Set the alpha value of the polyline.
      Parameters:
      alpha - float value between 0 (not visible) and 1.
      Returns:
      This PolygonOptions object with the given polygon alpha value.
    • getAlpha

      public float getAlpha()
      Deprecated.
      Gets the alpha set for this PolygonOptions object.
      Returns:
      float value between 0 and 1 defining the alpha.
    • fillColor

      @NonNull public PolygonOptions fillColor(int color)
      Deprecated.
      Specifies the polygon's fill color, as 32-bit ARGB. The default color is black.
      Parameters:
      color - 32-bit ARGB color.
      Returns:
      This PolylineOptions object with a new color set.
    • getFillColor

      public int getFillColor()
      Deprecated.
      Gets the fill color set for this PolygonOptions object.
      Returns:
      The fill color of the polygon in ARGB format.
    • getPolygon

      public Polygon getPolygon()
      Deprecated.
      Do not use this method. Used internally by the SDK.
      Returns:
      Polygon the Polygon to return
    • strokeColor

      @NonNull public PolygonOptions strokeColor(int color)
      Deprecated.
      Specifies the polygon's stroke color, as 32-bit ARGB. The default color is black.
      Parameters:
      color - 32-bit ARGB color.
      Returns:
      This PolygonOptions object with a new stroke color set.
    • getStrokeColor

      public int getStrokeColor()
      Deprecated.
      Gets the stroke color set for this PolygonOptions object.
      Returns:
      The stroke color of the polygon in ARGB format.
    • getPoints

      @NonNull public List<com.trimblemaps.mapsdk.geometry.LatLng> getPoints()
      Deprecated.
      Gets the points set for this PolygonOptions object.
      Returns:
      The list made up of LatLng points defining the polygon.
    • getHoles

      @NonNull public List<List<com.trimblemaps.mapsdk.geometry.LatLng>> getHoles()
      Deprecated.
      Gets the holes set for this PolygonOptions object.
      Returns:
      The list made up of List of List of LatLng points defining the holes.
    • equals

      public boolean equals(@Nullable Object o)
      Deprecated.
      Compares this PolygonOptions object with another PolygonOptions and determines if their color, alpha, stroke color, and vertices match.
      Overrides:
      equals in class Object
      Parameters:
      o - Another PolygonOptions to compare with this object.
      Returns:
      True if color, alpha, stroke color, vertices and holes match this PolygonOptions PolygonOptions object. Else, 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.