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.StringCOPY_ICON_PATH -
Method Summary
Modifier and Type Method Description static voidaddCopyContextMenu(FocusableTip focusableTip)Add context menu for paste selected contentprotected static voidaddCopyContextMenu(TipWindow tipWindows)static java.awt.ColorgetToolTipBackground()Returns the default background color to use for tool tip windows.static voidtweakTipEditorPane(javax.swing.JEditorPane textArea)Tweaks aJEditorPaneso 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 aJEditorPaneso it can be used to render the content in a focusable pseudo-tool tip. It is assumed that the editor pane is using anHTMLDocument.- Parameters:
textArea- The editor pane to tweak.
-
addCopyContextMenu
Add context menu for paste selected content- Parameters:
focusableTip- to add copy context menu
-
addCopyContextMenu
-