Class jrad.util.ToolTipFrame
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jrad.util.ToolTipFrame

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----jrad.util.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.

Variable Index

 o delayThread
Thread used to delay tool tip from displaying until user has lingered over component.
 o tipComponent
The component for which a tool tip is currently displayed.
 o tipFont
The font with which to display tool tips.
 o tipPopup
The yellow tool tip box.

Constructor Index

 o ToolTipFrame()
Constructs a new ToolTipFrame.
 o ToolTipFrame(String)
Constructs a new ToolTipFrame with a title.

Method Index

 o hideTip(Component)
Hides the tool tip.
 o run()
Delays tool tip from displaying until user has lingered over component.
 o showTip(Component, int, int, String)
Shows a tool tip for a component.
 o updateTip(Component, int, int, String)
Updates the location of the tool tip.

Variables

 o tipPopup
  protected ToolTipPopup tipPopup
The yellow tool tip box.
 o tipFont
  protected Font tipFont
The font with which to display tool tips.
 o tipComponent
  protected Component tipComponent
The component for which a tool tip is currently displayed. Null if no tool tip is displayed.
 o delayThread
  protected Thread delayThread
Thread used to delay tool tip from displaying until user has lingered over component.

Constructors

 o ToolTipFrame
  public ToolTipFrame()
Constructs a new ToolTipFrame.
 o ToolTipFrame
  public ToolTipFrame(String title)
Constructs a new ToolTipFrame with a title.
Parameters:
title - the Frame's title

Methods

 o 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
 o 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
 o hideTip
  public void hideTip(Component component)
Hides the tool tip.
Parameters:
component - the component the tool tip is describing
 o run
  public void run()
Delays tool tip from displaying until user has lingered over component.

All Packages  Class Hierarchy  This Package  Previous  Next  Index