OsmAnd/OsmAnd-java/src/net/osmand/data/FavouritePoint.java

98 lines
1.7 KiB
Java
Raw Normal View History

package net.osmand.data;
import java.io.Serializable;
2014-08-01 18:15:59 +02:00
public class FavouritePoint implements Serializable, LocationPoint {
private static final long serialVersionUID = 729654300829771466L;
private String name;
private String category = "";
private double latitude;
private double longitude;
2014-06-11 00:42:17 +02:00
private int color;
2014-07-29 09:49:41 +02:00
private int extraParam = -1;
2014-06-20 11:41:03 +02:00
private boolean visible = true;
2014-07-29 09:49:41 +02:00
private boolean removeable = true;
public FavouritePoint(){
}
2014-08-01 18:15:59 +02:00
public FavouritePoint(double latitude, double longitude, String name, String category) {
this.latitude = latitude;
this.longitude = longitude;
this.category = category;
this.name = name;
}
2014-06-11 00:42:17 +02:00
2014-07-29 09:49:41 +02:00
public int getExtraParam() {
return extraParam;
}
public void setExtraParam(int extraParam) {
this.extraParam = extraParam;
}
public boolean isRemoveable() {
return removeable;
}
public void setRemoveable(boolean removeable) {
this.removeable = removeable;
}
2014-06-11 00:42:17 +02:00
public int getColor() {
return color;
}
public void setColor(int color) {
this.color = color;
}
2014-06-20 11:41:03 +02:00
public boolean isVisible() {
return visible;
}
public void setVisible(boolean visible) {
this.visible = visible;
}
public double getLatitude() {
return latitude;
}
public void setLatitude(double latitude) {
this.latitude = latitude;
}
public double getLongitude() {
return longitude;
}
public void setLongitude(double longitude) {
this.longitude = longitude;
}
public String getCategory() {
return category;
}
public void setCategory(String category) {
this.category = category;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public String toString() {
return "Favourite " + getName(); //$NON-NLS-1$
}
2014-06-20 11:41:03 +02:00
}