|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.WWObjectImpl
gov.nasa.worldwind.render.AbstractBalloon
gov.nasa.worldwind.render.AbstractAnnotationBalloon
gov.nasa.worldwind.render.GlobeAnnotationBalloon
public class GlobeAnnotationBalloon
An AnnotationBalloon that is attached to a position on the globe.
| Field Summary | |
|---|---|
protected int |
altitudeMode
|
protected GlobeAnnotation |
annotation
Annotation used to render the balloon. |
protected Position |
position
|
| Fields inherited from class gov.nasa.worldwind.render.AbstractBalloon |
|---|
activeAttributes, alwaysOnTop, attributes, defaultAttributes, delegateOwner, highlightAttributes, highlighted, maxActiveAltitude, minActiveAltitude, pickEnabled, text, textDecoder, visible |
| Constructor Summary | |
|---|---|
GlobeAnnotationBalloon(String text,
Position position)
Create the balloon. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class gov.nasa.worldwind.render.AbstractAnnotationBalloon |
|---|
applyAttributesToAnnotation, computeOffsets, getBounds, render |
| Methods inherited from class gov.nasa.worldwind.render.AbstractBalloon |
|---|
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 |
| Methods inherited from class gov.nasa.worldwind.WWObjectImpl |
|---|
onMessage, propertyChange |
| Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface gov.nasa.worldwind.render.Balloon |
|---|
getAttributes, getBounds, getDelegateOwner, getHighlightAttributes, getMaxActiveAltitude, getMinActiveAltitude, getText, getTextDecoder, isAlwaysOnTop, isPickEnabled, isVisible, setAlwaysOnTop, setAttributes, setDelegateOwner, setHighlightAttributes, setMaxActiveAltitude, setMinActiveAltitude, setPickEnabled, setText, setTextDecoder, setVisible |
| Methods inherited from interface gov.nasa.worldwind.render.Renderable |
|---|
render |
| Methods inherited from interface gov.nasa.worldwind.render.Highlightable |
|---|
isHighlighted, setHighlighted |
| Methods inherited from interface gov.nasa.worldwind.avlist.AVList |
|---|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
| Field Detail |
|---|
protected int altitudeMode
protected GlobeAnnotation annotation
protected Position position
| Constructor Detail |
|---|
public GlobeAnnotationBalloon(String text,
Position position)
text - Text to display in the balloon. May not be null.position - The balloon's initial position. May not be null.| Method Detail |
|---|
protected void computePosition(DrawContext dc)
computePosition in class AbstractAnnotationBalloondc - Draw context.protected GlobeAnnotation createAnnotation()
createAnnotation in class AbstractAnnotationBalloonpublic int getAltitudeMode()
GlobeBalloon.setAltitudeMode(int) for a description of the modes.
getAltitudeMode in interface GlobeBalloonprotected GlobeAnnotation getAnnotation()
getAnnotation in class AbstractAnnotationBalloonpublic Position getPosition()
getPosition in interface GlobeBalloonpublic void setAltitudeMode(int altitudeMode)
WorldWind.ABSOLUTE
-- the balloon is placed at its specified position.
setAltitudeMode in interface GlobeBalloonaltitudeMode - the altitude modepublic void setPosition(Position position)
setPosition in interface GlobeBalloonposition - New position for the balloon.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||