|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kiwi.ui.ToolTipManager
A tool tip manager for use with heavyweight as well as lightweight AWT and JFC components.
Method Summary | |
void |
addToolTip(Component c,
String tip)
Add a tool tip. |
void |
dispose()
Dispose of this object. |
static ToolTipManager |
getToolTipManager()
Get a reference to the tool tip manager singleton. |
void |
removeToolTip(Component c)
Remove a tool tip. |
void |
setBackground(Color bgcolor)
Set the tool tip background color. |
void |
setDelay(int seconds)
Set the tool tip display delay. |
void |
setFont(Font font)
Set the tool tip font.The default font is 8 point Dialog. |
void |
setForeground(Color fgcolor)
Set the tool tip foreground color. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public static ToolTipManager getToolTipManager()
public void setFont(Font font)
font
- The new font to use.public void setBackground(Color bgcolor)
bgcolor
- The new background color.public void setForeground(Color fgcolor)
fgcolor
- The new foreground color.public void setDelay(int seconds) throws IllegalArgumentException
seconds
seconds after the mouse pointer has remained
motionless within the bounds of the associated component. The default
delay is 2 seconds.seconds
is
not in the range 1 to 20, inclusive.public void addToolTip(Component c, String tip) throws IllegalArgumentException
c
and tool tip text
tip
with the tool tip manager.removeToolTip(java.awt.Component)
public void removeToolTip(Component c) throws NoSuchElementException
c
from the tool
tip manager.addToolTip(java.awt.Component, java.lang.String)
public void dispose()
ToolTipManager
as a listener from all of the components it is managing, and releases all
references to those components.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |