fr.ifremer.isisfish.map
Class DefaultDataMap

java.lang.Object
  extended by fr.ifremer.isisfish.map.DefaultDataMap
All Implemented Interfaces:
DataMap, java.io.Serializable

public class DefaultDataMap
extends java.lang.Object
implements DataMap

DefaultDataMap.java A default DataMap implementation. Created: Mon Apr 22 16:39:08 2002

Version:
$Revision: 2771 $
Author:
See Also:
Serialized Form

Field Summary
protected  Coordinate[] coordinates
           
protected  DataMapInfo info
           
protected  double value
           
 
Constructor Summary
DefaultDataMap()
          Construct the DefaultDataMap.
DefaultDataMap(Coordinate[] coordinates, double value)
           
DefaultDataMap(Coordinate[] coordinates, double value, DataMapInfo info)
          Construct the DefaultDataMap.
DefaultDataMap(double value)
           
DefaultDataMap(float[] latitudes, float[] longitudes, double value)
           
DefaultDataMap(java.lang.String latitudes, java.lang.String longitudes, double value)
           
 
Method Summary
 Coordinate[] getCoordinates()
          Get the coordinates of the Cells position of the DataMap on the map.
 DataMapInfo getInfo()
          Get the value of info.
 double getValue()
          Get the value of value.
 void setCoordinates(Coordinate[] coordinates)
          Set the coordinates of the Cells position of the DataMap on the map.
 void setCoordinates(float[] latitudes, float[] longitudes)
          Set the coordinates of the Cells position of the DataMap on the map.
 void setCoordinates(java.lang.String latitudes, java.lang.String longitudes)
          Set the coordinates of the Cells position of the DataMap on the map.
 void setInfo(DataMapInfo v)
          Set the value of info.
 void setValue(double v)
          Set the value of value.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

protected double value

info

protected DataMapInfo info

coordinates

protected Coordinate[] coordinates
Constructor Detail

DefaultDataMap

public DefaultDataMap()
Construct the DefaultDataMap.


DefaultDataMap

public DefaultDataMap(Coordinate[] coordinates,
                      double value,
                      DataMapInfo info)
Construct the DefaultDataMap.

Parameters:
coordinates - Coordinates of the DataMap cells
value - Value
info - DataMapInfo

DefaultDataMap

public DefaultDataMap(Coordinate[] coordinates,
                      double value)

DefaultDataMap

public DefaultDataMap(double value)

DefaultDataMap

public DefaultDataMap(java.lang.String latitudes,
                      java.lang.String longitudes,
                      double value)

DefaultDataMap

public DefaultDataMap(float[] latitudes,
                      float[] longitudes,
                      double value)
Method Detail

setCoordinates

public void setCoordinates(java.lang.String latitudes,
                           java.lang.String longitudes)
Set the coordinates of the Cells position of the DataMap on the map.

Parameters:
latitudes - Latitudes
longitudes - Longitudes

setCoordinates

public void setCoordinates(float[] latitudes,
                           float[] longitudes)
Set the coordinates of the Cells position of the DataMap on the map.

Parameters:
latitudes - Latitudes
longitudes - Longitudes

setCoordinates

public void setCoordinates(Coordinate[] coordinates)
Set the coordinates of the Cells position of the DataMap on the map.

Parameters:
coordinates - Coordinates

getCoordinates

public Coordinate[] getCoordinates()
Get the coordinates of the Cells position of the DataMap on the map.

Specified by:
getCoordinates in interface DataMap
Returns:
All the coordinates of the underlying cells of this DataMap.

getValue

public double getValue()
Get the value of value.

Specified by:
getValue in interface DataMap
Returns:
Value of value.

setValue

public void setValue(double v)
Set the value of value.

Parameters:
v - Value to assign to value.

getInfo

public DataMapInfo getInfo()
Get the value of info.

Specified by:
getInfo in interface DataMap
Returns:
Value of info.

setInfo

public void setInfo(DataMapInfo v)
Set the value of info.

Parameters:
v - Value to assign to info.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 1999-2010 CodeLutin. All Rights Reserved.