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

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

public class KmlDisplayCustom
extends java.lang.Object
implements IKmlDisplay

Custom display OF SEIR aspects.


Constructor Summary
KmlDisplayCustom()
           
 
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.
 int selectByValue(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

KmlDisplayCustom

public KmlDisplayCustom()
Method Detail

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...

selectByValue

public int selectByValue(GEData geData)
Select the color to be used by the GoogleEarth Polygon based on the relative value for the property
  S    E    I     R   Red Green Blue   Type 
   1   0    0     0                      -1
   -   -   >.8    -    F0   00            0
   -  >R   >.6    -    F0   A0            1
   -   -   >.6   >I    D0   F0            2 
   -  >R   >.4    -    D0   B0            3
   -   0   >.4   >I    B0   F0            4
   -  >R   >.2    -    F0   C0            5
   -   -   >.2   >I    C0   F0            6
   -  >R   <.2    -    F0   F0            7
   -   -   <.2   >I    00   F0            8
         
 

Parameters:
geData - Instance that hods info about area including the latest disease state.
Returns:
value 0 to MAX that determines which grouping of polygons this area will be displayed with. -1 will indicate not to display the polygon