Professional Documents
Culture Documents
Jpanel: Public Abstract Class Abstractcolorchooserpanel Extends
Jpanel: Public Abstract Class Abstractcolorchooserpanel Extends
Jpanel: Public Abstract Class Abstractcolorchooserpanel Extends
extends JPanel
This is the abstract superclass for color choosers. If you want to add a new color chooser panel into
a JColorChooser, subclass this class.
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 JavaBeansTM has been added to the java.beans package. Please
see XMLEncoder.
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Com
ponent.BltBufferStrategy, Component.FlipBufferStrategy
Field Summary
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDI
TION, 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, TO
P_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor Summary
Constructors
AbstractColorChooserPanel()
Method Summary
Methods
protected Color getColorFromModel()
Returns the color that is currently selected.
ColorSelectionModel getColorSelectionModel()
Returns the model that the chooser panel is editing.
int getDisplayedMnemonicIndex()
Provides a hint to the look and feel as to the index of the character in get
mnemonic.
abstract String getDisplayName()
Returns a string containing the display name of the panel.
abstract Icon getLargeDisplayIcon()
Returns the large display icon for the panel.
int getMnemonic()
Provides a hint to the look and feel as to the KeyEvent.VK constan
abstract Icon getSmallDisplayIcon()
Returns the small display icon for the panel.
void installChooserPanel(JColorChooser encl
Invoked when the panel is added to the chooser.
void paint(Graphics g)
Draws the panel.
void uninstallChooserPanel(JColorChooser en
Invoked when the panel is removed from the chooser.
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisib
leRect, contains, createToolTip, disable, enable, firePropertyChange, fi
rePropertyChange, firePropertyChange, fireVetoableChange, getActionForK
eyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListen
ers, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder,
getBounds, getClientProperty, getComponentGraphics, getComponentPopupMe
nu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale
, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInpu
tMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners
, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponen
t, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRoot
Pane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getT
opLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, get
VetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocu
s, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isO
paque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin,
isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, pai
ntChildren, paintComponent, paintImmediately, paintImmediately, print,
printAll, printBorder, printChildren, printComponent, processComponentK
eyEvent, processKeyBinding, processKeyEvent, processMouseEvent, process
MouseMotionEvent, putClientProperty, registerKeyboardAction, registerKe
yboardAction, removeAncestorListener, removeNotify, removeVetoableChang
eListener, repaint, repaint, requestDefaultFocus, requestFocus, request
Focus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions
, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX
, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponent
PopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered
, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInherit
sPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSi
ze, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestF
ocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputW
henFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChang
eListener, addPropertyChangeListener, applyComponentOrientation, areFoc
usTraversalKeysSet, countComponents, deliverEvent, doLayout, findCompon
entAt, findComponentAt, getComponent, getComponentAt, getComponentAt, g
etComponentCount, getComponents, getComponentZOrder, getContainerListen
ers, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMous
ePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusC
ycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, la
yout, list, list, locate, minimumSize, paintComponents, preferredSize, p
rintComponents, processContainerEvent, processEvent, remove, remove, re
moveAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot
, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout,
transferFocusDownCycle, validate, validateTree