|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkiwi.ui.ToolTipManager
A tool tip manager for use with heavyweight as well as lightweight AWT and JFC components.
Field Summary | |
private java.awt.Color |
bgcolor
|
private int |
delay
|
private java.awt.Color |
fgcolor
|
private java.awt.Font |
font
|
private static ToolTipManager |
manager
|
private java.lang.Thread |
thread
|
private java.util.Vector |
tips
|
Constructor Summary | |
private |
ToolTipManager()
|
Method Summary | |
private void |
_run()
|
void |
addToolTip(java.awt.Component c,
java.lang.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(java.awt.Component c)
Remove a tool tip. |
void |
setBackground(java.awt.Color bgcolor)
Set the tool tip background color. |
void |
setDelay(int seconds)
Set the tool tip display delay. |
void |
setFont(java.awt.Font font)
Set the tool tip font.The default font is 8 point Dialog. |
void |
setForeground(java.awt.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 |
Field Detail |
private java.util.Vector tips
private java.lang.Thread thread
private int delay
private java.awt.Color bgcolor
private java.awt.Color fgcolor
private java.awt.Font font
private static ToolTipManager manager
Constructor Detail |
private ToolTipManager()
Method Detail |
public static ToolTipManager getToolTipManager()
public void setFont(java.awt.Font font)
font
- The new font to use.public void setBackground(java.awt.Color bgcolor)
bgcolor
- The new background color.public void setForeground(java.awt.Color fgcolor)
fgcolor
- The new foreground color.public void setDelay(int seconds) throws java.lang.IllegalArgumentException
seconds
seconds after the mouse pointer has remained
motionless within the bounds of the associated component. The default
delay is 2 seconds.
java.lang.IllegalArgumentException
- If seconds
is
not in the range 1 to 20, inclusive.public void addToolTip(java.awt.Component c, java.lang.String tip) throws java.lang.IllegalArgumentException
c
and tool tip text
tip
with the tool tip manager.
java.lang.IllegalArgumentException
removeToolTip(java.awt.Component)
public void removeToolTip(java.awt.Component c) throws java.util.NoSuchElementException
c
from the tool
tip manager.
java.util.NoSuchElementException
addToolTip(java.awt.Component, java.lang.String)
private void _run()
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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |