Class PolylineOptions
java.lang.Object
com.trimblemaps.mapsdk.annotations.PolylineOptions
- All Implemented Interfaces:
android.os.Parcelable
Deprecated.
Use TrimbleMaps Annotation Plugin instead
Builder for composing
Polyline objects.-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<PolylineOptions>Deprecated.Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(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.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.intDeprecated.Describe the kinds of special objects contained in this Parcelable's marshalled representation.booleanDeprecated.Compares thisPolylineOptionsobject with anotherPolylineOptionsand determines if their color, alpha, width, and vertices match.floatgetAlpha()Deprecated.Gets the alpha set for thisPolylineOptionsobject.intgetColor()Deprecated.Gets the color set for thisPolylineOptionsobject.List<com.trimblemaps.mapsdk.geometry.LatLng>Deprecated.Gets the points set for thisPolylineOptionsobject.Deprecated.Do not use this method.floatgetWidth()Deprecated.Gets the width set for thisPolylineOptionsobject.inthashCode()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.voidwriteToParcel(android.os.Parcel out, int flags) Deprecated.Flatten this object in to a Parcel.
-
Field Details
-
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:
describeContentsin interfaceandroid.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:
writeToParcelin interfaceandroid.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 orParcelable.PARCELABLE_WRITE_RETURN_VALUE.
-
add
Deprecated.Adds a vertex to the end of the polyline being built.- Parameters:
point-LatLngpoint to be added to polyline geometry.- Returns:
- This
PolylineOptionsobject with the given point on the end.
-
add
Deprecated.Adds vertices to the end of the polyline being built.- Parameters:
points-LatLngpoints defining the polyline geometry.- Returns:
- This
PolylineOptionsobject with the given point on the end.
-
addAll
Deprecated.Adds vertices to the end of the polyline being built.- Parameters:
points-Iterablelist made up ofLatLngpoints defining the polyline geometry- Returns:
- This
PolylineOptionsobject with the given points on the end.
-
alpha
Deprecated.Set the alpha value of the polyline.- Parameters:
alpha- float value between 0 (not visible) and 1.- Returns:
- This
PolylineOptionsobject with the given polyline alpha value.
-
getAlpha
public float getAlpha()Deprecated.Gets the alpha set for thisPolylineOptionsobject.- Returns:
- float value between 0 and 1 defining the alpha.
-
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
PolylineOptionsobject with a new color set.
-
getColor
public int getColor()Deprecated.Gets the color set for thisPolylineOptionsobject.- Returns:
- The color of the polyline in ARGB format.
-
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 thisPolylineOptionsobject.- Returns:
- The width of the polyline in screen pixels.
-
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
PolylineOptionsobject with a new width set.
-
getPoints
Deprecated.Gets the points set for thisPolylineOptionsobject.- Returns:
- a
ListofLatLngs specifying the vertices of the polyline.
-
equals
Deprecated.Compares thisPolylineOptionsobject with anotherPolylineOptionsand determines if their color, alpha, width, and vertices match.- Overrides:
equalsin classObject- Parameters:
o- AnotherPolylineOptionsto compare with this object.- Returns:
- True if color, alpha, width, and vertices match this
PolylineOptionsobject. 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.
-