java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ColorChooserUI
javax.swing.plaf.basic.BasicColorChooserUI
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
This class should be treated as a "protected" inner class. -
Field Summary
Modifier and TypeFieldDescriptionprotected JColorChooser
JColorChooser this BasicColorChooserUI is installed on.protected AbstractColorChooserPanel[]
The array of default color choosers.protected ChangeListener
The instance ofChangeListener
.protected PropertyChangeListener
The instance ofPropertyChangeListener
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractColorChooserPanel[]
Returns an array of default color choosers.protected PropertyChangeListener
Returns an instance ofPropertyChangeListener
.static ComponentUI
Returns a new instance ofBasicColorChooserUI
.protected void
Installs default properties.protected void
Registers listeners.protected void
Installs preview panel.protected void
Uninstalls default color choosers.protected void
Uninstalls default properties.protected void
Unregisters listeners.protected void
Removes installed preview panel from the UI delegate.Methods declared in class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
-
Field Details
-
chooser
-
defaultChoosers
The array of default color choosers. -
previewListener
The instance ofChangeListener
. -
propertyChangeListener
The instance ofPropertyChangeListener
.
-
-
Constructor Details
-
BasicColorChooserUI
public BasicColorChooserUI()Constructs aBasicColorChooserUI
.
-
-
Method Details
-
createUI
Returns a new instance ofBasicColorChooserUI
.- Parameters:
c
- a component- Returns:
- a new instance of
BasicColorChooserUI
-
createDefaultChoosers
Returns an array of default color choosers.- Returns:
- an array of default color choosers
-
uninstallDefaultChoosers
protected void uninstallDefaultChoosers()Uninstalls default color choosers. -
installPreviewPanel
protected void installPreviewPanel()Installs preview panel. -
uninstallPreviewPanel
protected void uninstallPreviewPanel()Removes installed preview panel from the UI delegate.- Since:
- 1.7
-
installDefaults
protected void installDefaults()Installs default properties. -
uninstallDefaults
protected void uninstallDefaults()Uninstalls default properties. -
installListeners
protected void installListeners()Registers listeners. -
createPropertyChangeListener
Returns an instance ofPropertyChangeListener
.- Returns:
- an instance of
PropertyChangeListener
-
uninstallListeners
protected void uninstallListeners()Unregisters listeners.
-