com.ltu.smd116.beans
Class SeaChartBean


public class SeaChartBean

The SeaChartBean class will draw the seachart.

Author:
Anna Nilsson

Field Summary
 private BLSeaChartblSeaChart
           
 private ChartContainercurrent
           

Constructor Summary
SeaChartBean()
          the constructor

Method Summary
 voidmakeChartImage()
          creates the picture of the SeaChart.
 voidreset()
           
 voidzoomOut()
          Will zoom out the SeaChart.
 voidzoomTo(int x, int y)
          Generates the coordinate to the metod makeChartImage
to draw the new zoom to picture.

Field Detail

blSeaChart

private BLSeaChart blSeaChart

current

private ChartContainer current
Constructor Detail

SeaChartBean

public SeaChartBean()
the constructor
Method Detail

makeChartImage

public void makeChartImage()
creates the picture of the SeaChart.

reset

public void reset()

zoomOut

public void zoomOut()
Will zoom out the SeaChart.

zoomTo

public void zoomTo(int x, int y)
Generates the coordinate to the metod makeChartImage
to draw the new zoom to picture.
Parameters:
x - is the new x-coordinate on the SeaChart.
y - is the new y-coordinate on the SeaChart.

Association Links

to Class com.ltu.smd116.containers.ChartContainer

to Class com.ltu.smd116.bl.seachart.BLSeaChart