org.knime.core.data.renderer
Class MultiLineBasicLabelUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.LabelUI
          extended by javax.swing.plaf.basic.BasicLabelUI
              extended by org.knime.core.data.renderer.MultiLineBasicLabelUI
All Implemented Interfaces:
PropertyChangeListener, EventListener

public class MultiLineBasicLabelUI
extends BasicLabelUI

Label UI that respects the linebreaks in the label to be rendered. This UI does not support an icon or respects in any kind the alignment of the label.

Author:
Bernd Wiswedel, University of Konstanz

Field Summary
 
Fields inherited from class javax.swing.plaf.basic.BasicLabelUI
labelUI
 
Constructor Summary
MultiLineBasicLabelUI()
           
 
Method Summary
 Dimension getMaximumSize(JComponent c)
          Delegates to getPreferredSize(JComponent).
 Dimension getMinimumSize(JComponent c)
          Delegates to getPreferredSize(JComponent).
 Dimension getPreferredSize(JComponent c)
          
 void paint(Graphics g, JComponent c)
          
 
Methods inherited from class javax.swing.plaf.basic.BasicLabelUI
createUI, getBaseline, getBaselineResizeBehavior, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, layoutCL, paintDisabledText, paintEnabledText, propertyChange, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
 
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
 

Constructor Detail

MultiLineBasicLabelUI

public MultiLineBasicLabelUI()
Method Detail

getMaximumSize

public Dimension getMaximumSize(JComponent c)
Delegates to getPreferredSize(JComponent).

Overrides:
getMaximumSize in class BasicLabelUI
See Also:
BasicLabelUI.getMaximumSize(JComponent)

getMinimumSize

public Dimension getMinimumSize(JComponent c)
Delegates to getPreferredSize(JComponent).

Overrides:
getMinimumSize in class BasicLabelUI
See Also:
BasicLabelUI.getMinimumSize(JComponent)

getPreferredSize

public Dimension getPreferredSize(JComponent c)

Overrides:
getPreferredSize in class BasicLabelUI

paint

public void paint(Graphics g,
                  JComponent c)

Overrides:
paint in class BasicLabelUI


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.