NASA World Wind

gov.nasa.worldwind.ogc.kml
Class KMLBalloonStyle

java.lang.Object
  extended by gov.nasa.worldwind.util.xml.AbstractXMLEventParser
      extended by gov.nasa.worldwind.ogc.kml.KMLAbstractObject
          extended by gov.nasa.worldwind.ogc.kml.KMLAbstractSubStyle
              extended by gov.nasa.worldwind.ogc.kml.KMLBalloonStyle
All Implemented Interfaces:
MessageListener, XMLEventParser

public class KMLBalloonStyle
extends KMLAbstractSubStyle

Represents the KML BalloonStyle element and provides access to its contents.


Field Summary
 
Fields inherited from class gov.nasa.worldwind.ogc.kml.KMLAbstractObject
MSG_BOX_CHANGED, MSG_GEOMETRY_CHANGED, MSG_LINK_CHANGED, MSG_STYLE_CHANGED, MSG_TIME_CHANGED, MSG_VIEW_CHANGED
 
Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
CHARACTERS_CONTENT, fields, namespaceURI, parent
 
Constructor Summary
KMLBalloonStyle(String namespaceURI)
          Construct an instance.
 
Method Summary
 String getBgColor()
          Specifies this KMLBalloonStyle's background color as a hexadecimal string in the form: aabbggrr.
 String getColor()
          Specifies this KMLBalloonStyle's background color as a hexadecimal string in the form: aabbggrr (deprecated).
 String getDisplayMode()
           
 String getText()
          Get the text field.
 String getTextColor()
           
 boolean hasStyleFields()
          Does the style have at least one BalloonStyle field set? This method tests for the existence of the BalloonStyle content fields (text, displayMode, bgColor, etc).
 
Methods inherited from class gov.nasa.worldwind.ogc.kml.KMLAbstractSubStyle
applyChange
 
Methods inherited from class gov.nasa.worldwind.ogc.kml.KMLAbstractObject
getId, getRoot, getTargetId, onChange, onMessage
 
Methods inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
allocate, doAddCharacters, doAddEventAttribute, doAddEventContent, doParseEventAttributes, doParseEventContent, freeResources, getAConstructor, getCharacters, getField, getField, getFields, getNamespaceURI, getParent, hasField, hasField, hasFields, mergeFields, newInstance, overrideFields, parse, parseCharacterContent, removeField, setField, setField, setFields, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KMLBalloonStyle

public KMLBalloonStyle(String namespaceURI)
Construct an instance.

Parameters:
namespaceURI - the qualifying namespace URI. May be null to indicate no namespace qualification.
Method Detail

getBgColor

public String getBgColor()
Specifies this KMLBalloonStyle's background color as a hexadecimal string in the form: aabbggrr. This is the preferred attribute for encoding a balloon's background color since KML 2.1.

Returns:
the background color as a hexadecimal string.

getColor

public String getColor()
Specifies this KMLBalloonStyle's background color as a hexadecimal string in the form: aabbggrr (deprecated). The color style attribute was Deprecated in KML 2.1 and replaced by bgColor.

Returns:
the background color as a hexadecimal string.

getDisplayMode

public String getDisplayMode()

getText

public String getText()
Get the text field.

Returns:
Balloon text field.

getTextColor

public String getTextColor()

hasStyleFields

public boolean hasStyleFields()
Does the style have at least one BalloonStyle field set? This method tests for the existence of the BalloonStyle content fields (text, displayMode, bgColor, etc).

Returns:
True if at least one of the BalloonStyle fields is set (text, displayMode, bgColor, etc).

NASA World Wind