Package 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.
-
-
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
Constructors Constructor Description KMLBalloonStyle(java.lang.String namespaceURI)
Construct an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getBgColor()
Specifies thisKMLBalloonStyle
's background color as a hexadecimal string in the form: aabbggrr.java.lang.String
getColor()
Specifies thisKMLBalloonStyle
's background color as a hexadecimal string in the form: aabbggrr (deprecated).java.lang.String
getDisplayMode()
java.lang.String
getText()
Get the text field.java.lang.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, setNamespaceURI, setParent
-
-
-
-
Method Detail
-
getColor
public java.lang.String getColor()
Specifies thisKMLBalloonStyle
's background color as a hexadecimal string in the form: aabbggrr (deprecated). Thecolor
style attribute was Deprecated in KML 2.1 and replaced bybgColor
.- Returns:
- the background color as a hexadecimal string.
-
getBgColor
public java.lang.String getBgColor()
Specifies thisKMLBalloonStyle
'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.
-
getTextColor
public java.lang.String getTextColor()
-
getText
public java.lang.String getText()
Get the text field.- Returns:
- Balloon text field.
-
getDisplayMode
public java.lang.String getDisplayMode()
-
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).
-
-