org.opengts.db
Class GoogleKML

java.lang.Object
  extended by org.opengts.db.GoogleKML

public class GoogleKML
extends java.lang.Object


Field Summary
static java.lang.String PROP_GoogleKML_lastPushpinID
           
 
Method Summary
 java.lang.String createKML(java.util.Collection<GeoPoint> gpList)
          Return KML of specified GeoPoints
static org.opengts.db.GoogleKML.GooglePP getGooglePushpin(java.lang.String name)
           
static GoogleKML getInstance()
           
static java.lang.String GooglePushpinBase()
           
 boolean writeEvents(java.io.PrintWriter out, Account account, java.util.Collection<Device> devList, BasicPrivateLabel privLabel)
          Write events in KML format to specified PrintWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_GoogleKML_lastPushpinID

public static final java.lang.String PROP_GoogleKML_lastPushpinID
See Also:
Constant Field Values
Method Detail

GooglePushpinBase

public static java.lang.String GooglePushpinBase()

getGooglePushpin

public static org.opengts.db.GoogleKML.GooglePP getGooglePushpin(java.lang.String name)

getInstance

public static GoogleKML getInstance()

createKML

public java.lang.String createKML(java.util.Collection<GeoPoint> gpList)
Return KML of specified GeoPoints

Parameters:
gpList - The collection of GeoPoints
Returns:
The KML String representation

writeEvents

public boolean writeEvents(java.io.PrintWriter out,
                           Account account,
                           java.util.Collection<Device> devList,
                           BasicPrivateLabel privLabel)
                    throws java.io.IOException
Write events in KML format to specified PrintWriter

Parameters:
out - The output PrintWriter
account - The Account
devList - The Device list
privLabel - The PrivateLabel instance
Returns:
True if successful
Throws:
java.io.IOException