Modifier and Type | Field and Description |
---|---|
private final DiagramComponent | |
private final JLabel | |
private static final int | |
private final ColorModel | |
private final ColorPanel | |
private final DiagramComponent | |
private final JFormattedTextField |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
protected void | buildChooser()
Implements abstract javax. Builds a new chooser panel. |
public int | getDisplayedMnemonicIndex()
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 | getMnemonic()
Overrides 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 boolean | isColorTransparencySelectionEnabled()
Overrides javax. Gets whether color chooser panel allows to select the transparency (alpha value) of a color. |
public void | propertyChange(PropertyChangeEvent
A PropertyChangeEvent object describing the event source
and the property that has changed. event)Implements java. This method gets called when a bound property is changed. |
public void | setColorTransparencySelectionEnabled(boolean
true if the transparency of a color can be selected b)Overrides javax. Sets whether color chooser panel allows to select the transparency (alpha value) of a color. |
public void | setEnabled(boolean
true if this component should be enabled, false otherwise enabled)Overrides javax. Sets whether or not this component is enabled. |
private static void | |
private static void | setInheritsPopupMenu(JComponent
the root component of the tree component, boolean whether or not the popup menu is inherited value)Allows to show context popup for all components recursively. |
public void | updateChooser()
Implements abstract javax. Invoked automatically when the model's state changes. |
diagram | back to summary |
---|---|
private final DiagramComponent diagram |
label | back to summary |
---|---|
private final JLabel label |
MASK | back to summary |
---|---|
private static final int MASK |
model | back to summary |
---|---|
private final ColorModel model |
panel | back to summary |
---|---|
private final ColorPanel panel |
slider | back to summary |
---|---|
private final DiagramComponent slider |
text | back to summary |
---|---|
private final JFormattedTextField text |
ColorChooserPanel | back to summary |
---|---|
pack-priv ColorChooserPanel(ColorModel model) |
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. Doc from 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 returns -1, indicating the
|
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. Doc from 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 returns 0, indicating the
|
getSmallDisplayIcon | back to summary |
---|---|
public Icon getSmallDisplayIcon() Implements abstract javax. Doc from javax. Returns the small display icon for the panel. |
isColorTransparencySelectionEnabled | back to summary |
---|---|
public boolean isColorTransparencySelectionEnabled() Overrides javax. Doc from javax. Gets whether color chooser panel allows to select the transparency (alpha value) of a color.
|
propertyChange | back to summary |
---|---|
public void propertyChange(PropertyChangeEvent event) Implements java. Doc from java. This method gets called when a bound property is changed.
|
setColorTransparencySelectionEnabled | back to summary |
---|---|
public void setColorTransparencySelectionEnabled(boolean b) Overrides javax. Doc from javax. Sets whether color chooser panel allows to select the transparency
(alpha value) of a color.
This method fires a property-changed event, using the string value of
The value is a hint and may not be applicable to all types of chooser panel. The default value is
|
setEnabled | back to summary |
---|---|
public void setEnabled(boolean enabled) Overrides javax. Doc from javax. Sets whether or not this component is enabled. A component that is enabled may respond to user input, while a component that is not enabled cannot respond to user input. Some components may alter their visual representation when they are disabled in order to provide feedback to the user that they cannot take input. Note Disabling a component does not disable its children. Note Disabling a lightweight component does not prevent it from receiving MouseEvents.
|
setEnabled | back to summary |
---|---|
private static void setEnabled(Container container, boolean enabled) |
setInheritsPopupMenu | back to summary |
---|---|
private static void setInheritsPopupMenu(JComponent component, boolean value) Allows to show context popup for all components recursively.
|
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
|