at.tuwien.ifs.somtoolbox.util
Class MultiLineToolTipUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ToolTipUI
          extended by javax.swing.plaf.basic.BasicToolTipUI
              extended by at.tuwien.ifs.somtoolbox.util.MultiLineToolTipUI

public class MultiLineToolTipUI
extends BasicToolTipUI

This is a helper class for the JMultiLineToolTip doing the actually rendering of the multi-line tooltip.

The original code was found at code found at Java CodeGuru and is written by Zafir Anjum.

Version:
$Id: MultiLineToolTipUI.java 4155 2011-02-11 15:48:21Z mayer $
Author:
Michael Dittenbach

Field Summary
protected  CellRendererPane rendererPane
           
(package private) static MultiLineToolTipUI sharedInstance
           
(package private)  Font smallFont
           
private static JTextArea textArea
           
(package private) static JToolTip tip
           
 
Constructor Summary
MultiLineToolTipUI()
           
 
Method Summary
static ComponentUI createUI(JComponent c)
           
 Dimension getMaximumSize(JComponent c)
           
 Dimension getMinimumSize(JComponent c)
           
 Dimension getPreferredSize(JComponent c)
           
 void installUI(JComponent c)
           
 void paint(Graphics g, JComponent c)
           
 void uninstallUI(JComponent c)
           
 
Methods inherited from class javax.swing.plaf.basic.BasicToolTipUI
installDefaults, installListeners, uninstallDefaults, uninstallListeners
 
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
 

Field Detail

sharedInstance

static MultiLineToolTipUI sharedInstance

smallFont

Font smallFont

tip

static JToolTip tip

rendererPane

protected CellRendererPane rendererPane

textArea

private static JTextArea textArea
Constructor Detail

MultiLineToolTipUI

public MultiLineToolTipUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)

installUI

public void installUI(JComponent c)
Overrides:
installUI in class BasicToolTipUI

uninstallUI

public void uninstallUI(JComponent c)
Overrides:
uninstallUI in class BasicToolTipUI

paint

public void paint(Graphics g,
                  JComponent c)
Overrides:
paint in class BasicToolTipUI

getPreferredSize

public Dimension getPreferredSize(JComponent c)
Overrides:
getPreferredSize in class BasicToolTipUI

getMinimumSize

public Dimension getMinimumSize(JComponent c)
Overrides:
getMinimumSize in class BasicToolTipUI

getMaximumSize

public Dimension getMaximumSize(JComponent c)
Overrides:
getMaximumSize in class BasicToolTipUI