Class TipUtil
- java.lang.Object
-
- org.nuiton.jaxx.widgets.extra.tooltip.TipUtil
-
public class TipUtil extends Object
Static utility methods for focusable tips.- Version:
- 1.0
- Author:
- Robert Futrell
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
COPY_ICON_PATH
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addCopyContextMenu(FocusableTip focusableTip)
Add context menu for paste selected contentprotected static void
addCopyContextMenu(TipWindow tipWindows)
static Color
getToolTipBackground()
Returns the default background color to use for tool tip windows.static void
tweakTipEditorPane(JEditorPane textArea)
Tweaks aJEditorPane
so it can be used to render the content in a focusable pseudo-tool tip.
-
-
-
Field Detail
-
COPY_ICON_PATH
protected static final String COPY_ICON_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getToolTipBackground
public static Color getToolTipBackground()
Returns the default background color to use for tool tip windows.- Returns:
- The default background color.
-
tweakTipEditorPane
public static void tweakTipEditorPane(JEditorPane textArea)
Tweaks aJEditorPane
so 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
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)
-
-