Specifier<java.awt.Color>public class ChooserColorSpecifier extends SpecifierPanel<java.awt.Color>
| Constructor | Description |
|---|---|
ChooserColorSpecifier(java.awt.Color dfltColor) |
Constructs a specifier based on a given default colour.
|
ChooserColorSpecifier(javax.swing.JColorChooser chooser) |
Constructs a specifier based on a given JColorChooser.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected javax.swing.JComponent |
createComponent() |
Abstract method called lazily during
getComponent
to obtain the graphical component used by this specifier. |
static java.util.Map<java.lang.String,java.awt.Color[]> |
createPaletteMap() |
Creates some standard named colour lists.
|
javax.swing.JColorChooser |
getColorChooser() |
Returns this specifier's JColorChooser.
|
java.awt.Color |
getSpecifiedValue() |
Returns the typed value currently specified by the graphical component.
|
void |
setSpecifiedValue(java.awt.Color color) |
Sets the typed value represented by the graphical component.
|
void |
submitReport(ReportMap report) |
Accepts information about a completed plot that was drawn with
input from this specifier.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddActionListener, fireAction, getActionForwarder, getChangeForwarder, getComponent, isXFill, removeActionListenerpublic ChooserColorSpecifier(java.awt.Color dfltColor)
dfltColor - initial colourpublic ChooserColorSpecifier(javax.swing.JColorChooser chooser)
chooser - chooser componentprotected javax.swing.JComponent createComponent()
SpecifierPanelgetComponent
to obtain the graphical component used by this specifier.
It will be called a maximum of once. It is not necessary that
the component actually be created in this method, for instance
it may be created at construction time if that's more convenient.createComponent in class SpecifierPanel<java.awt.Color>public java.awt.Color getSpecifiedValue()
Specifierpublic void setSpecifiedValue(java.awt.Color color)
SpecifiergetSpecifiedValue should yield the same result.
However if a value is set which is of the correct type but cannot be represented by this specifier, results are unpredictable.
color - new valuepublic void submitReport(ReportMap report)
Specifierreport - report of a plot partially specified by this objectpublic javax.swing.JColorChooser getColorChooser()
public static java.util.Map<java.lang.String,java.awt.Color[]> createPaletteMap()
Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.