All Packages Class Hierarchy This Package Previous Next Index
Class fr.l2f.gui.ToolTipFrame
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----fr.l2f.gui.ToolTipFrame
- public class ToolTipFrame
- extends Frame
- implements Runnable
A subclass of Frame that shows Windows 95-style tool tips (little
yellow help boxes) for components that have been extended to show
tool tips. If tool tips should be shown only within a portion of
the Frame or in an Applet, use the ToolTipPanel class instead.
The JRad ImageButton class implements tool tips. Examine this class
if you would like to extend other components to display tool tips.
-
delayThread
- Thread used to delay tool tip from displaying until user has
lingered over component.
-
tipComponent
- The component for which a tool tip is currently displayed.
-
tipFont
- The font with which to display tool tips.
-
tipPopup
- The yellow tool tip box.
-
ToolTipFrame()
- Constructs a new ToolTipFrame.
-
ToolTipFrame(String)
- Constructs a new ToolTipFrame with a title.
-
hideTip(Component)
- Hides the tool tip.
-
run()
- Delays tool tip from displaying until user has lingered over component.
-
showTip(Component, int, int, String)
- Shows a tool tip for a component.
-
updateTip(Component, int, int, String)
- Updates the location of the tool tip.
tipPopup
protected ToolTipPopup tipPopup
- The yellow tool tip box.
tipFont
protected Font tipFont
- The font with which to display tool tips.
tipComponent
protected Component tipComponent
- The component for which a tool tip is currently displayed. Null
if no tool tip is displayed.
delayThread
protected Thread delayThread
- Thread used to delay tool tip from displaying until user has
lingered over component.
ToolTipFrame
public ToolTipFrame()
- Constructs a new ToolTipFrame.
ToolTipFrame
public ToolTipFrame(String title)
- Constructs a new ToolTipFrame with a title.
- Parameters:
- title - the Frame's title
showTip
public void showTip(Component component,
int x,
int y,
String tip)
- Shows a tool tip for a component.
- Parameters:
- component - the component the tool tip is describing
- x - the x location in the panel's coordinate plane to show the tool tip
- y - the y location in the panel's coordinate plane to show the tool tip
- tip - the string to display in the tool tip
updateTip
public void updateTip(Component component,
int x,
int y,
String tip)
- Updates the location of the tool tip. Called while the tool tip is delayed
so that it will show up relative to the mouse location.
- Parameters:
- component - the component the tool tip is describing
- x - the x location in the panel's coordinate plane to show the tool tip
- y - the y location in the panel's coordinate plane to show the tool tip
- tip - the string to display in the tool tip
hideTip
public void hideTip(Component component)
- Hides the tool tip.
- Parameters:
- component - the component the tool tip is describing
run
public void run()
- Delays tool tip from displaying until user has lingered over component.
All Packages Class Hierarchy This Package Previous Next Index