filecontroller
Class WeatherMap

java.lang.Object
  extended by filecontroller.WeatherMap

public class WeatherMap
extends java.lang.Object

This class contains a collection of current weather map information. Note that it's users responsibility to check that values are acceptable.

Version:
1
Author:
Potkuri-group

Field Summary
private  double cornerLat
          Map latitude.
private  double cornerLon
          Map longitude.
private  java.awt.image.BufferedImage image
          Current weather map.
private  int[][] mapMatrix
          Current weather map information in numerical array.
private  double scale
          Weather map scale.
 
Constructor Summary
WeatherMap()
          Construct new instance.
 
Method Summary
 void apply(java.awt.image.BufferedImage map, int[][] mapMatrix)
          Apply values.
 void apply(double cornerLat, double cornerLon, double scale)
          For testing.
 double getLat()
          Returns map latitude.
 double getLon()
          Returns map longitude.
 java.awt.image.BufferedImage getMap()
          Returns weather map.
 int[][] getMapMatrix()
          Returns map matrix.
 double getScale()
          Returns map scale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cornerLat

private double cornerLat
Map latitude.


cornerLon

private double cornerLon
Map longitude.


image

private java.awt.image.BufferedImage image
Current weather map.


mapMatrix

private int[][] mapMatrix
Current weather map information in numerical array.


scale

private double scale
Weather map scale.

Constructor Detail

WeatherMap

public WeatherMap()
Construct new instance.

Method Detail

apply

public void apply(java.awt.image.BufferedImage map,
                  int[][] mapMatrix)
Apply values.

Parameters:
map - image
mapMatrix - Current weather map information in numerical array.

apply

public void apply(double cornerLat,
                  double cornerLon,
                  double scale)
For testing. Apply values.

Parameters:
cornerLat - Latitude
cornerLon - Longitude
scale - Map scale

getLat

public double getLat()
Returns map latitude.

Returns:
double

getLon

public double getLon()
Returns map longitude.

Returns:
double

getMap

public java.awt.image.BufferedImage getMap()
Returns weather map.

Returns:
BufferedImage

getMapMatrix

public int[][] getMapMatrix()
Returns map matrix.

Returns:
Weather map information in numerical array.

getScale

public double getScale()
Returns map scale.

Returns:
double