public class LineTooltipRenderer extends ComparableObject.Impl implements TooltipRenderer
Modifier and Type | Class and Description |
---|---|
static interface |
LineTooltipRenderer.TooltipReloader |
ComparableObject.Impl
Modifier and Type | Field and Description |
---|---|
protected int |
myCurrentWidth |
protected java.lang.String |
myText
Html-like text for showing
Please note that the tooltip size is calculated dynamically based on the html so
if the html content doesn't allow soft line breaks the tooltip can be too big for showing
e.g.
|
NONE
Constructor and Description |
---|
LineTooltipRenderer(java.lang.String text,
int width,
java.lang.Object [] comparable) |
LineTooltipRenderer(java.lang.String text,
java.lang.Object [] comparable) |
Modifier and Type | Method and Description |
---|---|
void |
addBelow(java.lang.String text) |
protected boolean |
canAutoHideOn(TooltipEvent event) |
static void |
correctLocation(Editor editor,
javax.swing.JComponent tooltipComponent,
java.awt.Point p,
boolean alignToRight,
boolean expanded,
int currentWidth) |
LightweightHint |
createHint(Editor editor,
java.awt.Point p,
boolean alignToRight,
TooltipGroup group,
HintHint hintHint,
boolean newLayout,
boolean highlightActions,
boolean limitWidthToScreen,
LineTooltipRenderer.TooltipReloader tooltipReloader) |
LineTooltipRenderer |
createRenderer(java.lang.String text,
int width) |
protected java.lang.String |
dressDescription(Editor editor,
java.lang.String tooltipText,
boolean expanded) |
protected void |
fillPanel(Editor editor,
javax.swing.JPanel component,
LightweightHint hint,
HintHint hintHint,
java.util.List<? super AnAction> actions,
LineTooltipRenderer.TooltipReloader expandCallback,
boolean newLayout,
boolean highlightActions) |
java.lang.String |
getText() |
protected static boolean |
isActiveHtml(java.lang.String html) |
protected boolean |
isContentAction(java.lang.String dressedText) |
protected void |
onHide(javax.swing.JComponent contentComponent) |
LightweightHint |
show(Editor editor,
java.awt.Point p,
boolean alignToRight,
TooltipGroup group,
HintHint hintHint) |
equals, getEqualityObjects, hashCode
protected java.lang.String myText
protected final int myCurrentWidth
public LineTooltipRenderer(java.lang.String text, java.lang.Object [] comparable)
public LineTooltipRenderer(java.lang.String text, int width, java.lang.Object [] comparable)
public LightweightHint show(Editor editor, java.awt.Point p, boolean alignToRight, TooltipGroup group, HintHint hintHint)
show
in interface TooltipRenderer
public LightweightHint createHint(Editor editor, java.awt.Point p, boolean alignToRight, TooltipGroup group, HintHint hintHint, boolean newLayout, boolean highlightActions, boolean limitWidthToScreen, LineTooltipRenderer.TooltipReloader tooltipReloader)
protected boolean isContentAction(java.lang.String dressedText)
protected boolean canAutoHideOn(TooltipEvent event)
protected void fillPanel(Editor editor, javax.swing.JPanel component, LightweightHint hint, HintHint hintHint, java.util.List<? super AnAction> actions, LineTooltipRenderer.TooltipReloader expandCallback, boolean newLayout, boolean highlightActions)
public static void correctLocation(Editor editor, javax.swing.JComponent tooltipComponent, java.awt.Point p, boolean alignToRight, boolean expanded, int currentWidth)
protected void onHide(javax.swing.JComponent contentComponent)
public LineTooltipRenderer createRenderer(java.lang.String text, int width)
protected java.lang.String dressDescription(Editor editor, java.lang.String tooltipText, boolean expanded)
protected static boolean isActiveHtml(java.lang.String html)
public void addBelow(java.lang.String text)
public java.lang.String getText()