wt.clients.widgets
Class MultiLineJToolTip.MultiLineToolTipUI

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended byjavax.swing.plaf.ToolTipUI
          extended byjavax.swing.plaf.basic.BasicToolTipUI
              extended byjavax.swing.plaf.metal.MetalToolTipUI
                  extended bywt.clients.widgets.MultiLineJToolTip.MultiLineToolTipUI
Enclosing class:
MultiLineJToolTip

class MultiLineJToolTip.MultiLineToolTipUI
extends MetalToolTipUI

This class extends MetalToolTipUI and overrides the paint() and getPreferredSize() methods.


Nested Class Summary
 
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.
 
Fields inherited from class javax.swing.plaf.metal.MetalToolTipUI
padSpaceBetweenStrings
 
Fields inherited from class javax.swing.plaf.basic.BasicToolTipUI
 
Constructor Summary
(package private) MultiLineJToolTip.MultiLineToolTipUI()
           
 
Method Summary
 Dimension getPreferredSize(JComponent c)
           
 void paint(Graphics g, JComponent c)
           
 
Methods inherited from class javax.swing.plaf.metal.MetalToolTipUI
createUI, getAcceleratorString, installUI, isAcceleratorHidden, uninstallUI
 
Methods inherited from class javax.swing.plaf.basic.BasicToolTipUI
getMaximumSize, getMinimumSize, installDefaults, installListeners, uninstallDefaults, uninstallListeners
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

Constructor Detail

MultiLineJToolTip.MultiLineToolTipUI

MultiLineJToolTip.MultiLineToolTipUI()
Method Detail

paint

public void paint(Graphics g,
                  JComponent c)

getPreferredSize

public Dimension getPreferredSize(JComponent c)