Class TipUtil

java.lang.Object
org.nuiton.jaxx.widgets.extra.tooltip.TipUtil

public class TipUtil
extends java.lang.Object
Static utility methods for focusable tips.
Version:
1.0
Author:
Robert Futrell
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected static java.lang.String COPY_ICON_PATH  
  • Method Summary

    Modifier and Type Method Description
    static void addCopyContextMenu​(FocusableTip focusableTip)
    Add context menu for paste selected content
    protected static void addCopyContextMenu​(TipWindow tipWindows)  
    static java.awt.Color getToolTipBackground()
    Returns the default background color to use for tool tip windows.
    static void tweakTipEditorPane​(javax.swing.JEditorPane textArea)
    Tweaks a JEditorPane so it can be used to render the content in a focusable pseudo-tool tip.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • COPY_ICON_PATH

      protected static final java.lang.String COPY_ICON_PATH
      See Also:
      Constant Field Values
  • Method Details

    • getToolTipBackground

      public static java.awt.Color getToolTipBackground()
      Returns the default background color to use for tool tip windows.
      Returns:
      The default background color.
    • tweakTipEditorPane

      public static void tweakTipEditorPane​(javax.swing.JEditorPane textArea)
      Tweaks a JEditorPane so it can be used to render the content in a focusable pseudo-tool tip. It is assumed that the editor pane is using an HTMLDocument.
      Parameters:
      textArea - The editor pane to tweak.
    • addCopyContextMenu

      public static void addCopyContextMenu​(FocusableTip focusableTip)
      Add context menu for paste selected content
      Parameters:
      focusableTip - to add copy context menu
    • addCopyContextMenu

      protected static void addCopyContextMenu​(TipWindow tipWindows)