All Packages Class Hierarchy This Package Previous Next Index
Class fr.l2f.gui.ToolTipPanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----fr.l2f.gui.ToolTipPanel
- public class ToolTipPanel
- extends Panel
- implements Runnable
A subclass of Panel 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 for an entire frame, use
the ToolTipFrame class instead of adding a ToolTipPanel to a Frame.
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.
-
ToolTipPanel()
- Constructs a new ToolTipPanel.
-
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.
ToolTipPanel
public ToolTipPanel()
- Constructs a new ToolTipPanel.
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