All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.mvpotter.model.polyline.Curve Maven / Gradle / Ivy

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); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy