Class TooltipText

    • Constructor Detail

      • TooltipText

        public TooltipText​(CharSequence tipText,
                           Font tipFont,
                           com.jogamp.math.Vec4f backColor,
                           com.jogamp.math.Vec4f labelColor,
                           float scaleY,
                           long delayMS,
                           int renderModes)
        Ctor of TooltipText.
        Parameters:
        tipText - HUD tip text
        tipFont - HUD tip font
        backColor - optional HUD tip background color, if null a slightly transparent white background is used
        labelColor - optional HUD tip front color, if null an opaque almost-black is used
        scaleY - HUD tip vertical scale against tool height
        delayMS - delay until HUD tip is visible after timer start (mouse moved)
        renderModes - Graph's Region render modes, see create(..).
      • TooltipText

        public TooltipText​(CharSequence tipText,
                           Font tipFont,
                           float scaleY)
        Ctor of TooltipText using Tooltip.DEFAULT_DELAY, Region.VBAA_RENDERING_BIT and a slightly transparent white background with an opaque almost-black text color.
        Parameters:
        tipText - HUD tip text
        tipFont - HUD tip font
        scaleY - HUD tip vertical scale against tool height
        tool - the tool shape for this tip