public class DefaultToolTip extends ToolTip
NO_RECREATE, RECREATE| Constructor and Description |
|---|
DefaultToolTip(Control control)
Create new instance which add TooltipSupport to the widget
|
DefaultToolTip(Control control,
int style,
boolean manualActivation)
Create new instance which add TooltipSupport to the widget
|
| Modifier and Type | Method and Description |
|---|---|
protected Composite |
createToolTipContentArea(Event event,
Composite parent)
Creates the content are of the the tooltip.
|
protected Color |
getBackgroundColor(Event event)
|
protected Image |
getBackgroundImage(Event event)
|
protected Font |
getFont(Event event)
|
protected Color |
getForegroundColor(Event event)
|
protected Image |
getImage(Event event)
|
protected int |
getStyle(Event event)
The style used to create the
CLabel in the default implementation |
protected String |
getText(Event event)
The text displayed in the
CLabel in the default implementation |
void |
setBackgroundColor(Color backgroundColor)
|
void |
setBackgroundImage(Image backgroundImage)
|
void |
setFont(Font font)
|
void |
setForegroundColor(Color foregroundColor)
|
void |
setImage(Image image)
|
void |
setStyle(int style)
The style used to create the
CLabel in the default implementation |
void |
setText(String text)
The text displayed in the
CLabel in the default implementation |
activate, afterHideToolTip, deactivate, getData, getLocation, getToolTipArea, hide, isHideOnMouseDown, isRespectDisplayBounds, isRespectMonitorBounds, setData, setHideDelay, setHideOnMouseDown, setPopupDelay, setRespectDisplayBounds, setRespectMonitorBounds, setShift, shouldCreateToolTip, showpublic DefaultToolTip(Control control)
control - the control on whose action the tooltip is shownpublic DefaultToolTip(Control control, int style, boolean manualActivation)
control - the control to which the tooltip is boundstyle - style passed to control tooltip behaviourmanualActivation - true if the activation is done manually using
ToolTip.show(Point)ToolTip.RECREATE,
ToolTip.NO_RECREATEprotected Composite createToolTipContentArea(Event event, Composite parent)
createToolTipContentArea in class ToolTipevent - the event that triggered the activation of the tooltipparent - the parent of the content areaprotected int getStyle(Event event)
CLabel in the default implementationevent - the event triggered the popup of the tooltipprotected Image getImage(Event event)
event - the event triggered the popup of the tooltipImage or null if no image should be
displayedprotected Color getForegroundColor(Event event)
event - the event triggered the popup of the tooltipColor or null if default foreground
color should be usedprotected Color getBackgroundColor(Event event)
event - the event triggered the popup of the tooltipColor or null if default background
color should be usedprotected Image getBackgroundImage(Event event)
event - the event triggered the popup of the tooltipImage or null if no image should be
displayed in the backgroundprotected Font getFont(Event event)
event - the event triggered the popup of the tooltipFont or null if the default font
should be usedprotected String getText(Event event)
CLabel in the default implementationevent - the event triggered the popup of the tooltipnull if no text has to be displayedpublic void setBackgroundColor(Color backgroundColor)
backgroundColor - the Color or null if default background
color (SWT.COLOR_INFO_BACKGROUND) should be usedpublic void setBackgroundImage(Image backgroundImage)
backgroundImage - the Image or null if no image should be
displayed in the backgroundpublic void setFont(Font font)
font - the Font or null if the default font
should be usedpublic void setForegroundColor(Color foregroundColor)
foregroundColor - the Color or null if default foreground
color should be usedpublic void setImage(Image image)
image - the Image or null if no image should be
displayedpublic void setStyle(int style)
CLabel in the default implementationstyle - the event triggered the popup of the tooltip
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.