public interface Balloon extends Renderable, Highlightable, AVList
BalloonAttributes
Modifier and Type | Method and Description |
---|---|
BalloonAttributes |
getAttributes()
Get the "normal" balloon attributes.
|
Rectangle |
getBounds(DrawContext dc)
Get the balloon bounding
Rectangle using OGL coordinates - bottom-left corner x and y relative
to the WorldWindow bottom-left corner, and the balloon callout width and height. |
Object |
getDelegateOwner()
Returns the delegate owner of the balloon.
|
BalloonAttributes |
getHighlightAttributes()
Get the highlight attributes.
|
double |
getMaxActiveAltitude()
Returns the maximum eye altitude, in meters, for which the balloon is displayed.
|
double |
getMinActiveAltitude()
Returns the minimum eye altitude, in meters, for which the balloon is displayed.
|
String |
getText()
Get the balloon text.
|
TextDecoder |
getTextDecoder()
Get the text decoder that will process the balloon text.
|
boolean |
isAlwaysOnTop()
Is the balloon always on top?
|
boolean |
isPickEnabled()
Is the balloon enabled for picking?
|
boolean |
isVisible()
Get whether the annotation is visible and should be rendered.
|
void |
setAlwaysOnTop(boolean alwaysOnTop)
Set the balloon to always on top or not.
|
void |
setAttributes(BalloonAttributes attrs)
Set the "normal" balloon attributes.
|
void |
setDelegateOwner(Object owner)
Specifies the delegate owner of the balloon.
|
void |
setHighlightAttributes(BalloonAttributes attrs)
Set the highlight attributes.
|
void |
setMaxActiveAltitude(double maxActiveAltitude)
Specifies the maximum eye altitude, in meters, for which the balloon is displayed.
|
void |
setMinActiveAltitude(double minActiveAltitude)
Specifies the minimum eye altitude, in meters, for which the balloon is displayed.
|
void |
setPickEnabled(boolean enable)
Set the balloon to be pick enabled or not.
|
void |
setText(String text)
Set the balloon text.
|
void |
setTextDecoder(TextDecoder decoder)
Set a text decoder to process the balloon text.
|
void |
setVisible(boolean visible)
Set whether the balloon is visible and should be rendered.
|
render
isHighlighted, setHighlighted
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
BalloonAttributes getAttributes()
Rectangle getBounds(DrawContext dc)
Rectangle
using OGL coordinates - bottom-left corner x and y relative
to the WorldWindow
bottom-left corner, and the balloon callout width and height.
The balloon offset from it's reference point is factored in such that the callout leader shape and reference
point are included in the bounding rectangle.dc
- the current DrawContext.Rectangle
using OGL viewport coordinates.IllegalArgumentException
- if dc
is null.Object getDelegateOwner()
BalloonAttributes getHighlightAttributes()
double getMaxActiveAltitude()
setMaxActiveAltitude(double)
,
getMinActiveAltitude()
double getMinActiveAltitude()
setMinActiveAltitude(double)
,
getMaxActiveAltitude()
String getText()
getTextDecoder()
,
setTextDecoder(gov.nasa.worldwind.util.TextDecoder)
TextDecoder getTextDecoder()
boolean isAlwaysOnTop()
boolean isPickEnabled()
boolean isVisible()
void setAlwaysOnTop(boolean alwaysOnTop)
alwaysOnTop
- True if the balloon should always render above other objects.void setAttributes(BalloonAttributes attrs)
attrs
- New attributesvoid setDelegateOwner(Object owner)
owner
- the object to use as the pickable object returned during picking, or null to return the balloon.void setHighlightAttributes(BalloonAttributes attrs)
attrs
- Attributes to use when the balloon is highlighted.void setMaxActiveAltitude(double maxActiveAltitude)
maxActiveAltitude
- the maximum altitude, in meters, for which the balloon is displayed.getMaxActiveAltitude()
,
setMinActiveAltitude(double)
void setMinActiveAltitude(double minActiveAltitude)
minActiveAltitude
- the minimum altitude, in meters, for which the balloon is displayed.getMinActiveAltitude()
,
setMaxActiveAltitude(double)
void setPickEnabled(boolean enable)
enable
- True if the balloon can be picked, false if not.void setText(String text)
text
- New balloon text.void setTextDecoder(TextDecoder decoder)
decoder
- New decoder.void setVisible(boolean visible)
visible
- true if the balloon is visible and should be rendered.