public class LightweightHint extends UserDataHolderBase implements Hint
Modifier and Type | Field and Description |
---|---|
static Key<java.lang.Boolean> |
SHOWN_AT_DEBUG |
Constructor and Description |
---|
LightweightHint(javax.swing.JComponent component) |
Modifier and Type | Method and Description |
---|---|
void |
addHintListener(HintListener listener) |
protected void |
beforeShow() |
protected boolean |
canAutoHideOn(TooltipEvent event) |
boolean |
canControlAutoHide() |
java.awt.Rectangle |
getBounds() |
javax.swing.JComponent |
getComponent() |
IdeTooltip |
getCurrentIdeTooltip() |
java.awt.Point |
getLocationOn(javax.swing.JComponent c) |
java.awt.Dimension |
getSize() |
void |
hide()
Hides current hint object.
|
void |
hide(boolean ok) |
boolean |
isAwtTooltip() |
boolean |
isForceHideShadow() |
boolean |
isInsideHint(RelativePoint target) |
boolean |
isRealPopup() |
boolean |
isSelectingHint() |
boolean |
isVisible() |
protected void |
onPopupCancel() |
void |
pack() |
void |
removeHintListener(HintListener listener) |
void |
setCancelOnClickOutside(boolean b) |
void |
setCancelOnOtherWindowOpen(boolean b) |
void |
setFocusRequestor(javax.swing.JComponent c) |
void |
setForceHideShadow(boolean forceHideShadow) |
void |
setForceLightweightPopup(boolean forceLightweightPopup) |
void |
setForceShowAsPopup(boolean forceShowAsPopup) |
void |
setLocation(RelativePoint point) |
void |
setResizable(boolean b) |
void |
setSelectingHint(boolean selectingHint) |
void |
setSize(java.awt.Dimension size) |
void |
setTitle(java.lang.String title) |
void |
show(javax.swing.JComponent parentComponent,
int x,
int y,
javax.swing.JComponent focusBackComponent,
HintHint hintHint)
Shows the hint in the layered pane.
|
java.lang.String |
toString() |
void |
updateLocation(int x,
int y) |
void |
updatePosition(Balloon.Position position) |
boolean |
vetoesHiding() |
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
public static final Key<java.lang.Boolean> SHOWN_AT_DEBUG
public void setForceLightweightPopup(boolean forceLightweightPopup)
public void setForceShowAsPopup(boolean forceShowAsPopup)
public void setFocusRequestor(javax.swing.JComponent c)
public void setTitle(java.lang.String title)
public boolean isSelectingHint()
public void setSelectingHint(boolean selectingHint)
public void setCancelOnClickOutside(boolean b)
public void setCancelOnOtherWindowOpen(boolean b)
public void setResizable(boolean b)
protected boolean canAutoHideOn(TooltipEvent event)
public void show(javax.swing.JComponent parentComponent, int x, int y, javax.swing.JComponent focusBackComponent, HintHint hintHint)
x
and y
are in parentComponent
coordinate system. Note that the component
appears on 250 layer.protected void onPopupCancel()
protected void beforeShow()
public boolean vetoesHiding()
public boolean isForceHideShadow()
public void setForceHideShadow(boolean forceHideShadow)
public final java.awt.Rectangle getBounds()
public boolean isVisible()
public final boolean isRealPopup()
public void hide()
Hint
public void hide(boolean ok)
public void updateLocation(int x, int y)
public void updatePosition(Balloon.Position position)
public final javax.swing.JComponent getComponent()
public final void addHintListener(HintListener listener)
addHintListener
in interface Hint
public final void removeHintListener(HintListener listener)
removeHintListener
in interface Hint
public java.awt.Point getLocationOn(javax.swing.JComponent c)
public void setLocation(RelativePoint point)
setLocation
in interface Hint
public void setSize(java.awt.Dimension size)
public boolean isAwtTooltip()
public java.awt.Dimension getSize()
public boolean isInsideHint(RelativePoint target)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean canControlAutoHide()
public IdeTooltip getCurrentIdeTooltip()