Class DefaultDataMap

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

public class DefaultDataMap extends Object implements DataMap
DefaultDataMap.java A default DataMap implementation. Created: Mon Apr 22 16:39:08 2002
Version:
$Revision$
Author:
See Also:
  • Field Details

    • value

      protected double value
    • info

      protected DataMapInfo info
    • coordinates

      protected Coordinate[] coordinates
  • Constructor Details

    • 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(String latitudes, String longitudes, double value)
    • DefaultDataMap

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

    • setCoordinates

      public void setCoordinates(String latitudes, 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 String toString()
      Overrides:
      toString in class Object