Class KMLGlobeBalloonImpl

    • 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 class KMLAbstractBalloon
        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 interface GlobeBalloon
        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 interface GlobeBalloon
        Returns:
        The position of the balloon.
      • getAltitudeMode

        public int getAltitudeMode()
        Returns the balloon's altitude mode. See GlobeBalloon.setAltitudeMode(int) for a description of the modes.. This method passes through to the contained balloon.
        Specified by:
        getAltitudeMode in interface GlobeBalloon
        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.
        . This method passes through to the contained balloon.
        Specified by:
        setAltitudeMode in interface GlobeBalloon
        Parameters:
        altitudeMode - the altitude mode