public class BrowserTip extends Object
Constructor and Description |
---|
BrowserTip(int toolTipWidth,
int toolTipHeight,
boolean plainText)
Create a browser tip using its own
ScheduledExecutorService |
BrowserTip(int toolTipWidth,
int toolTipHeight,
boolean plainText,
ScheduledExecutorService scheduleService)
Create a browser tip with using given
ScheduledExecutorService |
Modifier and Type | Method and Description |
---|---|
int |
getHeightAdjustment() |
static void |
hideToolTip(org.eclipse.swt.widgets.Shell shell)
Hide the tool tip
|
void |
setHeightAdjustment(int heightAdjustment) |
org.eclipse.swt.widgets.Shell |
showToolTip(org.eclipse.swt.widgets.Control control,
int posx,
int posy,
String toolTip)
Show the tool tip
|
org.eclipse.swt.widgets.Shell |
showToolTip(org.eclipse.swt.widgets.Control control,
int posx,
int posy,
String toolTip,
org.eclipse.swt.graphics.Rectangle addBounds,
org.eclipse.swt.widgets.Control addBoundsControl)
Show the tool tip
|
static boolean |
toolTipVisible(org.eclipse.swt.widgets.Shell shell)
Determines if the tool tip is visible
|
public BrowserTip(int toolTipWidth, int toolTipHeight, boolean plainText)
ScheduledExecutorService
toolTipWidth
- the maximum withtoolTipHeight
- the maximum heightplainText
- if the content will be plain text instead of HTMLpublic BrowserTip(int toolTipWidth, int toolTipHeight, boolean plainText, ScheduledExecutorService scheduleService)
ScheduledExecutorService
toolTipWidth
- the maximum withtoolTipHeight
- the maximum heightplainText
- if the content will be plain text instead of HTMLscheduleService
- the scheduled executor service to use, if
null
a service will be createdpublic org.eclipse.swt.widgets.Shell showToolTip(org.eclipse.swt.widgets.Control control, int posx, int posy, String toolTip)
control
- the tip controlposx
- the x-positionposy
- the y-positiontoolTip
- the tool tip stringpublic org.eclipse.swt.widgets.Shell showToolTip(org.eclipse.swt.widgets.Control control, int posx, int posy, String toolTip, org.eclipse.swt.graphics.Rectangle addBounds, org.eclipse.swt.widgets.Control addBoundsControl)
control
- the tip controlposx
- the x-positionposy
- the y-positiontoolTip
- the tool tip stringaddBounds
- additional bounds that will be treated as if in the
tooltip (the tooltip won't hide if the cursor is inside these
bounds), may be null
addBoundsControl
- the control the addBounds coordinates are
relative to, null
if addBounds is in display
coordinates or no addBounds is providedpublic static void hideToolTip(org.eclipse.swt.widgets.Shell shell)
shell
- the tip shellpublic static boolean toolTipVisible(org.eclipse.swt.widgets.Shell shell)
shell
- the tip shellpublic int getHeightAdjustment()
public void setHeightAdjustment(int heightAdjustment)
heightAdjustment
- the heightAdjustment to setBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a