com.tensegrity.gui.swt.control
Class SwtToolBar.SwtToolbarToolTipGenerator

java.lang.Object
  extended bycom.tensegrity.gui.swt.SwtToolTipGenerator
      extended bycom.tensegrity.gui.swt.control.SwtToolBar.SwtToolbarToolTipGenerator
All Implemented Interfaces:
ToolTipGenerator
Enclosing class:
SwtToolBar

public class SwtToolBar.SwtToolbarToolTipGenerator
extends SwtToolTipGenerator

This is a SwtToolTipGenerator implementation for the SwtToolbar.


Constructor Summary
protected SwtToolBar.SwtToolbarToolTipGenerator(SwtToolBar toolbar)
           Initialises and activates tooltips on the passed SwtToolBar.
 
Method Summary
 java.lang.Object getToolTip()
          Returns the default tooltip for the corresponding GraphPanel.
 java.lang.Object getToolTip(int x, int y, int modifiers)
          Returns the default tooltip for the corresponding GraphPanel.
 
Methods inherited from class com.tensegrity.gui.swt.SwtToolTipGenerator
createTooltip, destroy, getControl, getDismissDelay, getInitialDelay, getOffsetX, getOffsetY, getReshowDelay, getTooltipBackGroundColor, getTooltipForeGroundColor, isEnabled, setDismissDelay, setEnabled, setInitialDelay, setReshowDelay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwtToolBar.SwtToolbarToolTipGenerator

protected SwtToolBar.SwtToolbarToolTipGenerator(SwtToolBar toolbar)

Initialises and activates tooltips on the passed SwtToolBar.

Parameters:
toolbar - the SwtToolBar for which tooltips are herein generated.
Method Detail

getToolTip

public java.lang.Object getToolTip()
Description copied from interface: ToolTipGenerator
Returns the default tooltip for the corresponding GraphPanel. This may be a String, but might be a JToolTip or similar, too.

Returns:
Object The tooltip

getToolTip

public java.lang.Object getToolTip(int x,
                                   int y,
                                   int modifiers)
Description copied from interface: ToolTipGenerator
Returns the default tooltip for the corresponding GraphPanel. This may be a String, but might be a JToolTip or similar, too.

Parameters:
x - The x coordinate to get the tooltip for
y - The y coordinate to get the tooltip for
modifiers - The modifiers of the event, that triggered this request
Returns:
Object The tooltip


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.