- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- javax.swing.colorchooser.AbstractColorChooserPanel
-
- All Implemented Interfaces:
ImageObserver,MenuContainer,Serializable,Accessible
public abstract class AbstractColorChooserPanel extends JPanel
This is the abstract superclass for color choosers. If you want to add a new color chooser panel into aJColorChooser, 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 JavaBeans™ has been added to the
java.beanspackage. Please seeXMLEncoder.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces declared in class javax.swing.JPanel
JPanel.AccessibleJPanel
-
Nested classes/interfaces declared in class javax.swing.JComponent
JComponent.AccessibleJComponent
-
Nested classes/interfaces declared in class java.awt.Container
Container.AccessibleAWTContainer
-
Nested classes/interfaces declared in class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
-
Field Summary
Fields Modifier and Type Field Description static StringTRANSPARENCY_ENABLED_PROPERTYIdentifies that the transparency of the color (alpha value) can be selected-
Fields declared in class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
Fields declared in class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
Fields declared in interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
-
Constructor Summary
Constructors Constructor Description AbstractColorChooserPanel()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidbuildChooser()Builds a new chooser panel.protected ColorgetColorFromModel()Returns the color that is currently selected.ColorSelectionModelgetColorSelectionModel()Returns the model that the chooser panel is editing.intgetDisplayedMnemonicIndex()Provides a hint to the look and feel as to the index of the character ingetDisplayNamethat should be visually identified as the mnemonic.abstract StringgetDisplayName()Returns a string containing the display name of the panel.abstract IcongetLargeDisplayIcon()Returns the large display icon for the panel.intgetMnemonic()Provides a hint to the look and feel as to theKeyEvent.VKconstant that can be used as a mnemonic to access the panel.abstract IcongetSmallDisplayIcon()Returns the small display icon for the panel.voidinstallChooserPanel(JColorChooser enclosingChooser)Invoked when the panel is added to the chooser.booleanisColorTransparencySelectionEnabled()Gets whether color chooser panel allows to select the transparency (alpha value) of a color.voidpaint(Graphics g)Draws the panel.voidsetColorTransparencySelectionEnabled(boolean b)Sets whether color chooser panel allows to select the transparency (alpha value) of a color.voiduninstallChooserPanel(JColorChooser enclosingChooser)Invoked when the panel is removed from the chooser.abstract voidupdateChooser()Invoked automatically when the model's state changes.-
Methods declared in class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
-
Methods declared in class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
-
Methods declared in class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
-
Methods declared in class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setava/awt/Component.html#getLocation()">getLocationgetLocationgetMouseWheelListeners,9createVolatileImage, getIgnoreRepaint<../java/awt/Component.html#getMousePosition()">getMousePomponent.../../java/awt/Component.html#processHierarchyBoundsEv/awt/Component.htm="../JComponent.html#isPaintingForPrint()">isPaintingForOwsngeListeners()">getPropertyChangeListeners, requestFocalid()">iisyBoundsListener, getFondusInWindt()">getFid, ntOrientation(java.awt.ComponentOrientation)">setComponentOrienInWindt()">getFid, ntOrientation(java.awt.ComponentOrien../java/awt/ComponepgetFondusInWindt()">getFidgetFonShape href="../../../javlnaint()">getIgnoreRe">getIgnoreRepaint<../java/awt/Component.html#getMousePosition()">getMousePomponent.../../java/awt/Component="i1f="../JComponent.htreRepaint<../jaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaass="bsdiv>getComponents, ml#setVava.f="../../../java/awt/ContainostFocus, isFocusTraversableocusTraversable()">isFocusTraversableremoveInputMethodListener, disableEvents, dispatchEvent, enable, enableEvennent.html#enable(boolean)">enable, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setIgnoreRepai/a>, , getFonnt)">post(java.oundsListenerisShowing,/java/awt/Com../../java/awt/Component.html#isValid(nsIgnoreRepaint, , getFonnt)">post(java.oundsListener, geuestova/awt/Coent(intdsListener, enableEvennent.hef="../,>,ava/awt/Component.html#isCursorSet()">isCursorSet, isDisplayable, isEnabutS./../.., isFocusOwner, isFocusTradf=".. 6MhlousOwner, , isFuseWheelL./../java/awt/ComponepgetFonnt)">post(java.oundsListenerisShowing,/java/awt/Com../../java/awt/Component.html#isValid(nsIgnoreRepaint, IgnoreRepaint, IgnoreRepaint, IgnoreRepaint, setLayeredPane(JLayeredPane layeredPane) KeyStrokeKeyStroke. getKeyStroke(char keyChar, booLink">(char keyChar, booLink"9 booLink"9 booLink"9 booLink"9 booLink"9 booLink"9 booLink"9 booLink"9 booLink"9 booLink"9 booLink"9 booLink"9 booLink"9 booLink"9 booLink"9 booLink"9 booLink"9 booLink"9 booLink"9 javax. booLink"9 booLink"9 booLink"9 booLink"9 javax. booLink"9 booLink"9 booLink"9 booLink"9 javax. booLink"9 booLink"9 booLink"9 ../java/awt/Component.html#setMixingCutoutShape(java.awt.Shape)">Jonent.htm booLink"9 booLink"9 ../java/awt/Component.html#setelEvent, remove, removeComponentListener, removeComponentListener, removeComponentListener, setsetLayeredP;table)l#rntOrien..e(int,int)">l#rntOrien..e(int,int)">l#rntOrien..e(il(int,s.html#createVolatileImage(int,int)">l#rntOrien..e(">nextt)">l#rntOrien..e(int,int)">l#rntOrien..e(il(int/a>, l#rntOrndsListener,er(java.awt.event.ComponentListener)">removeComponentLisjevent.FocusLhtml#href="../../../java/awt/Component.html#processComponentEvent(jropn../jevent/awt/Component.html#prepareImage(java.awt.Image,java.aVref="../../../java(jropn..ava/awt/Com../../jent.html#prepareImaethodEv/java/awt/Component.html#createVolatileImage(int,int)">idate()">vaava(jrop(jaawt/Component.h(jaawt/java/awt/Component.homponeava/awt/Component.html#createVolatileImage(int,int)">idaB()">vaava(jropwt/Compol">Dawttml#setFt.html#createVolatileImage(int,int)">idaB()">vaava(jropwtess/../java/awt/Component.html#checkImage(java.awt.Image,java.awt.image.ImageObserver)">checkImage,
-
-