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 |
defaultAttributes
The 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, propertyChange
addPropertyChangeListener, 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, setValues
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
render
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
protected 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 Balloon
protected String getDecodedText()
TextDecoder
.TextDecoder
,
setTextDecoder(gov.nasa.worldwind.util.TextDecoder)
,
getTextDecoder()
public Object getDelegateOwner()
getDelegateOwner
in interface Balloon
public BalloonAttributes getHighlightAttributes()
getHighlightAttributes
in interface Balloon
public double getMaxActiveAltitude()
getMaxActiveAltitude
in interface Balloon
Balloon.setMaxActiveAltitude(double)
,
Balloon.getMinActiveAltitude()
public double getMinActiveAltitude()
getMinActiveAltitude
in interface Balloon
Balloon.setMinActiveAltitude(double)
,
Balloon.getMaxActiveAltitude()
public String getText()
getText
in interface Balloon
Balloon.getTextDecoder()
,
Balloon.setTextDecoder(gov.nasa.worldwind.util.TextDecoder)
public TextDecoder getTextDecoder()
getTextDecoder
in interface Balloon
public boolean isAlwaysOnTop()
isAlwaysOnTop
in interface Balloon
public boolean isHighlighted()
isHighlighted
in interface Highlightable
public boolean isPickEnabled()
isPickEnabled
in interface Balloon
public boolean isVisible()
public void setAlwaysOnTop(boolean alwaysOnTop)
setAlwaysOnTop
in interface Balloon
alwaysOnTop
- True if the balloon should always render above other objects.public void setAttributes(BalloonAttributes attributes)
setAttributes
in interface Balloon
attributes
- New attributespublic void setDelegateOwner(Object delegateOwner)
setDelegateOwner
in interface Balloon
delegateOwner
- 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 Balloon
highlightAttributes
- Attributes to use when the balloon is highlighted.public void setHighlighted(boolean highlighted)
setHighlighted
in interface Highlightable
highlighted
- true to highlight the shape, otherwise false.public void setMaxActiveAltitude(double maxActiveAltitude)
setMaxActiveAltitude
in interface Balloon
maxActiveAltitude
- the maximum altitude, in meters, for which the balloon is displayed.Balloon.getMaxActiveAltitude()
,
Balloon.setMinActiveAltitude(double)
public void setMinActiveAltitude(double minActiveAltitude)
setMinActiveAltitude
in interface Balloon
minActiveAltitude
- the minimum altitude, in meters, for which the balloon is displayed.Balloon.getMinActiveAltitude()
,
Balloon.setMaxActiveAltitude(double)
public void setPickEnabled(boolean enable)
setPickEnabled
in interface Balloon
enable
- True if the balloon can be picked, false if not.public void setText(String text)
public void setTextDecoder(TextDecoder decoder)
setTextDecoder
in interface Balloon
decoder
- New decoder.public void setVisible(boolean visible)
setVisible
in interface Balloon
visible
- true if the balloon is visible and should be rendered.