Class ToolTipAnnotation

    • Constructor Detail

      • ToolTipAnnotation

        public ToolTipAnnotation​(java.lang.String text)
        Create a tool tip using specified text.
        Parameters:
        text - the text to display in the tool tip.
    • Method Detail

      • initializeAttributes

        protected void initializeAttributes()
      • getTooltipOffset

        public java.awt.Point getTooltipOffset()
        Indicates the screen-coordinate offset of the tool tip from the tool tip position.
        Returns:
        the tool tip offset.
      • setTooltipOffset

        public void setTooltipOffset​(java.awt.Point tooltipOffset)
        Specifies the screen-coordinate offset of the tool tip from the tool tip position.
        Parameters:
        tooltipOffset - the tool tip offset. The default is five pixels to the left and up.
      • getOffsetX

        protected int getOffsetX()
      • getOffsetY

        protected int getOffsetY()
      • adjustDrawPointToViewport

        protected java.awt.Point adjustDrawPointToViewport​(java.awt.Point point,
                                                           java.awt.Rectangle bounds,
                                                           java.awt.Rectangle viewport)