JHotDraw 7.3.1

org.jhotdraw.gui.plaf.palette
Class PaletteLabelUI

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.jhotdraw.gui.plaf.palette.PaletteLabelUI
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener

public class PaletteLabelUI
extends javax.swing.plaf.basic.BasicLabelUI

QuaquaLabelUI.

Version:
$Id: PaletteLabelUI.java 527 2009-06-07 14:28:19Z rawcoder $
Author:
Werner Randelshofer

Field Summary
protected static PaletteLabelUI labelUI
           
 
Constructor Summary
PaletteLabelUI()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
          Preferred spacing between labels and other components.
protected  void installDefaults(javax.swing.JLabel b)
           
protected  java.lang.String layoutCL(javax.swing.JLabel label, java.awt.FontMetrics fontMetrics, java.lang.String text, javax.swing.Icon icon, java.awt.Rectangle viewR, java.awt.Rectangle iconR, java.awt.Rectangle textR)
          Forwards the call to SwingUtilities.layoutCompoundLabel().
 void paint(java.awt.Graphics gr, javax.swing.JComponent c)
           
protected  void paintDisabledText(javax.swing.JLabel l, java.awt.Graphics g, java.lang.String s, int textX, int textY)
          Paint label with disabled text color.
protected  void paintEnabledText(javax.swing.JLabel l, java.awt.Graphics g, java.lang.String s, int textX, int textY)
           
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
 
Methods inherited from class javax.swing.plaf.basic.BasicLabelUI
getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installComponents, installKeyboardActions, installListeners, installUI, 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
 

Field Detail

labelUI

protected static PaletteLabelUI labelUI
Constructor Detail

PaletteLabelUI

public PaletteLabelUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
Preferred spacing between labels and other components. Pixels from colon and associated controls (RadioButton, CheckBox) / private final static Insets associatedRegularSpacing = new Insets(8,8,8,8); private final static Insets associatedSmallSpacing = new Insets(6,6,6,6); private final static Insets associatedMiniSpacing = new Insets(5,5,5,5);


installDefaults

protected void installDefaults(javax.swing.JLabel b)
Overrides:
installDefaults in class javax.swing.plaf.basic.BasicLabelUI

paint

public void paint(java.awt.Graphics gr,
                  javax.swing.JComponent c)
Overrides:
paint in class javax.swing.plaf.basic.BasicLabelUI

paintDisabledText

protected void paintDisabledText(javax.swing.JLabel l,
                                 java.awt.Graphics g,
                                 java.lang.String s,
                                 int textX,
                                 int textY)
Paint label with disabled text color.

Overrides:
paintDisabledText in class javax.swing.plaf.basic.BasicLabelUI
See Also:
paint(java.awt.Graphics, javax.swing.JComponent), paintEnabledText(javax.swing.JLabel, java.awt.Graphics, java.lang.String, int, int)

paintEnabledText

protected void paintEnabledText(javax.swing.JLabel l,
                                java.awt.Graphics g,
                                java.lang.String s,
                                int textX,
                                int textY)
Overrides:
paintEnabledText in class javax.swing.plaf.basic.BasicLabelUI

layoutCL

protected java.lang.String layoutCL(javax.swing.JLabel label,
                                    java.awt.FontMetrics fontMetrics,
                                    java.lang.String text,
                                    javax.swing.Icon icon,
                                    java.awt.Rectangle viewR,
                                    java.awt.Rectangle iconR,
                                    java.awt.Rectangle textR)
Forwards the call to SwingUtilities.layoutCompoundLabel(). This method is here so that a subclass could do Label specific layout and to shorten the method name a little.

Overrides:
layoutCL in class javax.swing.plaf.basic.BasicLabelUI
See Also:
SwingUtilities.layoutCompoundLabel(javax.swing.JComponent, java.awt.FontMetrics, java.lang.String, javax.swing.Icon, int, int, int, int, java.awt.Rectangle, java.awt.Rectangle, java.awt.Rectangle, int)

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Overrides:
propertyChange in class javax.swing.plaf.basic.BasicLabelUI

Copyright 1996-2009 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.