Jpanel: Public Abstract Class Abstractcolorchooserpanel Extends

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

 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
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.

 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.BaselineResizeBehavior, Com
ponent.BltBufferStrategy, Component.FlipBufferStrategy

 Field Summary

 Fields inherited from class javax.swing.JComponent

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

 Fields inherited from interface java.awt.image.ImageObserver

ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH

 Constructor Summary

Constructors 

Constructor and Description

AbstractColorChooserPanel() 

 Method Summary

Methods 

Modifier and Type Method and Description

protected abstract buildChooser()


void Builds a new chooser panel.

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.

abstract void updateChooser()


Invoked automatically when the model's state changes.

 Methods inherited from class javax.swing.JPanel

getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI

 Methods inherited from class javax.swing.JComponent

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

 Methods inherited from class java.awt.Container

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

You might also like