Class PolygonOptions
java.lang.Object
com.trimblemaps.mapsdk.annotations.PolygonOptions
- All Implemented Interfaces:
android.os.Parcelable
Deprecated.
Use TrimbleMaps Annotation Plugin instead
Builder for composing
Polygon objects.-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<PolygonOptions>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 outline of the polygon being built.add(com.trimblemaps.mapsdk.geometry.LatLng... points) Deprecated.Adds vertices to the outline of the polygon being built.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.Deprecated.Adds a hole to the outline of the polygon being built.Deprecated.Adds holes to the outline of the polygon being built.alpha(float alpha) Deprecated.Set the alpha value of the polyline.intDeprecated.Describe the kinds of special objects contained in this Parcelable's marshalled representation.booleanDeprecated.Compares thisPolygonOptionsobject with anotherPolygonOptionsand determines if their color, alpha, stroke color, and vertices match.fillColor(int color) Deprecated.Specifies the polygon's fill color, as 32-bit ARGB.floatgetAlpha()Deprecated.Gets the alpha set for thisPolygonOptionsobject.intDeprecated.Gets the fill color set for thisPolygonOptionsobject.getHoles()Deprecated.Gets the holes set for thisPolygonOptionsobject.List<com.trimblemaps.mapsdk.geometry.LatLng>Deprecated.Gets the points set for thisPolygonOptionsobject.Deprecated.Do not use this method.intDeprecated.Gets the stroke color set for thisPolygonOptionsobject.inthashCode()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.voidwriteToParcel(android.os.Parcel out, int flags) Deprecated.Flatten this object in to a Parcel.
-
Field Details
-
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:
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 outline of the polygon being built.- Parameters:
point-LatLngpoint to be added to polygon geometry.- Returns:
- This
PolygonOptionsobject with the given point added to the outline.
-
add
Deprecated.Adds vertices to the outline of the polygon being built.- Parameters:
points-LatLngpoints to be added to polygon geometry.- Returns:
- This
PolygonOptionsobject with the given points added to the outline.
-
addAll
Deprecated.Adds vertices to the outline of the polygon being built.- Parameters:
points-Iterablelist made up ofLatLngpoints defining the polygon geometry- Returns:
- This
PolygonOptionsobject with the given points added to the outline.
-
addHole
Deprecated.Adds a hole to the outline of the polygon being built.- Parameters:
hole-Listlist made up ofLatLngpoints defining the hole- Returns:
- This
PolygonOptionsobject with the given hole added to the outline.
-
addHole
Deprecated.Adds holes to the outline of the polygon being built.- Parameters:
holes-Listlist made up ofLatLngholes to be added to polygon geometry- Returns:
- This
PolygonOptionsobject 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-Iterablelist made up ofListlist ofLatLngholes defining the hole geometry- Returns:
- This
PolygonOptionsobject with the given holes added to the outline.
-
alpha
Deprecated.Set the alpha value of the polyline.- Parameters:
alpha- float value between 0 (not visible) and 1.- Returns:
- This
PolygonOptionsobject with the given polygon alpha value.
-
getAlpha
public float getAlpha()Deprecated.Gets the alpha set for thisPolygonOptionsobject.- Returns:
- float value between 0 and 1 defining the alpha.
-
fillColor
Deprecated.Specifies the polygon's fill color, as 32-bit ARGB. The default color is black.- Parameters:
color- 32-bit ARGB color.- Returns:
- This
PolylineOptionsobject with a new color set.
-
getFillColor
public int getFillColor()Deprecated.Gets the fill color set for thisPolygonOptionsobject.- Returns:
- The fill color of the polygon in ARGB format.
-
getPolygon
Deprecated.Do not use this method. Used internally by the SDK.- Returns:
- Polygon the Polygon to return
-
strokeColor
Deprecated.Specifies the polygon's stroke color, as 32-bit ARGB. The default color is black.- Parameters:
color- 32-bit ARGB color.- Returns:
- This
PolygonOptionsobject with a new stroke color set.
-
getStrokeColor
public int getStrokeColor()Deprecated.Gets the stroke color set for thisPolygonOptionsobject.- Returns:
- The stroke color of the polygon in ARGB format.
-
getPoints
Deprecated.Gets the points set for thisPolygonOptionsobject.- Returns:
- The list made up of
LatLngpoints defining the polygon.
-
getHoles
Deprecated.Gets the holes set for thisPolygonOptionsobject. -
equals
Deprecated.Compares thisPolygonOptionsobject with anotherPolygonOptionsand determines if their color, alpha, stroke color, and vertices match.- Overrides:
equalsin classObject- Parameters:
o- AnotherPolygonOptionsto compare with this object.- Returns:
- True if color, alpha, stroke color, vertices and holes match this
PolygonOptionsPolygonOptionsobject. 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.
-