Save This Page
Home » openjdk-7 » javax » swing » plaf » synth » [javadoc | source]
javax.swing.plaf.synth
public class: SynthLabelUI [javadoc | source]
java.lang.Object
   javax.swing.plaf.ComponentUI
      javax.swing.plaf.LabelUI
         javax.swing.plaf.basic.BasicLabelUI
            javax.swing.plaf.synth.SynthLabelUI

All Implemented Interfaces:
    SynthUI, PropertyChangeListener

Provides the Synth L&F UI delegate for javax.swing.JLabel .
Fields inherited from javax.swing.plaf.basic.BasicLabelUI:
labelUI
Method from javax.swing.plaf.synth.SynthLabelUI Summary:
createUI,   getBaseline,   getContext,   getMaximumSize,   getMinimumSize,   getPreferredSize,   installDefaults,   paint,   paint,   paintBorder,   propertyChange,   uninstallDefaults,   update,   updateStyle
Methods from javax.swing.plaf.basic.BasicLabelUI:
createUI,   getBaseline,   getBaselineResizeBehavior,   getMaximumSize,   getMinimumSize,   getPreferredSize,   installComponents,   installDefaults,   installKeyboardActions,   installListeners,   installUI,   layoutCL,   loadActionMap,   paint,   paintDisabledText,   paintEnabledText,   propertyChange,   uninstallComponents,   uninstallDefaults,   uninstallKeyboardActions,   uninstallListeners,   uninstallUI
Methods from javax.swing.plaf.ComponentUI:
contains,   createUI,   getAccessibleChild,   getAccessibleChildrenCount,   getBaseline,   getBaselineResizeBehavior,   getMaximumSize,   getMinimumSize,   getPreferredSize,   installUI,   paint,   uninstallUI,   update
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.plaf.synth.SynthLabelUI Detail:
 public static ComponentUI createUI(JComponent c) 
    Returns the LabelUI implementation used for the skins look and feel.
 public int getBaseline(JComponent c,
    int width,
    int height) 
 public SynthContext getContext(JComponent c) 
 public Dimension getMaximumSize(JComponent c) 
 public Dimension getMinimumSize(JComponent c) 
 public Dimension getPreferredSize(JComponent c) 
 protected  void installDefaults(JLabel c) 
 public  void paint(Graphics g,
    JComponent c) 
    Paints the specified component according to the Look and Feel.

    This method is not used by Synth Look and Feel. Painting is handled by the #paint(SynthContext,Graphics) method.

 protected  void paint(SynthContext context,
    Graphics g) 
    Paints the specified component.
 public  void paintBorder(SynthContext context,
    Graphics g,
    int x,
    int y,
    int w,
    int h) 
 public  void propertyChange(PropertyChangeEvent e) 
 protected  void uninstallDefaults(JLabel c) 
 public  void update(Graphics g,
    JComponent c) 
    Notifies this UI delegate to repaint the specified component. This method paints the component background, then calls the #paint(SynthContext,Graphics) method.

    In general, this method does not need to be overridden by subclasses. All Look and Feel rendering code should reside in the {@code paint} method.

  void updateStyle(JLabel c)