io.github.mvpotter.model.polyline.Curve Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yandex-maps-static-api Show documentation
Show all versions of yandex-maps-static-api Show documentation
Library for working with Yandex Maps Static API 1.x
The newest version!
/*
* Created with IntelliJ IDEA.
* User: michaelpotter
* Date: 02/02/14
* Time: 22:05
*/
package io.github.mvpotter.model.polyline;
import io.github.mvpotter.model.Coordinate;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
/**
* Curve for representation on the map.
* Description: http://api.yandex.ru/maps/doc/staticapi/1.x/dg/concepts/polylines.xml
*/
public class Curve extends Polyline {
protected List points = new LinkedList();
/**
* Adds point to polyline.
*
* @param point point
*/
public void addPoint(final Coordinate point) {
this.points.add(point);
}
/**
* Returns polyline's points.
*
* @return list of points
*/
public List getPoints() {
return Collections.unmodifiableList(points);
}
}