public class GlobeAnnotationBalloon extends AbstractAnnotationBalloon implements GlobeBalloon
Modifier and Type | Field and Description |
---|---|
protected int |
altitudeMode |
protected GlobeAnnotation |
annotation
Annotation used to render the balloon.
|
protected Position |
position |
activeAttributes, alwaysOnTop, attributes, defaultAttributes, delegateOwner, highlightAttributes, highlighted, maxActiveAltitude, minActiveAltitude, pickEnabled, text, textDecoder, visible
Constructor and Description |
---|
GlobeAnnotationBalloon(String text,
Position position)
Create the balloon.
|
Modifier and Type | Method and Description |
---|---|
protected void |
computePosition(DrawContext dc)
Compute the annotation position, and set it in the annotation.
|
protected GlobeAnnotation |
createAnnotation()
Create an annotation to render the balloon.
|
int |
getAltitudeMode()
Returns the balloon's altitude mode.
|
protected GlobeAnnotation |
getAnnotation()
Get the annotation used to render the balloon.
|
Position |
getPosition()
Get the position of the balloon.
|
void |
setAltitudeMode(int altitudeMode)
Specifies the balloon's altitude mode.
|
void |
setPosition(Position position)
Set the balloon to a position on the globe.
|
applyAttributesToAnnotation, computeOffsets, getBounds, render
determineActiveAttributes, getActiveAttributes, getAttributes, getDecodedText, getDelegateOwner, getHighlightAttributes, getMaxActiveAltitude, getMinActiveAltitude, getText, getTextDecoder, isAlwaysOnTop, isHighlighted, isPickEnabled, isVisible, setAlwaysOnTop, setAttributes, setDelegateOwner, setHighlightAttributes, setHighlighted, setMaxActiveAltitude, setMinActiveAltitude, setPickEnabled, setText, setTextDecoder, setVisible
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
getAttributes, getBounds, getDelegateOwner, getHighlightAttributes, getMaxActiveAltitude, getMinActiveAltitude, getText, getTextDecoder, isAlwaysOnTop, isPickEnabled, isVisible, setAlwaysOnTop, setAttributes, setDelegateOwner, setHighlightAttributes, setMaxActiveAltitude, setMinActiveAltitude, setPickEnabled, setText, setTextDecoder, setVisible
render
isHighlighted, setHighlighted
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
protected int altitudeMode
protected GlobeAnnotation annotation
protected Position position
protected void computePosition(DrawContext dc)
computePosition
in class AbstractAnnotationBalloon
dc
- Draw context.protected GlobeAnnotation createAnnotation()
createAnnotation
in class AbstractAnnotationBalloon
public int getAltitudeMode()
GlobeBalloon.setAltitudeMode(int)
for a description of the modes.getAltitudeMode
in interface GlobeBalloon
protected GlobeAnnotation getAnnotation()
getAnnotation
in class AbstractAnnotationBalloon
public Position getPosition()
getPosition
in interface GlobeBalloon
public void setAltitudeMode(int altitudeMode)
WorldWind.ABSOLUTE
-- the balloon is placed at its specified position. setAltitudeMode
in interface GlobeBalloon
altitudeMode
- the altitude modepublic void setPosition(Position position)
setPosition
in interface GlobeBalloon
position
- New position for the balloon.