Class GlobeAnnotationBalloon

    • Field Detail

      • altitudeMode

        protected int altitudeMode
      • annotation

        protected GlobeAnnotation annotation
        Annotation used to render the balloon.
    • Constructor Detail

      • GlobeAnnotationBalloon

        public GlobeAnnotationBalloon​(java.lang.String text,
                                      Position position)
        Create the balloon.
        Parameters:
        text - Text to display in the balloon. May not be null.
        position - The balloon's initial position. May not be null.
    • Method Detail

      • setPosition

        public void setPosition​(Position position)
        Set the balloon to a position on the globe.
        Specified by:
        setPosition in interface GlobeBalloon
        Parameters:
        position - New position for the balloon.
      • getPosition

        public Position getPosition()
        Get the position of the balloon.
        Specified by:
        getPosition in interface GlobeBalloon
        Returns:
        The position of the balloon.
      • 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 interface GlobeBalloon
        Parameters:
        altitudeMode - the altitude mode