com.mapbox.mapboxsdk.annotations.MultiPoint Maven / Gradle / Ivy
package com.mapbox.mapboxsdk.annotations;
import com.mapbox.mapboxsdk.geometry.LatLng;
import java.util.ArrayList;
import java.util.List;
/**
* Multipoint is an abstract annotation for combining geographical locations.
*/
public abstract class MultiPoint extends Annotation {
private List points;
private float alpha = 1.0f;
protected MultiPoint() {
super();
points = new ArrayList<>();
}
/**
* Returns a copy of the points.
*
* @return points - as a copy
*/
public List getPoints() {
return new ArrayList<>(points);
}
/**
* Sets the points of this polyline. This method will take a copy
* of the points, so further mutations to points will have no effect
* on this polyline.
*
* @param points the points of the polyline
*/
void setPoints(List points) {
this.points = new ArrayList<>(points);
}
void addPoint(LatLng point) {
points.add(point);
}
public float getAlpha() {
return alpha;
}
void setAlpha(float alpha) {
this.alpha = alpha;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy