gov.nasa.worldwind.ogc.kml
Class KMLBalloonStyle
java.lang.Object
gov.nasa.worldwind.util.xml.AbstractXMLEventParser
gov.nasa.worldwind.ogc.kml.KMLAbstractObject
gov.nasa.worldwind.ogc.kml.KMLAbstractSubStyle
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.
|
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.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 |
KMLBalloonStyle
public KMLBalloonStyle(String namespaceURI)
- Construct an instance.
- Parameters:
namespaceURI - the qualifying namespace URI. May be null to indicate no namespace qualification.
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).