Class Polygon
java.lang.Object
com.trimblemaps.mapsdk.annotations.Annotation
com.trimblemaps.mapsdk.annotations.BasePointCollection
com.trimblemaps.mapsdk.annotations.Polygon
- All Implemented Interfaces:
Comparable<Annotation>
Deprecated.
Use TrimbleMaps Annotation Plugin instead
Polygon is a geometry annotation that's a closed loop of coordinates.
-
Field Summary
Fields inherited from class com.trimblemaps.mapsdk.annotations.Annotation
mapView, trimbleMapsMap -
Method Summary
Modifier and TypeMethodDescriptionintDeprecated.Get the color of the fill region of the polygon.getHoles()Deprecated.Returns a copy of the holes.intDeprecated.Get the color of the stroke of the polygon.voidsetFillColor(int color) Deprecated.Sets the color of the fill region of the polygon.voidDeprecated.Sets the holes of this polygon.voidsetStrokeColor(int color) Deprecated.Sets the color of the stroke of the polygon.Methods inherited from class com.trimblemaps.mapsdk.annotations.BasePointCollection
addPoint, getAlpha, getPoints, setAlpha, setPointsMethods inherited from class com.trimblemaps.mapsdk.annotations.Annotation
compareTo, equals, getId, getMapView, getTrimbleMapsMap, hashCode, remove, setId, setMapView, setTrimbleMapsMap
-
Method Details
-
getFillColor
public int getFillColor()Deprecated.Get the color of the fill region of the polygon.- Returns:
- The color of the fill.
-
getStrokeColor
public int getStrokeColor()Deprecated.Get the color of the stroke of the polygon.- Returns:
- The color of the stroke.
-
getHoles
Deprecated.Returns a copy of the holes. -
setFillColor
public void setFillColor(int color) Deprecated.Sets the color of the fill region of the polygon.- Parameters:
color- The color in ARGB format.
-
setStrokeColor
public void setStrokeColor(int color) Deprecated.Sets the color of the stroke of the polygon.- Parameters:
color- The color in ARGB format.
-
setHoles
Deprecated.Sets the holes of this polygon. This method will take a copy of the holes, so further mutations to holes will have no effect on this polygon.
-