org.osmdroid.api.Polyline Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of osmdroid-packager Show documentation
Show all versions of osmdroid-packager Show documentation
A tool to package OpenStreetMap tiles
The newest version!
package org.osmdroid.api;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import android.graphics.Color;
/**
* only used for the Google maps wrapper/3rd party library
*/
public class Polyline {
public Polyline() {
points = new ArrayList();
}
/**
* The color of the polyline. Defaults to black.
*/
public int color = Color.BLACK;
/**
* The color of the polyline. Defaults to black.
* This method returns the polyline for convenient method chaining.
*/
public Polyline color(final int aColor) {
color = aColor;
return this;
}
/**
* The width of the polyline. Defaults to 2.
*/
public float width = 2.0f;
/**
* The width of the polyline. Defaults to 2.
* This method returns the polyline for convenient method chaining.
*/
public Polyline width(final float aWidth) {
width = aWidth;
return this;
}
/**
* The points of the polyline.
*/
public List points;
/**
* The points of the polyline.
* This method returns the polyline for convenient method chaining.
*/
public Polyline points(final List aPoints) {
points = aPoints;
return this;
}
/**
* The points of the polyline.
* This method returns the polyline for convenient method chaining.
*/
public Polyline points(final IGeoPoint... aPoints) {
return points(Arrays.asList(aPoints));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy