public class FocusableTip
extends java.lang.Object
| Constructor and Description |
|---|
FocusableTip(javax.swing.JTextArea textArea,
javax.swing.event.HyperlinkListener listener) |
| Modifier and Type | Method and Description |
|---|---|
java.net.URL |
getImageBase()
Returns the base URL to use when loading images in this focusable tip.
|
java.awt.Dimension |
getMaxSize()
The maximum size for unfocused tool tips.
|
protected void |
invokeLater(java.lang.Runnable r) |
void |
possiblyDisposeOfTipWindow()
Disposes of the focusable tip currently displayed, if any.
|
void |
setImageBase(java.net.URL url)
Sets the base URL to use when loading images in this focusable tip.
|
void |
setMaxSize(java.awt.Dimension maxSize)
Sets the maximum size for unfocused tool tips.
|
void |
toolTipRequested(java.awt.event.MouseEvent e,
java.lang.String text)
Callback called when this tool tip is requested.
|
public FocusableTip(javax.swing.JTextArea textArea,
javax.swing.event.HyperlinkListener listener)
public java.net.URL getImageBase()
setImageBase(URL)public java.awt.Dimension getMaxSize()
null will use a default size.setMaxSize(Dimension)protected void invokeLater(java.lang.Runnable r)
public void possiblyDisposeOfTipWindow()
public void setImageBase(java.net.URL url)
url - The base URL to use.getImageBase()public void setMaxSize(java.awt.Dimension maxSize)
maxSize - The new maximum size. A value of null will
cause a default size to be used.getMaxSize()public void toolTipRequested(java.awt.event.MouseEvent e,
java.lang.String text)
e - The mouse event that is triggering the tool tip.text - The text to display.