|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
javax.swing.colorchooser.AbstractColorChooserPanel
public abstract class AbstractColorChooserPanel
AbstractColorChooserPanel
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
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. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractColorChooserPanel()
Method Detail |
---|
public abstract String getDisplayName()
public int getMnemonic()
0
, to indicate no mnemonic key code.getDisplayedMnemonicIndex()
public int getDisplayedMnemonicIndex()
-1
to indicate no mnemonic,
subclasses can override.
-1
, to indicate no mnemonic.getDisplayName()
,
getMnemonic()
public abstract void updateChooser()
protected abstract void buildChooser()
public abstract Icon getSmallDisplayIcon()
public abstract Icon getLargeDisplayIcon()
public void installChooserPanel(JColorChooser chooser)
chooser
- The JColorChooser that will have this panel installed.public void uninstallChooserPanel(JColorChooser chooser)
chooser
- The JColorChooser that is having this panel removed.public ColorSelectionModel getColorSelectionModel()
protected Color getColorFromModel()
public void paint(Graphics graphics)
paint
in class JComponent
graphics
- The Graphics object to paint with.JComponent.paintImmediately(Rectangle)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |