com.ltu.smd116.containers
Class ChartContainer
com.ltu.smd116.misc.SortableItem
|
+--com.ltu.smd116.containers.SortableContainer
|
+--com.ltu.smd116.containers.ChartContainer
- public class ChartContainer
- extends SortableContainer
This class describes the position of the boat on the seachart.
- Author:
- Linda Norberg
Constructor Summary |
ChartContainer(double longitude, double latitude, double pixelsPerDegree, String filename) |
filename
private String filename
latitude
private double latitude
longitude
private double longitude
pixelsPerDegree
private double pixelsPerDegree
ChartContainer
public ChartContainer(double longitude, double latitude, double pixelsPerDegree, String filename)
- Parameters:
- longitude - the north/south position in degrees.
- latitude - the east/west position in degrees.
- pixelsPerDegree - the scale of the map.
- filename - gets the map of the position you are at.
getLatitude
public double getLatitude()
getLongitude
public double getLongitude()
getName
public String getName()
getPixelsPerDegree
public double getPixelsPerDegree()
to Class java.lang.String