public class TLcdKML22BalloonStyle extends TLcdKML22AbstractSubStyle
OGC KML Specification description:
This element can be used wherever the following element is referenced: -kml:AbstractSubStyleGroup Specifies how the description balloon for a kml:AbstractFeatureGroup is drawn. kml:BalloonStyle should contain at least one child element outside of an update context, that is when not a descendant of kml:Update.
Modifier and Type | Field and Description |
---|---|
static TLcdDataProperty |
ABSTRACT_SUB_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to the
AbstractSubStyleObjectExtensionGroup element. |
static TLcdDataProperty |
ABSTRACT_SUB_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to the
AbstractSubStyleSimpleExtensionGroup element. |
static TLcdDataProperty |
BALLOON_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to the
BalloonStyleObjectExtensionGroup element. |
static TLcdDataProperty |
BALLOON_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to the
BalloonStyleSimpleExtensionGroup element. |
static TLcdDataProperty |
BG_COLOR_PROPERTY
Data property that maps to the choice between the
color and bgColor elements. |
static TLcdDataProperty |
DISPLAY_MODE_PROPERTY
Data property that maps to the
displayMode element. |
static TLcdDataProperty |
TEXT_COLOR_PROPERTY
Data property that maps to the
textColor element. |
static TLcdDataProperty |
TEXT_PROPERTY
Data property that maps to the
text element. |
ID_PROPERTY, OBJECT_SIMPLE_EXTENSION_GROUP_PROPERTY, TARGET_ID_PROPERTY
Constructor and Description |
---|
TLcdKML22BalloonStyle(TLcdDataType aType)
Creates a new
TLcdKML22BalloonStyle with a custom TLcdDataType . |
Modifier and Type | Method and Description |
---|---|
Color |
getBgColor()
Returns the value of the property that maps to the choice between the
color and bgColor elements. |
ELcdKML22DisplayMode |
getDisplayMode()
Gets the display mode of this balloon style.
|
String |
getText()
Returns the value of the property that maps to the
text element. |
Color |
getTextColor()
Returns the value of the property that maps to the
textColor element. |
void |
setBgColor(Color aValue)
Sets the value of the property that maps to the choice between the
color and bgColor elements. |
void |
setDisplayMode(ELcdKML22DisplayMode aValue)
Sets the value of the property that maps to the
displayMode element. |
void |
setText(String aValue)
Sets the value of the property that maps to the
text element. |
void |
setTextColor(Color aValue)
Sets the value of the property that maps to the
textColor element. |
getId, getTargetId, setId, setTargetId
public static final TLcdDataProperty BG_COLOR_PROPERTY
color
and bgColor
elements.
The possible values for this property are instances of
Color
Color
public static final TLcdDataProperty TEXT_COLOR_PROPERTY
textColor
element.
The possible values for this property are instances of Color
.public static final TLcdDataProperty TEXT_PROPERTY
text
element.
The possible values for this property are instances of String
.public static final TLcdDataProperty DISPLAY_MODE_PROPERTY
displayMode
element.
The possible values for this property are instances of ELcdKML22DisplayMode
.public static final TLcdDataProperty BALLOON_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY
BalloonStyleSimpleExtensionGroup
element.
The possible values for this property are instances of List<String>
.public static final TLcdDataProperty BALLOON_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY
BalloonStyleObjectExtensionGroup
element.
The possible values for this property are instances of List<TLcdKML22AbstractObject>
.public static final TLcdDataProperty ABSTRACT_SUB_STYLE_SIMPLE_EXTENSION_GROUP_PROPERTY
AbstractSubStyleSimpleExtensionGroup
element.
The possible values for this property are instances of List<String>
.public static final TLcdDataProperty ABSTRACT_SUB_STYLE_OBJECT_EXTENSION_GROUP_PROPERTY
AbstractSubStyleObjectExtensionGroup
element.
The possible values for this property are instances of List<TLcdKML22AbstractObject>
.public TLcdKML22BalloonStyle(TLcdDataType aType)
TLcdKML22BalloonStyle
with a custom TLcdDataType
.aType
- a custom TLcdDataType
public ELcdKML22DisplayMode getDisplayMode()
public Color getBgColor()
color
and bgColor
elements.
The possible values for this property are instances of
Color
Color
BG_COLOR_PROPERTY
property.public void setBgColor(Color aValue)
color
and bgColor
elements.
The possible values for this property are instances of
Color
Color
aValue
- the value to set for the BG_COLOR_PROPERTY
property.public Color getTextColor()
textColor
element.TEXT_COLOR_PROPERTY
property.public void setTextColor(Color aValue)
textColor
element.aValue
- the value to set for the TEXT_COLOR_PROPERTY
property.public String getText()
text
element.TEXT_PROPERTY
property.public void setText(String aValue)
text
element.aValue
- the value to set for the TEXT_PROPERTY
property.public void setDisplayMode(ELcdKML22DisplayMode aValue)
displayMode
element.aValue
- the value to set for the DISPLAY_MODE_PROPERTY
property.