Package gov.nasa.worldwind.ogc.kml.impl
Class KMLGlobeBalloonImpl
- java.lang.Object
-
- gov.nasa.worldwind.ogc.kml.impl.KMLAbstractBalloon
-
- gov.nasa.worldwind.ogc.kml.impl.KMLGlobeBalloonImpl
-
- All Implemented Interfaces:
AVList
,Balloon
,GlobeBalloon
,Highlightable
,Renderable
,gov.nasa.worldwind.util.webview.WebResourceResolver
,java.beans.PropertyChangeListener
,java.util.EventListener
public class KMLGlobeBalloonImpl extends KMLAbstractBalloon implements GlobeBalloon
A KML Balloon attached to a point on the globe.
-
-
Field Summary
Fields Modifier and Type Field Description protected GlobeBalloon
balloon
The contained balloon.-
Fields inherited from class gov.nasa.worldwind.ogc.kml.impl.KMLAbstractBalloon
DISPLAY_MODE_DEFAULT, DISPLAY_MODE_HIDE, displayMode, highlightAttributesResolved, highlightText, normalAttributesResolved, normalText, parent, usingDefaultText
-
-
Constructor Summary
Constructors Constructor Description KMLGlobeBalloonImpl(GlobeBalloon balloon, KMLAbstractFeature feature)
Create the balloon.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAltitudeMode()
Returns the balloon's altitude mode.GlobeBalloon
getBalloon()
Get the Balloon object that is contained in the KMLBalloon object.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.ogc.kml.impl.KMLAbstractBalloon
addHyperlinks, addPropertyChangeListener, addPropertyChangeListener, assembleBalloonAttributes, clearList, copy, createDefaultBalloonText, createDefaultExtendedDataText, createDefaultSchemaDataText, createTextDecoder, determineActiveText, firePropertyChange, firePropertyChange, getAttributes, getBounds, getDelegateOwner, getDisplayMode, getEntries, getHighlightAttributes, getInitialBalloonAttributes, getMaxActiveAltitude, getMinActiveAltitude, getStringValue, getText, getTextDecoder, getValue, getValues, hasKey, initialize, isAlwaysOnTop, isHighlighted, isPickEnabled, isVisible, makeAttributesCurrent, mustAddHyperlinks, propertyChange, removeKey, removePropertyChangeListener, removePropertyChangeListener, render, resolve, setAlwaysOnTop, setAttributes, setDelegateOwner, setDisplayMode, setHighlightAttributes, setHighlighted, setMaxActiveAltitude, setMinActiveAltitude, setPickEnabled, setText, setTextDecoder, setValue, setValues, setVisible
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
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.Highlightable
isHighlighted, setHighlighted
-
Methods inherited from interface gov.nasa.worldwind.render.Renderable
render
-
-
-
-
Field Detail
-
balloon
protected GlobeBalloon balloon
The contained balloon.
-
-
Constructor Detail
-
KMLGlobeBalloonImpl
public KMLGlobeBalloonImpl(GlobeBalloon balloon, KMLAbstractFeature feature)
Create the balloon.- Parameters:
balloon
- Balloon to apply KML styling to.feature
- The feature that defines the balloon style.
-
-
Method Detail
-
getBalloon
public GlobeBalloon getBalloon()
Get the Balloon object that is contained in the KMLBalloon object.- Specified by:
getBalloon
in classKMLAbstractBalloon
- Returns:
- The balloon contained by this object.
-
setPosition
public void setPosition(Position position)
Set the balloon to a position on the globe.. This method passes through to the contained balloon.- Specified by:
setPosition
in interfaceGlobeBalloon
- Parameters:
position
- New position for the balloon.
-
getPosition
public Position getPosition()
Get the position of the balloon.. This method passes through to the contained balloon.- Specified by:
getPosition
in interfaceGlobeBalloon
- Returns:
- The position of the balloon.
-
getAltitudeMode
public int getAltitudeMode()
Returns the balloon's altitude mode. SeeGlobeBalloon.setAltitudeMode(int)
for a description of the modes.. This method passes through to the contained balloon.- Specified by:
getAltitudeMode
in interfaceGlobeBalloon
- Returns:
- the balloon's altitude mode.
-
setAltitudeMode
public void setAltitudeMode(int altitudeMode)
Specifies the balloon's altitude mode. Recognized modes are:- @link WorldWind#CLAMP_TO_GROUND} -- the balloon is placed on the terrain at the latitude and longitude of its position.
- @link WorldWind#RELATIVE_TO_GROUND} -- the balloon is placed above the terrain at the latitude and longitude of its position and the distance specified by its elevation.
WorldWind.ABSOLUTE
-- the balloon is placed at its specified position.
- Specified by:
setAltitudeMode
in interfaceGlobeBalloon
- Parameters:
altitudeMode
- the altitude mode
-
-