Class PolylineOptions

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

@Deprecated public final class PolylineOptions extends Object implements android.os.Parcelable
Deprecated.
Use TrimbleMaps Annotation Plugin instead
Builder for composing Polyline 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<PolylineOptions>
    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 polyline.
  • Method Summary

    Modifier and Type
    Method
    Description
    add(com.trimblemaps.mapsdk.geometry.LatLng point)
    Deprecated.
    Adds a vertex to the end of the polyline being built.
    add(com.trimblemaps.mapsdk.geometry.LatLng... points)
    Deprecated.
    Adds vertices to the end of the polyline being built.
    addAll(Iterable<com.trimblemaps.mapsdk.geometry.LatLng> points)
    Deprecated.
    Adds vertices to the end of the polyline being built.
    alpha(float alpha)
    Deprecated.
    Set the alpha value of the polyline.
    color(int color)
    Deprecated.
    Sets the color of the polyline as a 32-bit ARGB color.
    int
    Deprecated.
    Describe the kinds of special objects contained in this Parcelable's marshalled representation.
    boolean
    Deprecated.
    Compares this PolylineOptions object with another PolylineOptions and determines if their color, alpha, width, and vertices match.
    float
    Deprecated.
    Gets the alpha set for this PolylineOptions object.
    int
    Deprecated.
    Gets the color set for this PolylineOptions object.
    List<com.trimblemaps.mapsdk.geometry.LatLng>
    Deprecated.
    Gets the points set for this PolylineOptions object.
    Deprecated.
    Do not use this method.
    float
    Deprecated.
    Gets the width set for this PolylineOptions object.
    int
    Deprecated.
    Gives an integer which can be used as the bucket number for storing elements of the set/map.
    width(float width)
    Deprecated.
    Sets the width of the polyline in screen pixels.
    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<PolylineOptions> CREATOR
      Deprecated.
  • Constructor Details

    • PolylineOptions

      public PolylineOptions()
      Deprecated.
      Defines options for a polyline.
  • 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 PolylineOptions add(com.trimblemaps.mapsdk.geometry.LatLng point)
      Deprecated.
      Adds a vertex to the end of the polyline being built.
      Parameters:
      point - LatLng point to be added to polyline geometry.
      Returns:
      This PolylineOptions object with the given point on the end.
    • add

      @NonNull public PolylineOptions add(com.trimblemaps.mapsdk.geometry.LatLng... points)
      Deprecated.
      Adds vertices to the end of the polyline being built.
      Parameters:
      points - LatLng points defining the polyline geometry.
      Returns:
      This PolylineOptions object with the given point on the end.
    • addAll

      @NonNull public PolylineOptions addAll(Iterable<com.trimblemaps.mapsdk.geometry.LatLng> points)
      Deprecated.
      Adds vertices to the end of the polyline being built.
      Parameters:
      points - Iterable list made up of LatLng points defining the polyline geometry
      Returns:
      This PolylineOptions object with the given points on the end.
    • alpha

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

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

      @NonNull public PolylineOptions color(int color)
      Deprecated.
      Sets the color of the polyline as a 32-bit ARGB color. The default color is black.
      Parameters:
      color - 32-bit ARGB color.
      Returns:
      This PolylineOptions object with a new color set.
    • getColor

      public int getColor()
      Deprecated.
      Gets the color set for this PolylineOptions object.
      Returns:
      The color of the polyline in ARGB format.
    • getPolyline

      public Polyline getPolyline()
      Deprecated.
      Do not use this method. Used internally by the SDK.
      Returns:
      PolyLine The polyline build by this class.
    • getWidth

      public float getWidth()
      Deprecated.
      Gets the width set for this PolylineOptions object.
      Returns:
      The width of the polyline in screen pixels.
    • width

      @NonNull public PolylineOptions width(float width)
      Deprecated.
      Sets the width of the polyline in screen pixels. The default is 10.
      Parameters:
      width - float value defining width of polyline using unit pixels.
      Returns:
      This PolylineOptions object with a new width set.
    • getPoints

      public List<com.trimblemaps.mapsdk.geometry.LatLng> getPoints()
      Deprecated.
      Gets the points set for this PolylineOptions object.
      Returns:
      a List of LatLngs specifying the vertices of the polyline.
    • equals

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