Class ScreenAnnotationBalloon

    • Field Detail

      • screenPoint

        protected java.awt.Point screenPoint
      • annotation

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

      • ScreenAnnotationBalloon

        public ScreenAnnotationBalloon​(java.lang.String text,
                                       java.awt.Point point)
        Create the balloon.
        Parameters:
        text - Text to display in the balloon. May not be null.
        point - The balloon's screen point. This point is interpreted in a coordinate system with the origin at the upper left corner of the screen.
    • Method Detail

      • setScreenLocation

        public void setScreenLocation​(java.awt.Point point)
        Set the screen position of the balloon. This point is interpreted in a coordinate system with the origin at the upper left corner of the screen.
        Specified by:
        setScreenLocation in interface ScreenBalloon
        Parameters:
        point - Point in screen coordinates, with origin at upper left corner.
      • getScreenLocation

        public java.awt.Point getScreenLocation()
        Get the position of the balloon on the screen.
        Specified by:
        getScreenLocation in interface ScreenBalloon
        Returns:
        The screen location of the balloon.