109 |
} |
} |
110 |
} |
} |
111 |
|
|
112 |
/** Whether the color change was initiated by the spinners. */ |
/** Whether the color change was initiated by the spinners. |
113 |
private transient boolean spinnerChange = false; |
* This is package-private to avoid an accessor method. */ |
114 |
|
transient boolean spinnerChange = false; |
115 |
/** Whether the color change was initiated by the sliders. */ |
|
116 |
private transient boolean sliderChange = false; |
/** Whether the color change was initiated by the sliders. |
117 |
|
* This is package-private to avoid an accessor method. */ |
118 |
|
transient boolean sliderChange = false; |
119 |
|
|
120 |
/** |
/** |
121 |
* Whether the change was forced by the chooser (meaning the color has |
* Whether the change was forced by the chooser (meaning the color has |
122 |
* already been changed). |
* already been changed). |
123 |
|
* This is package-private to avoid an accessor method. |
124 |
*/ |
*/ |
125 |
private transient boolean updateChange = false; |
transient boolean updateChange = false; |
126 |
|
|
127 |
/** The ChangeListener for the sliders. */ |
/** The ChangeListener for the sliders. */ |
128 |
private transient ChangeListener colorChanger; |
private transient ChangeListener colorChanger; |
130 |
/** The ChangeListener for the spinners. */ |
/** The ChangeListener for the spinners. */ |
131 |
private transient ChangeListener spinnerHandler; |
private transient ChangeListener spinnerHandler; |
132 |
|
|
133 |
/** The slider that handles the red values. */ |
/** The slider that handles the red values. |
134 |
private transient JSlider R; |
* This is package-private to avoid an accessor method. */ |
135 |
|
transient JSlider R; |
136 |
/** The slider that handles the green values. */ |
|
137 |
private transient JSlider G; |
/** The slider that handles the green values. |
138 |
|
* This is package-private to avoid an accessor method. */ |
139 |
/** The slider that handles the blue values. */ |
transient JSlider G; |
140 |
private transient JSlider B; |
|
141 |
|
/** The slider that handles the blue values. |
142 |
|
* This is package-private to avoid an accessor method. */ |
143 |
|
transient JSlider B; |
144 |
|
|
145 |
/** The label for the red slider. */ |
/** The label for the red slider. */ |
146 |
private transient JLabel RLabel; |
private transient JLabel RLabel; |
151 |
/** The label for the blue slider. */ |
/** The label for the blue slider. */ |
152 |
private transient JLabel BLabel; |
private transient JLabel BLabel; |
153 |
|
|
154 |
/** The spinner that handles the red values. */ |
/** The spinner that handles the red values. |
155 |
private transient JSpinner RSpinner; |
* This is package-private to avoid an accessor method. */ |
156 |
|
transient JSpinner RSpinner; |
157 |
/** The spinner that handles the green values. */ |
|
158 |
private transient JSpinner GSpinner; |
/** The spinner that handles the green values. |
159 |
|
* This is package-private to avoid an accessor method. */ |
160 |
/** The spinner that handles the blue values. */ |
transient JSpinner GSpinner; |
161 |
private transient JSpinner BSpinner; |
|
162 |
|
/** The spinner that handles the blue values. |
163 |
|
* This is package-private to avoid an accessor method. */ |
164 |
|
transient JSpinner BSpinner; |
165 |
|
|
166 |
/** |
/** |
167 |
* Creates a new DefaultRGBChooserPanel object. |
* Creates a new DefaultRGBChooserPanel object. |