|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.visuals.ColorPanel
public class ColorPanel
The ColorPanel is a panel to be displayed in an instance of ColorDialog or ColorCustomizer. It provides the interface which allows the user to create a com.sas.awt.Color object.
Field Summary | |
---|---|
BasicColorsPanel |
bcp
|
protected Label |
bLabel
|
protected TextField |
blueField
|
protected SpinButton |
blueSpin
|
protected ComboBox |
cBox
|
CustomColorsPanel |
ccp
|
protected Component |
colorDisplay
|
protected Label |
gLabel
|
protected TextField |
greenField
|
protected SpinButton |
greenSpin
|
protected TextField |
hiddenField
|
protected TextField |
hiddenField2
|
protected TextField |
hueField
|
protected SpinButton |
hueSpin
|
protected CheckBox |
inheritedBox
|
protected Button |
inheritedButton
|
protected TextField |
lumField
|
protected SpinButton |
lumSpin
|
protected Panel |
p
|
static java.lang.String |
RB_KEY
|
protected TextField |
redField
|
protected SpinButton |
redSpin
|
protected Label |
rLabel
|
protected TextField |
satField
|
protected SpinButton |
satSpin
|
Constructor Summary | |
---|---|
ColorPanel()
|
|
ColorPanel(boolean showCustom)
|
|
ColorPanel(boolean showCustom,
boolean showInherit)
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
addCustomColor()
Create a new Custom Color (called from ColorDialog) |
void |
adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
Invoked when an adjustment property has been changed. |
void |
focusGained(java.awt.event.FocusEvent e)
|
void |
focusLost(java.awt.event.FocusEvent e)
Process textField changes when focus is lost |
java.awt.Color |
getCurrentColor()
Returns the current color |
void |
initialize()
Perform initialization |
void |
itemStateChanged(java.awt.event.ItemEvent e)
|
void |
propertyChange(java.beans.PropertyChangeEvent e)
Invoked when a property has changed. |
void |
setCurrentColor(java.awt.Color cl)
|
void |
setCurrentColor(Color cl)
|
Methods inherited from class com.sas.awt.Panel |
---|
getDefaultHeight, getDefaultWidth, getExtendedBeanInfo, remove, remove, removeAll, setDefaultHeight, setDefaultValues, setDefaultWidth |
Methods inherited from interface com.sas.awt.ContainerInterface |
---|
getComponents, getLayout, invalidate, setLayout, validate |
Field Detail |
---|
public static final java.lang.String RB_KEY
protected Panel p
protected ComboBox cBox
protected CheckBox inheritedBox
protected Button inheritedButton
protected Component colorDisplay
protected Label rLabel
protected Label bLabel
protected Label gLabel
protected TextField hiddenField
protected TextField redField
protected TextField blueField
protected TextField greenField
protected TextField hueField
protected TextField satField
protected TextField lumField
protected TextField hiddenField2
protected SpinButton redSpin
protected SpinButton hueSpin
protected SpinButton greenSpin
protected SpinButton satSpin
protected SpinButton blueSpin
protected SpinButton lumSpin
public BasicColorsPanel bcp
public CustomColorsPanel ccp
Constructor Detail |
---|
public ColorPanel()
public ColorPanel(boolean showCustom)
public ColorPanel(boolean showCustom, boolean showInherit)
Method Detail |
---|
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void addCustomColor()
public void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
adjustmentValueChanged
in interface java.awt.event.AdjustmentListener
e
- AdjustmentEventpublic void focusGained(java.awt.event.FocusEvent e)
focusGained
in interface java.awt.event.FocusListener
public void focusLost(java.awt.event.FocusEvent e)
focusLost
in interface java.awt.event.FocusListener
public java.awt.Color getCurrentColor()
public void initialize()
initialize
in interface com.sas.ComponentInterface
initialize
in class PanelVisualComponent
ComponentInterface.initialize()
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener
propertyChange
in class PanelVisualComponent
e
- PropertyChangeEventPropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)
public void itemStateChanged(java.awt.event.ItemEvent e)
public void setCurrentColor(java.awt.Color cl)
public void setCurrentColor(Color cl)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |