public class Tooltips
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static net.java.balloontip.styles.BalloonTipStyle |
DefaultBalloonTipStyle |
Constructor and Description |
---|
Tooltips() |
Modifier and Type | Method and Description |
---|---|
void |
configureSimpleTooltipWithText(javax.swing.JComponent attach,
java.lang.String text)
Configures a simple tooltip attached to a component with the given static text
|
void |
configureTooltip(java.awt.Component attach)
Configure the tooltips for the given component.
|
void |
configureTooltipForChart(ilog.views.gantt.IlvHierarchyChart chart)
Convenience method that configures both the Table and GanttSheet tooltips for the given Chart.
|
void |
configureTooltipsForChildren(java.awt.Container container)
Given the Container, iterate ove the children and configure tooltips for each child.
|
float |
getDefaultOpactiy()
Returns the default opacity when we are showing transparent tooltips
|
net.java.balloontip.BalloonTip |
getTooltipInstance()
Return the current tooltip instance, or null if there isn't a tooltip set
|
void |
hideTooltip()
Hide the tooltip, if there is a tooltip set.
|
void |
initialize() |
boolean |
isEnabled() |
boolean |
isTooltipVisible()
return true if the tooltip is set and visible
|
void |
setEnabled(boolean enabled) |
static void |
setSharedInstance(Tooltips tips)
Set the single shared instance for this Tooltips manager.
|
void |
setTooltipInstance(net.java.balloontip.BalloonTip tip)
Sets and shows the single tooltip instance into this manager.
|
static Tooltips |
sharedInstance()
Returns the single, shared instance, of this tooltip manager.
|
void |
showTooltip(javax.swing.JComponent attach,
int x,
int y,
java.lang.String text)
Shows a tooltip at the given offset.
|
void |
showTooltip(javax.swing.JComponent attach,
int x,
int y,
java.lang.String text,
float defOpactiy)
Shows a tooltip immediately.
|
public static net.java.balloontip.styles.BalloonTipStyle DefaultBalloonTipStyle
public static Tooltips sharedInstance()
public static void setSharedInstance(Tooltips tips)
tips
- public void initialize()
public void configureTooltipsForChildren(java.awt.Container container)
container
- public void configureTooltip(java.awt.Component attach)
attach
- attach component for the tooltippublic void configureSimpleTooltipWithText(javax.swing.JComponent attach, java.lang.String text)
attach
- text
- public void configureTooltipForChart(ilog.views.gantt.IlvHierarchyChart chart)
chart
- public void setTooltipInstance(net.java.balloontip.BalloonTip tip)
tip
- public net.java.balloontip.BalloonTip getTooltipInstance()
public void showTooltip(javax.swing.JComponent attach, int x, int y, java.lang.String text)
attach
- x
- y
- text
- public void hideTooltip()
public boolean isTooltipVisible()
public float getDefaultOpactiy()
public void showTooltip(javax.swing.JComponent attach, int x, int y, java.lang.String text, float defOpactiy)
attach
- x
- y
- text
- defOpactiy
- public boolean isEnabled()
public void setEnabled(boolean enabled)