public class IdeTooltipManager extends java.lang.Object implements Disposable, java.awt.event.AWTEventListener
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
static java.awt.Color |
GRAPHITE_COLOR |
static ColorKey |
TOOLTIP_COLOR_KEY |
Constructor and Description |
---|
IdeTooltipManager() |
Modifier and Type | Method and Description |
---|---|
void |
cancelAutoHide() |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
void |
eventDispatched(java.awt.AWTEvent event) |
java.awt.Color |
getBorderColor(boolean awtTooltip) |
IdeTooltip |
getCustomTooltip(javax.swing.JComponent component) |
static IdeTooltipManager |
getInstance() |
java.awt.Color |
getLinkForeground(boolean awtTooltip) |
java.awt.Color |
getTextBackground(boolean awtTooltip) |
java.awt.Font |
getTextFont(boolean awtTooltip) |
java.awt.Color |
getTextForeground(boolean awtTooltip) |
java.lang.String |
getUlImg(boolean awtTooltip) |
boolean |
hasCurrent() |
boolean |
hasScheduled() |
void |
hide(IdeTooltip tooltip) |
boolean |
hideCurrent(java.awt.event.MouseEvent me) |
void |
hideCurrentNow(boolean animationEnabled) |
static javax.swing.JEditorPane |
initPane(Html html,
HintHint hintHint,
javax.swing.JLayeredPane layeredPane) |
static javax.swing.JEditorPane |
initPane(Html html,
HintHint hintHint,
javax.swing.JLayeredPane layeredPane,
boolean limitWidthToScreen) |
static javax.swing.JEditorPane |
initPane(java.lang.String text,
HintHint hintHint,
javax.swing.JLayeredPane layeredPane) |
boolean |
isOpaqueAllowed(boolean awtTooltip) |
boolean |
isOwnBorderAllowed(boolean awtTooltip) |
boolean |
isProcessing(java.awt.Component tooltipOwner)
Checks the component for tooltip visualization activities.
|
boolean |
isQueuedToShow(IdeTooltip tooltip) |
static void |
setBorder(javax.swing.JComponent pane) |
static void |
setColors(javax.swing.JComponent pane) |
void |
setCustomTooltip(javax.swing.JComponent component,
IdeTooltip tooltip) |
IdeTooltip |
show(IdeTooltip tooltip,
boolean now) |
IdeTooltip |
show(IdeTooltip tooltip,
boolean now,
boolean animationEnabled) |
void |
updateShownTooltip(java.awt.Component tooltipOwner)
Updates shown tooltip pop-up in current position with actual tooltip text if it is already visible.
|
public static final ColorKey TOOLTIP_COLOR_KEY
public static final java.awt.Color GRAPHITE_COLOR
public void eventDispatched(java.awt.AWTEvent event)
eventDispatched
in interface java.awt.event.AWTEventListener
public boolean isProcessing(java.awt.Component tooltipOwner)
public void updateShownTooltip(java.awt.Component tooltipOwner)
tooltipOwner
- for which the tooltip is updatingpublic void setCustomTooltip(javax.swing.JComponent component, IdeTooltip tooltip)
public IdeTooltip getCustomTooltip(javax.swing.JComponent component)
public IdeTooltip show(IdeTooltip tooltip, boolean now)
public IdeTooltip show(IdeTooltip tooltip, boolean now, boolean animationEnabled)
public java.awt.Color getTextForeground(boolean awtTooltip)
public java.awt.Color getLinkForeground(boolean awtTooltip)
public java.awt.Color getTextBackground(boolean awtTooltip)
public java.lang.String getUlImg(boolean awtTooltip)
public java.awt.Color getBorderColor(boolean awtTooltip)
public boolean isOwnBorderAllowed(boolean awtTooltip)
public boolean isOpaqueAllowed(boolean awtTooltip)
public java.awt.Font getTextFont(boolean awtTooltip)
public boolean hasCurrent()
public boolean hasScheduled()
public boolean hideCurrent(java.awt.event.MouseEvent me)
public void hideCurrentNow(boolean animationEnabled)
public void dispose()
Disposable
dispose
in interface Disposable
public static IdeTooltipManager getInstance()
public void hide(IdeTooltip tooltip)
public void cancelAutoHide()
public static javax.swing.JEditorPane initPane(java.lang.String text, HintHint hintHint, javax.swing.JLayeredPane layeredPane)
public static javax.swing.JEditorPane initPane(Html html, HintHint hintHint, javax.swing.JLayeredPane layeredPane)
public static javax.swing.JEditorPane initPane(Html html, HintHint hintHint, javax.swing.JLayeredPane layeredPane, boolean limitWidthToScreen)
public static void setColors(javax.swing.JComponent pane)
public static void setBorder(javax.swing.JComponent pane)
public boolean isQueuedToShow(IdeTooltip tooltip)