|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.jface.window.ToolTip
org.eclipse.jface.window.DefaultToolTip
Default implementation of ToolTip that provides an iconofied label with font and color controls by subclass.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.jface.window.ToolTip |
|---|
NO_RECREATE, RECREATE |
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
protected Composite |
createToolTipContentArea(Event event,
Composite parent)
Creates the content are of the the tooltip. |
protected Color |
getBackgroundColor(Event event)
The background Color used by CLabel in the default
implementation |
protected Image |
getBackgroundImage(Event event)
The background Image used by CLabel in the default
implementation |
protected Font |
getFont(Event event)
The Font used by CLabel in the default implementation |
protected Color |
getForegroundColor(Event event)
The foreground Color used by CLabel in the default
implementation |
protected Image |
getImage(Event event)
The Image displayed in the CLabel in the default
implementation implementation |
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)
The background Image used by CLabel in the default
implementation |
void |
setBackgroundImage(Image backgroundImage)
The background Image used by CLabel in the default
implementation |
void |
setFont(Font font)
The Font used by CLabel in the default implementation |
void |
setForegroundColor(Color foregroundColor)
The foreground Color used by CLabel in the default
implementation |
void |
setImage(Image image)
The Image displayed in the CLabel in the default
implementation implementation |
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 |
| Methods inherited from class org.eclipse.jface.window.ToolTip |
|---|
activate, afterHideToolTip, deactivate, getData, getLocation, getToolTipArea, hide, isHideOnMouseDown, isRespectDisplayBounds, isRespectMonitorBounds, setData, setHideDelay, setHideOnMouseDown, setPopupDelay, setRespectDisplayBounds, setRespectMonitorBounds, setShift, shouldCreateToolTip, show |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultToolTip(Control control)
control - the control on whose action the tooltip is shown
public 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_RECREATE| Method Detail |
protected Composite createToolTipContentArea(Event event,
Composite parent)
getStyle(Event)getBackgroundColor(Event)getForegroundColor(Event)getFont(Event)getImage(Event)getText(Event)getBackgroundImage(Event)
createToolTipContentArea in class ToolTipevent - the event that triggered the activation of the tooltipparent - the parent of the content area
protected int getStyle(Event event)
CLabel in the default implementation
event - the event triggered the popup of the tooltip
protected Image getImage(Event event)
Image displayed in the CLabel in the default
implementation implementation
event - the event triggered the popup of the tooltip
Image or null if no image should be
displayedprotected Color getForegroundColor(Event event)
Color used by CLabel in the default
implementation
event - the event triggered the popup of the tooltip
Color or null if default foreground
color should be usedprotected Color getBackgroundColor(Event event)
Color used by CLabel in the default
implementation
event - the event triggered the popup of the tooltip
Color or null if default background
color should be usedprotected Image getBackgroundImage(Event event)
Image used by CLabel in the default
implementation
event - the event triggered the popup of the tooltip
Image or null if no image should be
displayed in the backgroundprotected Font getFont(Event event)
Font used by CLabel in the default implementation
event - the event triggered the popup of the tooltip
Font or null if the default font
should be usedprotected String getText(Event event)
CLabel in the default implementation
event - the event triggered the popup of the tooltip
null if no text has to be displayedpublic void setBackgroundColor(Color backgroundColor)
Image used by CLabel in the default
implementation
backgroundColor - the Color or null if default background
color (SWT.COLOR_INFO_BACKGROUND) should be usedpublic void setBackgroundImage(Image backgroundImage)
Image used by CLabel in the default
implementation
backgroundImage - the Image or null if no image should be
displayed in the backgroundpublic void setFont(Font font)
Font used by CLabel in the default implementation
font - the Font or null if the default font
should be usedpublic void setForegroundColor(Color foregroundColor)
Color used by CLabel in the default
implementation
foregroundColor - the Color or null if default foreground
color should be usedpublic void setImage(Image image)
Image displayed in the CLabel in the default
implementation implementation
image - the Image or null if no image should be
displayedpublic void setStyle(int style)
CLabel in the default implementation
style - the event triggered the popup of the tooltippublic void setText(String text)
CLabel in the default implementation
text - the text or null if no text has to be displayed
|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.