Class PolygonDataAccessor
Class PolygonDataAccessor
- java.lang.Object
-
- com.here.NativeBase
-
- com.here.sdk.mapview.datasource.PolygonDataAccessor
-
public final class PolygonDataAccessor extends NativeBase
Polygon data accessor used for manipulating polygons that are part of a PolygonDataSource.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataAttributesAccessorgetAttributes()Gets polygon attributes accessor.GeoPolygongetGeometry()Gets polygon geometry.voidsetAttributes(DataAttributes attributes)Replaces polygon attributes.voidsetGeometry(GeoPolygon geometry)Replaces polygon geometry.
-
-
-
Method Detail
-
getGeometry
@NonNull public GeoPolygon getGeometry()
Gets polygon geometry.
- Returns:
The polygon geometry.
-
getAttributes
@NonNull public DataAttributesAccessor getAttributes()
Gets polygon attributes accessor.
- Returns:
The polygon attributes accessor.
-
setGeometry
public void setGeometry(@NonNull GeoPolygon geometry)Replaces polygon geometry. The outer boundary has to be ordered clockwise and closed.
Altitude of the vertices is ignored.
The visual behaviour for self-intersecting outer boundary is undefined.
- Parameters:
geometry-Geometry of the polygon. The outer boundary has to be ordered clockwise and closed. Altitude of the vertices is ignored. The visual behaviour for self-intersecting outer boundary is undefined.
-
setAttributes
public void setAttributes(@NonNull DataAttributes attributes)Replaces polygon attributes.
- Parameters:
attributes-The attributes.
-
-