|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfilecontroller.WeatherMap
public class WeatherMap
This class contains a collection of current weather map information. Note that it's users responsibility to check that values are acceptable.
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 |
---|
private double cornerLat
private double cornerLon
private java.awt.image.BufferedImage image
private int[][] mapMatrix
private double scale
Constructor Detail |
---|
public WeatherMap()
Method Detail |
---|
public void apply(java.awt.image.BufferedImage map, int[][] mapMatrix)
map
- imagemapMatrix
- Current weather map information in numerical array.public void apply(double cornerLat, double cornerLon, double scale)
cornerLat
- LatitudecornerLon
- Longitudescale
- Map scalepublic double getLat()
public double getLon()
public java.awt.image.BufferedImage getMap()
public int[][] getMapMatrix()
public double getScale()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |