|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.ToolTipUI
javax.swing.plaf.basic.BasicToolTipUI
org.tentackle.ui.MultiLineToolTipUI
public class MultiLineToolTipUI
Multi-line tooltip UI.
See the static init block in FormHelper.
Notice: the code is derived from xdocletgui.swing.MultiLineToolTipUI.
| Constructor Summary | |
|---|---|
protected |
MultiLineToolTipUI()
MultiLineToolTipUI, constructor. |
| Method Summary | |
|---|---|
static ComponentUI |
createUI(JComponent c)
Create the UI component for the given component. |
Dimension |
getPreferredSize(JComponent c)
The preferred size for the MultiLineToolTip is the width of the longest row in the tip, and the height of a single row times the number of rows in the tip. |
void |
paint(Graphics g,
JComponent c)
Paints the ToolTip. |
| Methods inherited from class javax.swing.plaf.basic.BasicToolTipUI |
|---|
getMaximumSize, getMinimumSize, installDefaults, installListeners, installUI, uninstallDefaults, uninstallListeners, uninstallUI |
| Methods inherited from class javax.swing.plaf.ComponentUI |
|---|
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected MultiLineToolTipUI()
Protected so we can be subclassed, but not created by client classes.
| Method Detail |
|---|
public static ComponentUI createUI(JComponent c)
c - The component to create the UI for.
public void paint(Graphics g,
JComponent c)
paint in class BasicToolTipUIg - the Graphics context in which to paintc - the component being painted;
this argument is often ignored,
but might be used if the UI object is stateless
and shared by multiple componentsComponentUI.update(java.awt.Graphics, javax.swing.JComponent)public Dimension getPreferredSize(JComponent c)
getPreferredSize in class BasicToolTipUIc - the component whose preferred size is being queried;
this argument is often ignored,
but might be used if the UI object is stateless
and shared by multiple components
JComponent.getPreferredSize(),
LayoutManager.preferredLayoutSize(java.awt.Container)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||