javax.swing.colorchooser
public abstract class AbstractColorChooserPanel extends JPanel
Constructor Summary | |
---|---|
AbstractColorChooserPanel()
This is the constructor for the AbstractColorChooserPanel. |
Method Summary | |
---|---|
protected abstract void | buildChooser()
This method constructs and does any initialization necessary for the
chooser panel. |
protected Color | getColorFromModel()
This method returns the current color stored in the model for this
chooser panel.
|
ColorSelectionModel | getColorSelectionModel()
This method returns the ColorSelectionModel for the JColorChooser
associated with this chooser panel.
|
int | getDisplayedMnemonicIndex()
Returns the index of the character in the display name that is the
mnemonic. |
abstract String | getDisplayName()
This method returns the name displayed in the tab for this chooser panel.
|
abstract Icon | getLargeDisplayIcon()
This method sets the large icon useed in the jTabbedPane for this chooser
panel.
|
int | getMnemonic()
Returns the key code for the mnemonic for this panel. |
abstract Icon | getSmallDisplayIcon()
This method sets the small icon used in the JTabbedPane for this chooser
panel.
|
void | installChooserPanel(JColorChooser chooser)
This method installs the chooser panel for the given JColorChooser.
|
void | paint(Graphics graphics)
This method paints the chooser panel.
|
void | uninstallChooserPanel(JColorChooser chooser)
This method removes the chooser panel from the given JColorChooser and
does any necessary clean up for the chooser panel.
|
abstract void | updateChooser()
This method updates the chooser panel when the JColorChooser's color has
changed. |
Returns: The current color.
Returns: The ColorSelectionModel for the JColorChooser associated with this chooser panel.
-1
to indicate no mnemonic,
subclasses can override.
Returns: -1
, to indicate no mnemonic.
Since: 1.4
See Also: getDisplayName getMnemonic
Returns: The name displayed in the JTabbedPane's tabs.
Returns: The large icon.
Returns: 0
, to indicate no mnemonic key code.
Since: 1.4
See Also: getDisplayedMnemonicIndex
Returns: The small icon used in the JTabbedPane.
Parameters: chooser The JColorChooser that will have this panel installed.
Parameters: graphics The Graphics object to paint with.
Parameters: chooser The JColorChooser that is having this panel removed.