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

Field Summary
 private Stringfilename
           
 private doublelatitude
           
 private doublelongitude
           
 private doublepixelsPerDegree
           

Constructor Summary
ChartContainer(double longitude, double latitude, double pixelsPerDegree, String filename)
           

Method Summary
 doublegetLatitude()
           
 doublegetLongitude()
           
 StringgetName()
           
 doublegetPixelsPerDegree()
           

Methods inherited from class com.ltu.smd116.containers.SortableContainer
compare, getElement, getId, setId

Field Detail

filename

private String filename

latitude

private double latitude

longitude

private double longitude

pixelsPerDegree

private double pixelsPerDegree
Constructor Detail

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.
Method Detail

getLatitude

public double getLatitude()

getLongitude

public double getLongitude()

getName

public String getName()

getPixelsPerDegree

public double getPixelsPerDegree()

Association Links

to Class java.lang.String