public class FocusableTip extends Object
Constructor and Description |
---|
FocusableTip(JTextArea textArea,
HyperlinkListener listener) |
Modifier and Type | Method and Description |
---|---|
URL |
getImageBase()
Returns the base URL to use when loading images in this focusable tip.
|
Dimension |
getMaxSize()
The maximum size for unfocused tool tips.
|
void |
possiblyDisposeOfTipWindow()
Disposes of the focusable tip currently displayed, if any.
|
void |
setImageBase(URL url)
Sets the base URL to use when loading images in this focusable tip.
|
void |
setMaxSize(Dimension maxSize)
Sets the maximum size for unfocused tool tips.
|
void |
toolTipRequested(MouseEvent e,
String text) |
public FocusableTip(JTextArea textArea, HyperlinkListener listener)
public URL getImageBase()
setImageBase(URL)
public Dimension getMaxSize()
null
will use a default size.setMaxSize(Dimension)
public void possiblyDisposeOfTipWindow()
public void setImageBase(URL url)
url
- The base URL to use.getImageBase()
public void setMaxSize(Dimension maxSize)
maxSize
- The new maximum size. A value of null
will
cause a default size to be used.getMaxSize()
public void toolTipRequested(MouseEvent e, String text)
Copyright © 2003–2015. All rights reserved.