public abstract class AbstractBalloon extends WWObjectImpl implements Balloon
Balloon.| Modifier and Type | Field and Description | 
|---|---|
| protected BalloonAttributes | activeAttributes | 
| protected boolean | alwaysOnTop | 
| protected BalloonAttributes | attributes | 
| protected static BalloonAttributes | defaultAttributesThe attributes used if attributes are not specified. | 
| protected Object | delegateOwner | 
| protected BalloonAttributes | highlightAttributes | 
| protected boolean | highlighted | 
| protected double | maxActiveAltitude | 
| protected double | minActiveAltitude | 
| protected boolean | pickEnabled | 
| protected String | text | 
| protected TextDecoder | textDecoder | 
| protected boolean | visible | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | AbstractBalloon()Create a balloon. | 
| protected  | AbstractBalloon(String text)Create a balloon with text. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | determineActiveAttributes()Determines which attributes -- normal, highlight or default -- to use each frame. | 
| protected BalloonAttributes | getActiveAttributes()Get the active attributes, based on the highlight state. | 
| BalloonAttributes | getAttributes()Get the "normal" balloon attributes. | 
| protected String | getDecodedText()Get text after it has been processed by the text decoder. | 
| 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 | isHighlighted()Indicates whether to highlight the shape. | 
| 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 attributes)Set the "normal" balloon attributes. | 
| void | setDelegateOwner(Object delegateOwner)Specifies the delegate owner of the balloon. | 
| void | setHighlightAttributes(BalloonAttributes highlightAttributes)Set the highlight attributes. | 
| void | setHighlighted(boolean highlighted)Specifies whether to highlight the shape. | 
| 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. | 
onMessage, propertyChangeaddPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrenderaddPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValuesprotected BalloonAttributes activeAttributes
protected boolean alwaysOnTop
protected BalloonAttributes attributes
protected static final BalloonAttributes defaultAttributes
protected Object delegateOwner
protected BalloonAttributes highlightAttributes
protected boolean highlighted
protected double maxActiveAltitude
protected double minActiveAltitude
protected boolean pickEnabled
protected String text
protected TextDecoder textDecoder
protected boolean visible
protected AbstractBalloon()
protected AbstractBalloon(String text)
text - The balloon text.protected void determineActiveAttributes()
protected BalloonAttributes getActiveAttributes()
public BalloonAttributes getAttributes()
getAttributes in interface Balloonprotected String getDecodedText()
TextDecoder.TextDecoder, 
setTextDecoder(gov.nasa.worldwind.util.TextDecoder), 
getTextDecoder()public Object getDelegateOwner()
getDelegateOwner in interface Balloonpublic BalloonAttributes getHighlightAttributes()
getHighlightAttributes in interface Balloonpublic double getMaxActiveAltitude()
getMaxActiveAltitude in interface BalloonBalloon.setMaxActiveAltitude(double), 
Balloon.getMinActiveAltitude()public double getMinActiveAltitude()
getMinActiveAltitude in interface BalloonBalloon.setMinActiveAltitude(double), 
Balloon.getMaxActiveAltitude()public String getText()
getText in interface BalloonBalloon.getTextDecoder(), 
Balloon.setTextDecoder(gov.nasa.worldwind.util.TextDecoder)public TextDecoder getTextDecoder()
getTextDecoder in interface Balloonpublic boolean isAlwaysOnTop()
isAlwaysOnTop in interface Balloonpublic boolean isHighlighted()
isHighlighted in interface Highlightablepublic boolean isPickEnabled()
isPickEnabled in interface Balloonpublic boolean isVisible()
public void setAlwaysOnTop(boolean alwaysOnTop)
setAlwaysOnTop in interface BalloonalwaysOnTop - True if the balloon should always render above other objects.public void setAttributes(BalloonAttributes attributes)
setAttributes in interface Balloonattributes - New attributespublic void setDelegateOwner(Object delegateOwner)
setDelegateOwner in interface BalloondelegateOwner - the object to use as the pickable object returned during picking, or null to return the balloon.public void setHighlightAttributes(BalloonAttributes highlightAttributes)
setHighlightAttributes in interface BalloonhighlightAttributes - Attributes to use when the balloon is highlighted.public void setHighlighted(boolean highlighted)
setHighlighted in interface Highlightablehighlighted - true to highlight the shape, otherwise false.public void setMaxActiveAltitude(double maxActiveAltitude)
setMaxActiveAltitude in interface BalloonmaxActiveAltitude - the maximum altitude, in meters, for which the balloon is displayed.Balloon.getMaxActiveAltitude(), 
Balloon.setMinActiveAltitude(double)public void setMinActiveAltitude(double minActiveAltitude)
setMinActiveAltitude in interface BalloonminActiveAltitude - the minimum altitude, in meters, for which the balloon is displayed.Balloon.getMinActiveAltitude(), 
Balloon.setMaxActiveAltitude(double)public void setPickEnabled(boolean enable)
setPickEnabled in interface Balloonenable - True if the balloon can be picked, false if not.public void setText(String text)
public void setTextDecoder(TextDecoder decoder)
setTextDecoder in interface Balloondecoder - New decoder.public void setVisible(boolean visible)
setVisible in interface Balloonvisible - true if the balloon is visible and should be rendered.