wt.clients.widgets
Class MultiLineJToolTip.MultiLineToolTipUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ToolTipUI
javax.swing.plaf.basic.BasicToolTipUI
javax.swing.plaf.metal.MetalToolTipUI
wt.clients.widgets.MultiLineJToolTip.MultiLineToolTipUI
- Enclosing class:
- MultiLineJToolTip
- class MultiLineJToolTip.MultiLineToolTipUI
- extends MetalToolTipUI
This class extends MetalToolTipUI and overrides the paint() and
getPreferredSize() methods.
Nested classes inherited from class javax.swing.plaf.basic.BasicToolTipUI |
|
Field Summary |
private int |
MAX
Maximum characters of the line |
private int |
maxWidth
Maximum width of the tooltip |
private String[] |
strs
Array of the multi line tooltip. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
strs
private String[] strs
- Array of the multi line tooltip.
maxWidth
private int maxWidth
- Maximum width of the tooltip
MAX
private int MAX
- Maximum characters of the line
MultiLineJToolTip.MultiLineToolTipUI
MultiLineJToolTip.MultiLineToolTipUI()
paint
public void paint(Graphics g,
JComponent c)
getPreferredSize
public Dimension getPreferredSize(JComponent c)