org.pushingpixels.flamingo.internal.ui.common.popup
Class BasicColorSelectorPanelUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by org.pushingpixels.flamingo.internal.ui.common.popup.ColorSelectorPanelUI
          extended by org.pushingpixels.flamingo.internal.ui.common.popup.BasicColorSelectorPanelUI

public class BasicColorSelectorPanelUI
extends ColorSelectorPanelUI

Basic UI for color selector panel JColorSelectorPanel.


Nested Class Summary
protected  class BasicColorSelectorPanelUI.PanelLayout
           
 
Field Summary
protected  javax.swing.JLabel captionLabel
           
protected  javax.swing.JPanel colorSelectorContainer
           
protected  JColorSelectorPanel colorSelectorPanel
           
 
Constructor Summary
BasicColorSelectorPanelUI()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
protected  int getLayoutGap()
          Returns the layout gap for button panel components.
protected  void installComponents()
          Installs subcomponents on the associated color selector panel.
protected  void installDefaults()
          Installs defaults on the associated color selector panel.
protected  void installListeners()
          Installs listeners on the associated color selector panel.
 void installUI(javax.swing.JComponent c)
           
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
           
protected  void paintBottomDivider(java.awt.Graphics g, int x, int y, int width, int height)
           
protected  void paintCaptionBackground(java.awt.Graphics g, int x, int y, int width, int height)
           
protected  void uninstallComponents()
          Uninstalls subcomponents from the associated color selector panel.
protected  void uninstallDefaults()
          Uninstalls defaults from the associated color selector panel.
protected  void uninstallListeners()
          Uninstalls listeners from the associated color selector panel.
 void uninstallUI(javax.swing.JComponent c)
           
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

colorSelectorPanel

protected JColorSelectorPanel colorSelectorPanel

captionLabel

protected javax.swing.JLabel captionLabel

colorSelectorContainer

protected javax.swing.JPanel colorSelectorContainer
Constructor Detail

BasicColorSelectorPanelUI

public BasicColorSelectorPanelUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)

installUI

public void installUI(javax.swing.JComponent c)
Overrides:
installUI in class javax.swing.plaf.ComponentUI

uninstallUI

public void uninstallUI(javax.swing.JComponent c)
Overrides:
uninstallUI in class javax.swing.plaf.ComponentUI

installListeners

protected void installListeners()
Installs listeners on the associated color selector panel.


uninstallListeners

protected void uninstallListeners()
Uninstalls listeners from the associated color selector panel.


installDefaults

protected void installDefaults()
Installs defaults on the associated color selector panel.


uninstallDefaults

protected void uninstallDefaults()
Uninstalls defaults from the associated color selector panel.


installComponents

protected void installComponents()
Installs subcomponents on the associated color selector panel.


uninstallComponents

protected void uninstallComponents()
Uninstalls subcomponents from the associated color selector panel.


paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Overrides:
paint in class javax.swing.plaf.ComponentUI

paintBottomDivider

protected void paintBottomDivider(java.awt.Graphics g,
                                  int x,
                                  int y,
                                  int width,
                                  int height)

paintCaptionBackground

protected void paintCaptionBackground(java.awt.Graphics g,
                                      int x,
                                      int y,
                                      int width,
                                      int height)

getLayoutGap

protected int getLayoutGap()
Returns the layout gap for button panel components.

Returns:
The layout gap for button panel components.