public class BalloonStyle extends SubStyle implements Cloneable
Specifies how the description balloon for placemarks is drawn. The
<BalloonStyle id="ID">
<!-- specific to BalloonStyle -->
<bgColor>ffffffff</bgColor> <!-- kml:color -->
<textColor>ff000000</textColor> <!-- kml:color -->
<text>...</text> <!-- string -->
<displayMode>default</displayMode> <!-- kml:displayModeEnum -->
</BalloonStyle>
Extends:| Modifier and Type | Field and Description |
|---|---|
protected List<AbstractObject> |
balloonStyleObjectExtension
|
protected List<Object> |
balloonStyleSimpleExtension |
protected String |
bgColor
|
protected String |
color
Deprecated.
|
protected DisplayMode |
displayMode
DisplayMode
default, hide
See Also:
See
|
protected String |
text
$[description] |
protected String |
textColor
|
subStyleObjectExtension, subStyleSimpleExtensionid, objectSimpleExtension, targetId| Constructor and Description |
|---|
BalloonStyle() |
| Modifier and Type | Method and Description |
|---|---|
BalloonStyle |
addToBalloonStyleObjectExtension(AbstractObject balloonStyleObjectExtension)
add a value to the balloonStyleObjectExtension property collection
|
BalloonStyle |
addToBalloonStyleSimpleExtension(Object balloonStyleSimpleExtension)
add a value to the balloonStyleSimpleExtension property collection
|
BalloonStyle |
addToObjectSimpleExtension(Object objectSimpleExtension)
add a value to the objectSimpleExtension property collection
|
BalloonStyle |
addToSubStyleObjectExtension(AbstractObject subStyleObjectExtension)
add a value to the subStyleObjectExtension property collection
|
BalloonStyle |
addToSubStyleSimpleExtension(Object subStyleSimpleExtension)
add a value to the subStyleSimpleExtension property collection
|
BalloonStyle |
clone() |
boolean |
equals(Object obj) |
List<AbstractObject> |
getBalloonStyleObjectExtension() |
List<Object> |
getBalloonStyleSimpleExtension() |
String |
getBgColor() |
String |
getColor() |
DisplayMode |
getDisplayMode() |
String |
getText() |
String |
getTextColor() |
int |
hashCode() |
void |
setBalloonStyleObjectExtension(List<AbstractObject> balloonStyleObjectExtension) |
void |
setBalloonStyleSimpleExtension(List<Object> balloonStyleSimpleExtension) |
void |
setBgColor(String value) |
void |
setColor(String value) |
void |
setDisplayMode(DisplayMode value) |
void |
setObjectSimpleExtension(List<Object> objectSimpleExtension) |
void |
setSubStyleObjectExtension(List<AbstractObject> subStyleObjectExtension)
Sets the value of the subStyleObjectExtension property Objects of the following type(s) are allowed in the list List
|
void |
setSubStyleSimpleExtension(List<Object> subStyleSimpleExtension)
Sets the value of the subStyleSimpleExtension property Objects of the following type(s) are allowed in the list List
|
void |
setText(String value) |
void |
setTextColor(String value) |
BalloonStyle |
withBalloonStyleObjectExtension(List<AbstractObject> balloonStyleObjectExtension)
fluent setter
|
BalloonStyle |
withBalloonStyleSimpleExtension(List<Object> balloonStyleSimpleExtension)
fluent setter
|
BalloonStyle |
withBgColor(String bgColor)
fluent setter
|
BalloonStyle |
withColor(String color)
fluent setter
|
BalloonStyle |
withDisplayMode(DisplayMode displayMode)
fluent setter
|
BalloonStyle |
withId(String id)
fluent setter
|
BalloonStyle |
withObjectSimpleExtension(List<Object> objectSimpleExtension)
fluent setter
|
BalloonStyle |
withSubStyleObjectExtension(List<AbstractObject> subStyleObjectExtension)
fluent setter
|
BalloonStyle |
withSubStyleSimpleExtension(List<Object> subStyleSimpleExtension)
fluent setter
|
BalloonStyle |
withTargetId(String targetId)
fluent setter
|
BalloonStyle |
withText(String text)
fluent setter
|
BalloonStyle |
withTextColor(String textColor)
fluent setter
|
getSubStyleObjectExtension, getSubStyleSimpleExtensiongetId, getObjectSimpleExtension, getTargetId, setId, setTargetId@Deprecated protected String color
Color and opacity (alpha) values are expressed in hexadecimal notation. The range
of values for any one color is 0 to 255 (00 to ff). For alpha, 00 is fully transparent
and ff is fully opaque. The order of expression is aabbggrr, where aa=alpha (00
to ff); bb=blue (00 to ff); gg=green (00 to ff); rr=red (00 to ff). For example,
if you want to apply a blue color with 50 percent opacity to an overlay, you would
specify the following:
Color values are expressed in hexadecimal notation, including opacity (alpha) values.
The order of expression is alpha, blue, green, red (aabbggrr). The range of values
for any one color is 0 to 255 (00 to ff). For opacity, 00 is fully transparent and
ff is fully opaque. For example, if you want to apply a blue color with 50 percent
opacity to an overlay, you would specify the following:
Note: The
protected String bgColor
Background color for the Snippet. Color and opacity values are expressed in hexadecimal
notation. The range of values for any one color is 0 to 255 (00 to ff). For alpha,
00 is fully transparent and ff is fully opaque. The order of expression is aabbggrr,
where aa=alpha (00 to ff); bb=blue (00 to ff); gg=green (00 to ff); rr=red (00 to
ff). For example, if you want to apply a blue color with 50 percent opacity to an
overlay, you would specify the following:
Background color of the balloon (optional). Color and opacity (alpha) values are
expressed in hexadecimal notation. The range of values for any one color is 0 to
255 (00 to ff). The order of expression is aabbggrr, where aa=alpha (00 to ff);
bb=blue (00 to ff); gg=green (00 to ff); rr=red (00 to ff). For alpha, 00 is fully
transparent and ff is fully opaque. For example, if you want to apply a blue color
with 50 percent opacity to an overlay, you would specify the following:
Note: The use of the
protected String textColor
Foreground color for text. The default is black (ff000000).
protected String text
For example, in the following KML excerpt, $[name] and $[description] fields will
be replaced by the
$[description]
Text displayed in the balloon. If no text is specified, Google Earth draws the default
balloon (with the Feature
You can add entities to the
protected DisplayMode displayMode
default, hide
See Also: Seeprotected List<AbstractObject> balloonStyleObjectExtension
public void setColor(String value)
value - allowed object is
Stringcolorpublic void setBgColor(String value)
value - allowed object is
StringbgColorpublic void setTextColor(String value)
value - allowed object is
StringtextColorpublic DisplayMode getDisplayMode()
DisplayModedisplayModepublic void setDisplayMode(DisplayMode value)
value - allowed object is
DisplayModedisplayModepublic List<Object> getBalloonStyleSimpleExtension()
balloonStyleSimpleExtensionpublic List<AbstractObject> getBalloonStyleObjectExtension()
balloonStyleObjectExtensionpublic void setBalloonStyleSimpleExtension(List<Object> balloonStyleSimpleExtension)
balloonStyleSimpleExtension - balloonStyleSimpleExtensionpublic BalloonStyle addToBalloonStyleSimpleExtension(Object balloonStyleSimpleExtension)
balloonStyleSimpleExtension - Objects of the following type are allowed in the list: Objectpublic void setBalloonStyleObjectExtension(List<AbstractObject> balloonStyleObjectExtension)
balloonStyleObjectExtension - balloonStyleObjectExtensionpublic BalloonStyle addToBalloonStyleObjectExtension(AbstractObject balloonStyleObjectExtension)
balloonStyleObjectExtension - Objects of the following type are allowed in the list: AbstractObjectpublic void setObjectSimpleExtension(List<Object> objectSimpleExtension)
setObjectSimpleExtension in class SubStyleobjectSimpleExtensionpublic BalloonStyle addToObjectSimpleExtension(Object objectSimpleExtension)
AbstractObjectaddToObjectSimpleExtension in class SubStyleobjectSimpleExtension - Objects of the following type are allowed in the list: Objectpublic void setSubStyleSimpleExtension(List<Object> subStyleSimpleExtension)
SubStylesetSubStyleSimpleExtension in class SubStylesubStyleSimpleExtensionpublic BalloonStyle addToSubStyleSimpleExtension(Object subStyleSimpleExtension)
SubStyleaddToSubStyleSimpleExtension in class SubStylesubStyleSimpleExtension - Objects of the following type are allowed in the list: Objectpublic void setSubStyleObjectExtension(List<AbstractObject> subStyleObjectExtension)
SubStyleNote:
This method does not make use of the fluent pattern.If you would like to make it fluent, use SubStyle.withSubStyleObjectExtension(java.util.List<de.micromata.opengis.kml.v_2_2_0.AbstractObject>) instead.
setSubStyleObjectExtension in class SubStylesubStyleObjectExtensionpublic BalloonStyle addToSubStyleObjectExtension(AbstractObject subStyleObjectExtension)
SubStyleaddToSubStyleObjectExtension in class SubStylesubStyleObjectExtension - Objects of the following type are allowed in the list: AbstractObjectpublic BalloonStyle withColor(String color)
color - required parametersetColor(String)public BalloonStyle withBgColor(String bgColor)
bgColor - required parametersetBgColor(String)public BalloonStyle withTextColor(String textColor)
textColor - required parametersetTextColor(String)public BalloonStyle withText(String text)
text - required parametersetText(String)public BalloonStyle withDisplayMode(DisplayMode displayMode)
displayMode - required parametersetDisplayMode(DisplayMode)public BalloonStyle withBalloonStyleSimpleExtension(List<Object> balloonStyleSimpleExtension)
balloonStyleSimpleExtension - required parameter#setBalloonStyleSimpleExtension(Listpublic BalloonStyle withBalloonStyleObjectExtension(List<AbstractObject> balloonStyleObjectExtension)
balloonStyleObjectExtension - required parameter#setBalloonStyleObjectExtension(List) public BalloonStyle withObjectSimpleExtension(List<Object> objectSimpleExtension)
AbstractObjectwithObjectSimpleExtension in class SubStyleobjectSimpleExtension - required parameter#setObjectSimpleExtension(Listpublic BalloonStyle withId(String id)
AbstractObjectwithId in class SubStyleid - required parameterAbstractObject.setId(String)public BalloonStyle withTargetId(String targetId)
AbstractObjectwithTargetId in class SubStyletargetId - required parameterAbstractObject.setTargetId(String)public BalloonStyle withSubStyleSimpleExtension(List<Object> subStyleSimpleExtension)
SubStylewithSubStyleSimpleExtension in class SubStylesubStyleSimpleExtension - required parameter#setSubStyleSimpleExtension(Listpublic BalloonStyle withSubStyleObjectExtension(List<AbstractObject> subStyleObjectExtension)
SubStylewithSubStyleObjectExtension in class SubStylesubStyleObjectExtension - required parameter#setSubStyleObjectExtension(List) public BalloonStyle clone()
Copyright © 2014 Micromata GmbH. All rights reserved.