Additional top-level classes in compilation unit: SwatchPanel, RecentSwatchPanel, MainSwatchPanel.
Warning
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeans
has been added to the java.beans package.
Please see java..
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| pack-priv class | |
| private class | |
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private KeyListener | |
| pack-priv MouseListener | |
| private KeyListener | |
| pack-priv MouseListener | |
| pack-priv RecentSwatchPanel | |
| pack-priv SwatchPanel |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | buildChooser()
Implements abstract javax. Builds a new chooser panel. |
| public int | Returns: Character index to render mnemonic for; -1 to provide no visual identifier for this panel.Overrides javax. Provides a hint to the look and feel as to the index of the character in
|
| public String | getDisplayName()
Implements abstract javax. Returns a string containing the display name of the panel. |
| public Icon | getLargeDisplayIcon()
Implements abstract javax. Returns the large display icon for the panel. |
| public int | Returns: KeyEvent.VK constant identifying the mnemonic; <= 0 for no mnemonicOverrides javax. Provides a hint to the look and feel as to the
|
| public Icon | getSmallDisplayIcon()
Implements abstract javax. Returns the small display icon for the panel. |
| public void | installChooserPanel(JColorChooser enclosingChooser)
Overrides javax. The background color, foreground color, and font are already set to the defaults from the defaults table before this method is called. |
| public void | uninstallChooserPanel(JColorChooser enclosingChooser)
Overrides javax. Invoked when the panel is removed from the chooser. |
| public void | updateChooser()
Implements abstract javax. Invoked automatically when the model's state changes. |
| mainSwatchKeyListener | back to summary |
|---|---|
| private KeyListener mainSwatchKeyListener | |
| mainSwatchListener | back to summary |
|---|---|
| pack-priv MouseListener mainSwatchListener | |
| recentSwatchKeyListener | back to summary |
|---|---|
| private KeyListener recentSwatchKeyListener | |
| recentSwatchListener | back to summary |
|---|---|
| pack-priv MouseListener recentSwatchListener | |
| recentSwatchPanel | back to summary |
|---|---|
| pack-priv RecentSwatchPanel recentSwatchPanel | |
| swatchPanel | back to summary |
|---|---|
| pack-priv SwatchPanel swatchPanel | |
| DefaultSwatchChooserPanel | back to summary |
|---|---|
| public DefaultSwatchChooserPanel() | |
| buildChooser | back to summary |
|---|---|
| protected void buildChooser() Implements abstract javax. Doc from javax. Builds a new chooser panel. | |
| getDisplayedMnemonicIndex | back to summary |
|---|---|
| public int getDisplayedMnemonicIndex() Overrides javax. Provides a hint to the look and feel as to the index of the character in
The return value here is a hint, it is ultimately up to the look
and feel to honor the return value in some meaningful way. For example,
a look and feel may wish to render each
This implementation looks up the value from the default
| |
| getDisplayName | back to summary |
|---|---|
| public String getDisplayName() Implements abstract javax. Doc from javax. Returns a string containing the display name of the panel. | |
| getLargeDisplayIcon | back to summary |
|---|---|
| public Icon getLargeDisplayIcon() Implements abstract javax. Doc from javax. Returns the large display icon for the panel. | |
| getMnemonic | back to summary |
|---|---|
| public int getMnemonic() Overrides javax. Provides a hint to the look and feel as to the
The return value here is a hint, it is ultimately up to the look and feel to honor the return value in some meaningful way.
This implementation looks up the value from the default
| |
| getSmallDisplayIcon | back to summary |
|---|---|
| public Icon getSmallDisplayIcon() Implements abstract javax. Doc from javax. Returns the small display icon for the panel. | |
| installChooserPanel | back to summary |
|---|---|
| public void installChooserPanel(JColorChooser enclosingChooser) Overrides javax. The background color, foreground color, and font are already set to the defaults from the defaults table before this method is called. | |
| uninstallChooserPanel | back to summary |
|---|---|
| public void uninstallChooserPanel(JColorChooser enclosingChooser) Overrides javax. Doc from javax. Invoked when the panel is removed from the chooser.
If override this, be sure to call | |
| updateChooser | back to summary |
|---|---|
| public void updateChooser() Implements abstract javax. Doc from javax. Invoked automatically when the model's state changes.
It is also called by | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | keyPressed(KeyEvent e)
Overrides java. Implements java. Invoked when a key has been pressed. |
| MainSwatchKeyListener | back to summary |
|---|---|
| private MainSwatchKeyListener() | |
| keyPressed | back to summary |
|---|---|
| public void keyPressed(KeyEvent e) Overrides java. Implements java. Doc from java. Invoked when a key has been pressed. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | mousePressed(MouseEvent e)
Overrides java. Implements java. Invoked when a mouse button has been pressed on a component. |
| MainSwatchListener | back to summary |
|---|---|
| pack-priv MainSwatchListener() | |
| mousePressed | back to summary |
|---|---|
| public void mousePressed(MouseEvent e) Overrides java. Implements java. Doc from java. Invoked when a mouse button has been pressed on a component. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | keyPressed(KeyEvent e)
Overrides java. Implements java. Invoked when a key has been pressed. |
| RecentSwatchKeyListener | back to summary |
|---|---|
| private RecentSwatchKeyListener() | |
| keyPressed | back to summary |
|---|---|
| public void keyPressed(KeyEvent e) Overrides java. Implements java. Doc from java. Invoked when a key has been pressed. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | mousePressed(MouseEvent e)
Overrides java. Implements java. Invoked when a mouse button has been pressed on a component. |
| RecentSwatchListener | back to summary |
|---|---|
| pack-priv RecentSwatchListener() | |
| mousePressed | back to summary |
|---|---|
| public void mousePressed(MouseEvent e) Overrides java. Implements java. Doc from java. Invoked when a mouse button has been pressed on a component. | |