com.ltu.smd116.bl.seachart
Class BLSeaChart


public class BLSeaChart

This class draws the sea chart.

Author:
Daniel Nilsson

Field Summary
 private DBChartdbChart
           

Constructor Summary
BLSeaChart()
          Create a new BLSeaChart.

Method Summary
 voiddrawChart(Graphics g, ChartContainer cc)
          Draws a sea chart.
 SortedVectorgetChartsAt(double longitude, double latitude)
          Get all sea charts that includes the given location.

Field Detail

dbChart

private DBChart dbChart
Constructor Detail

BLSeaChart

public BLSeaChart()
Create a new BLSeaChart.
Method Detail

drawChart

public void drawChart(Graphics g, ChartContainer cc)
Draws a sea chart.
Parameters:
g - The Graphics object to draw on.
cc - The sea chart to draw.

getChartsAt

public SortedVector getChartsAt(double longitude, double latitude)
Get all sea charts that includes the given location.
Parameters:
longitude - The longitude.
latitude - The latitude.
Returns: A SortedVector of ChartContainers.

Association Links

to Class com.ltu.smd116.dbp.DBChart