public class MultiLineToolTipUI extends BasicToolTipUI
Notice: the code is derived from xdocletgui.swing.MultiLineToolTipUI.
| Modifier | Constructor and Description |
|---|---|
protected |
MultiLineToolTipUI()
MultiLineToolTipUI, constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getMaximumSize, getMinimumSize, installDefaults, installListeners, installUI, uninstallDefaults, uninstallListeners, uninstallUIcontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, updateprotected MultiLineToolTipUI()
Protected so we can be subclassed, but not created by client classes.
public static ComponentUI createUI(JComponent c)
c - The component to create the UI for.public void paint(Graphics g, JComponent c)
paint in class BasicToolTipUIpublic Dimension getPreferredSize(JComponent c)
getPreferredSize in class BasicToolTipUITentackle - a domain driven enterprise framework