| |
|
| java.lang.Object org.eclipse.jface.window.ToolTip org.eclipse.jface.window.DefaultToolTip
All known Subclasses: org.eclipse.jface.viewers.ColumnViewerToolTipSupport,
DefaultToolTip | public class DefaultToolTip extends ToolTip (Code) | | Default implementation of ToolTip that provides an iconofied label with font
and color controls by subclass.
since: 3.3 |
DefaultToolTip | public DefaultToolTip(Control control)(Code) | | Create new instance which add TooltipSupport to the widget
Parameters: control - the control on whose action the tooltip is shown |
DefaultToolTip | public DefaultToolTip(Control control, int style, boolean manualActivation)(Code) | | Create new instance which add TooltipSupport to the widget
Parameters: control - the control to which the tooltip is bound Parameters: style - style passed to control tooltip behaviour Parameters: manualActivation - true if the activation is done manually usingDefaultToolTip.show(Point) See Also: DefaultToolTip.RECREATE See Also: DefaultToolTip.NO_RECREATE |
createToolTipContentArea | protected Composite createToolTipContentArea(Event event, Composite parent)(Code) | | Creates the content are of the the tooltip. By default this creates a
CLabel to display text. To customize the text Subclasses may override the
following methods
Parameters: event - the event that triggered the activation of the tooltip Parameters: parent - the parent of the content area the content area created |
getBackgroundColor | protected Color getBackgroundColor(Event event)(Code) | | The background
Color used by
CLabel in the default
implementation
Parameters: event - the event triggered the popup of the tooltip the Color or null if default backgroundcolor should be used |
getBackgroundImage | protected Image getBackgroundImage(Event event)(Code) | | The background
Image used by
CLabel in the default
implementation
Parameters: event - the event triggered the popup of the tooltip the Image or null if no image should bedisplayed in the background |
getFont | protected Font getFont(Event event)(Code) | | The
Font used by
CLabel in the default implementation
Parameters: event - the event triggered the popup of the tooltip the Font or null if the default fontshould be used |
getForegroundColor | protected Color getForegroundColor(Event event)(Code) | | The foreground
Color used by
CLabel in the default
implementation
Parameters: event - the event triggered the popup of the tooltip the Color or null if default foregroundcolor should be used |
getImage | protected Image getImage(Event event)(Code) | | The
Image displayed in the
CLabel in the default
implementation implementation
Parameters: event - the event triggered the popup of the tooltip the Image or null if no image should bedisplayed |
getStyle | protected int getStyle(Event event)(Code) | | The style used to create the
CLabel in the default implementation
Parameters: event - the event triggered the popup of the tooltip the style |
getText | protected String getText(Event event)(Code) | | The text displayed in the
CLabel in the default implementation
Parameters: event - the event triggered the popup of the tooltip the text or null if no text has to be displayed |
setBackgroundColor | public void setBackgroundColor(Color backgroundColor)(Code) | | The background
Image used by
CLabel in the default
implementation
Parameters: backgroundColor - the Color or null if default backgroundcolor (SWT.COLOR_INFO_BACKGROUND) should be used |
setBackgroundImage | public void setBackgroundImage(Image backgroundImage)(Code) | | The background
Image used by
CLabel in the default
implementation
Parameters: backgroundImage - the Image or null if no image should bedisplayed in the background |
setFont | public void setFont(Font font)(Code) | | The
Font used by
CLabel in the default implementation
Parameters: font - the Font or null if the default fontshould be used |
setForegroundColor | public void setForegroundColor(Color foregroundColor)(Code) | | The foreground
Color used by
CLabel in the default
implementation
Parameters: foregroundColor - the Color or null if default foregroundcolor should be used |
setImage | public void setImage(Image image)(Code) | | The
Image displayed in the
CLabel in the default
implementation implementation
Parameters: image - the Image or null if no image should bedisplayed |
setStyle | public void setStyle(int style)(Code) | | The style used to create the
CLabel in the default implementation
Parameters: style - the event triggered the popup of the tooltip |
setText | public void setText(String text)(Code) | | The text displayed in the
CLabel in the default implementation
Parameters: text - the text or null if no text has to be displayed |
|
|
|