ucar.unidata.data.gis
Class KmlImageElement

java.lang.Object
  extended by ucar.unidata.data.gis.KmlInfo
      extended by ucar.unidata.data.gis.KmlImageElement
Direct Known Subclasses:
KmlGroundOverlay, KmlPhotoOverlay

public abstract class KmlImageElement
extends KmlInfo

Class KmlImageElement represents a ground overlay in KML

Version:
$Revision: 1.12 $
Author:
IDV Development Team

Field Summary
static String TAG_HREF
          xml tags
static String TAG_ICON
          xml tags
static String TAG_NAME
          xml tags
 
Fields inherited from class ucar.unidata.data.gis.KmlInfo
TAG_ADDRESS, TAG_COORDINATES, TAG_DESCRIPTION, TAG_LINESTRING
 
Constructor Summary
KmlImageElement()
          ctor
KmlImageElement(Element node, String displayCategory, String baseUrl)
          ctor
 
Method Summary
 String getBaseUrl()
          Get the BaseUrl property.
 String getHref()
          Get the Href property.
static String getHref(Element node)
          Find the href element
 Image getImage(KmlDataSource dataSource)
          get the image data
 void setBaseUrl(String value)
          Set the BaseUrl property.
 void setHref(String value)
          Set the Href property.
 
Methods inherited from class ucar.unidata.data.gis.KmlInfo
getCategories, getData, getName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_ICON

public static final String TAG_ICON
xml tags

See Also:
Constant Field Values

TAG_NAME

public static final String TAG_NAME
xml tags

See Also:
Constant Field Values

TAG_HREF

public static final String TAG_HREF
xml tags

See Also:
Constant Field Values
Constructor Detail

KmlImageElement

public KmlImageElement()
ctor


KmlImageElement

public KmlImageElement(Element node,
                       String displayCategory,
                       String baseUrl)
ctor

Parameters:
node - kml node
displayCategory - display category
baseUrl - url of the kml doc
Method Detail

getHref

public static String getHref(Element node)
Find the href element

Parameters:
node - node
Returns:
href

getImage

public Image getImage(KmlDataSource dataSource)
               throws VisADException,
                      RemoteException
get the image data

Parameters:
dataSource - data source
Returns:
image data
Throws:
RemoteException - On badness
VisADException - On badness

setHref

public void setHref(String value)
Set the Href property.

Parameters:
value - The new value for Href

getHref

public String getHref()
Get the Href property.

Returns:
The Href

setBaseUrl

public void setBaseUrl(String value)
Set the BaseUrl property.

Parameters:
value - The new value for BaseUrl

getBaseUrl

public String getBaseUrl()
Get the BaseUrl property.

Returns:
The BaseUrl