org.eclipse.ohf.stem.ui.ge.kml
Class KmlDisplay

java.lang.Object
  extended by org.eclipse.ohf.stem.ui.ge.kml.KmlDisplay
All Implemented Interfaces:
IKmlDisplay

public class KmlDisplay
extends java.lang.Object
implements IKmlDisplay

Standard DISPLAY OF SEIR aspects.


Constructor Summary
KmlDisplay()
           
 
Method Summary
 void generatePolygons(java.lang.String controlFileName, java.util.Map<java.lang.String,GEData> geData, Aspect aspect)
          Create the KML control file to display all of the polygon (county) areas We will have N PlaceMarks, each of which will be associated with a differnt Style (for color) The polygons will be placed in a placemark based on the color selection.
 void init()
          initialization currently we have nothing to do
 int selectByValue(Aspect aspect, GEData geData)
          Select the color to be used by the GoogleEarth Polygon based on the relative value for the property
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KmlDisplay

public KmlDisplay()
Method Detail

init

public void init()
initialization currently we have nothing to do


generatePolygons

public void generatePolygons(java.lang.String controlFileName,
                             java.util.Map<java.lang.String,GEData> geData,
                             Aspect aspect)
Create the KML control file to display all of the polygon (county) areas We will have N PlaceMarks, each of which will be associated with a differnt Style (for color) The polygons will be placed in a placemark based on the color selection.

Specified by:
generatePolygons in interface IKmlDisplay
Parameters:
controlFileName - File where KML will be written
geData - Map of GEData objects
aspect - which type of map (population,susceptiple...
cycle - current number of cycle being displayed

selectByValue

public int selectByValue(Aspect aspect,
                         GEData geData)
Select the color to be used by the GoogleEarth Polygon based on the relative value for the property

Parameters:
aspect - enum value specifing which type of display is shown (population, susceptible, exposed,infectious,recovered)
geData -
Returns:
value 0 to MAX that determines which grouping of polygons this area will be displayed with.