dog.gui
Class TooltipManager

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--dog.gui.TooltipManager
All Implemented Interfaces:
java.lang.Runnable

public final class TooltipManager
extends java.lang.Thread

The tooltip manager.


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
static long getDelay()
          Returns the delay between the mouse entering a component and its tooltip being shown, in milliseconds.
static boolean isEnabled()
          Indicates whether tooltips are enabled or disabled.
 void run()
          Waits for delay milliseconds and then shows the tooltip.
static void setComponent(DComponent component, java.awt.Point point)
          Sets the component for which a tooltip should be displayed.
static void setComponent(DContainer component, java.awt.Point point)
          Sets the component for which a tooltip should be displayed.
static void setDelay(long ms)
          Sets the delay between the mouse entering a component and its tooltip being shown.
static void setEnabled(boolean flag)
          Enables or disables tooltips.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

isEnabled

public static boolean isEnabled()
Indicates whether tooltips are enabled or disabled.
See Also:
setEnabled(boolean)

setEnabled

public static void setEnabled(boolean flag)
Enables or disables tooltips.
Parameters:
flag - true if tooltips are to be displayed, false otherwise.
See Also:
isEnabled()

getDelay

public static long getDelay()
Returns the delay between the mouse entering a component and its tooltip being shown, in milliseconds.
See Also:
setDelay(long)

setDelay

public static void setDelay(long ms)
Sets the delay between the mouse entering a component and its tooltip being shown.
Parameters:
ms - the delay in milliseconds
See Also:
getDelay()

setComponent

public static void setComponent(DComponent component,
                                java.awt.Point point)
Sets the component for which a tooltip should be displayed. This will result in the tooltip being displayed after delay milliseconds if the component has a tooltip.

setComponent

public static void setComponent(DContainer component,
                                java.awt.Point point)
Sets the component for which a tooltip should be displayed. This will result in the tooltip being displayed after delay milliseconds if the component has a tooltip.

run

public void run()
Waits for delay milliseconds and then shows the tooltip.
Overrides:
run in class java.lang.Thread