com.tensegrity.gui.graphdocument
Interface ToolTipGenerator

All Known Implementing Classes:
SwtToolTipGenerator

public interface ToolTipGenerator

Interface to use in GraphPanels for the creation of tooltip texts in response to MouseEvents etc.

Author:
BurkhardWick, @version

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.
 

Method Detail

getToolTip

public java.lang.Object getToolTip()
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)
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.