|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.swing.JToolTipFactory
public class JToolTipFactory
This class creates instances of JTooltip components. It provides a consistent means for creating custom tooltips without the need for overriding JIDE components that create tooltips
Constructor Summary | |
---|---|
JToolTipFactory()
|
Method Summary | |
---|---|
JToolTip |
createToolTip(JComponent c)
Creates a new tooltip. |
JToolTip |
createToolTip(JComponent c,
boolean overlapping)
Creates a new tooltip. |
static JToolTipFactory |
getSharedInstance()
Returns the shared JToolTipFactory which can be used to obtain JToolTip s. |
static void |
setSharedInstance(JToolTipFactory factory)
Sets the JToolTipFactory that will be used to obtain JToolTip s. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JToolTipFactory()
Method Detail |
---|
public JToolTip createToolTip(JComponent c)
c
- the component the tooltip describes
public JToolTip createToolTip(JComponent c, boolean overlapping)
c
- the component the tooltip describesoverlapping
- whether the tooltip is for a normal or overlapping tooltip
public static void setSharedInstance(JToolTipFactory factory)
JToolTipFactory
that will be used to obtain JToolTip
s. This will throw an
IllegalArgumentException
if factory
is null.
factory
- the shared factory
IllegalArgumentException
- if factory
is nullpublic static JToolTipFactory getSharedInstance()
JToolTipFactory
which can be used to obtain JToolTip
s.
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |