Package fr.ifremer.isisfish.map
Class DefaultDataMap
java.lang.Object
fr.ifremer.isisfish.map.DefaultDataMap
- All Implemented Interfaces:
DataMap
,Serializable
DefaultDataMap.java
A default DataMap implementation. Created: Mon Apr 22 16:39:08 2002
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstruct the DefaultDataMap.DefaultDataMap
(double value) DefaultDataMap
(float[] latitudes, float[] longitudes, double value) DefaultDataMap
(Coordinate[] coordinates, double value) DefaultDataMap
(Coordinate[] coordinates, double value, DataMapInfo info) Construct the DefaultDataMap.DefaultDataMap
(String latitudes, String longitudes, double value) -
Method Summary
Modifier and TypeMethodDescriptionGet the coordinates of the Cells position of the DataMap on the map.getInfo()
Get the value of info.double
getValue()
Get the value of value.void
setCoordinates
(float[] latitudes, float[] longitudes) Set the coordinates of the Cells position of the DataMap on the map.void
setCoordinates
(Coordinate[] coordinates) Set the coordinates of the Cells position of the DataMap on the map.void
setCoordinates
(String latitudes, String longitudes) Set the coordinates of the Cells position of the DataMap on the map.void
Set the value of info.void
setValue
(double v) Set the value of value.toString()
-
Field Details
-
value
protected double value -
info
-
coordinates
-
-
Constructor Details
-
DefaultDataMap
public DefaultDataMap()Construct the DefaultDataMap. -
DefaultDataMap
Construct the DefaultDataMap.- Parameters:
coordinates
- Coordinates of the DataMap cellsvalue
- Valueinfo
- DataMapInfo
-
DefaultDataMap
-
DefaultDataMap
public DefaultDataMap(double value) -
DefaultDataMap
-
DefaultDataMap
public DefaultDataMap(float[] latitudes, float[] longitudes, double value)
-
-
Method Details
-
setCoordinates
Set the coordinates of the Cells position of the DataMap on the map.- Parameters:
latitudes
- Latitudeslongitudes
- Longitudes
-
setCoordinates
public void setCoordinates(float[] latitudes, float[] longitudes) Set the coordinates of the Cells position of the DataMap on the map.- Parameters:
latitudes
- Latitudeslongitudes
- Longitudes
-
setCoordinates
Set the coordinates of the Cells position of the DataMap on the map.- Parameters:
coordinates
- Coordinates
-
getCoordinates
Get the coordinates of the Cells position of the DataMap on the map.- Specified by:
getCoordinates
in interfaceDataMap
- Returns:
- All the coordinates of the underlying cells of this DataMap.
-
getValue
public double getValue()Get the value of value. -
setValue
public void setValue(double v) Set the value of value.- Parameters:
v
- Value to assign to value.
-
getInfo
Get the value of info. -
setInfo
Set the value of info.- Parameters:
v
- Value to assign to info.
-
toString
-