gishur.gui
Interface ToolTipSource


public interface ToolTipSource

Interface for classes that produces tooltip and statustip text for the given DisplayObjects.

Version:
1.0
Author:
Thomas Wolf

Method Summary
 java.lang.String getStatusTip(java.awt.event.MouseEvent e, DisplayObject dobject, int shapeidx)
          Returns the StatusTip-text.
 java.lang.String getToolTip(java.awt.event.MouseEvent e, DisplayObject dobject, int shapeidx)
          Returns the ToolTip-text for the given DisplayObject and its shape index.
 

Method Detail

getToolTip

public java.lang.String getToolTip(java.awt.event.MouseEvent e,
                                   DisplayObject dobject,
                                   int shapeidx)
Returns the ToolTip-text for the given DisplayObject and its shape index.
Parameters:
e - MouseEvent
dobject - the DisplayObject where to set ToolTips to
shapeidx - the shapeindex for the DisplayObject

getStatusTip

public java.lang.String getStatusTip(java.awt.event.MouseEvent e,
                                     DisplayObject dobject,
                                     int shapeidx)
Returns the StatusTip-text. This text will be shown in the applets (or browsers) statusbar.
Parameters:
e - MouseEvent
dobject - the DisplayObject where to set StatusTips to
shapeidx - the shapeindex for the DisplayObject