11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package javafx.scene.control;
27
28 import javafx.collections.FXCollections;
29 import javafx.collections.ObservableList;
30 import javafx.scene.paint.Color;
31 import com.sun.javafx.scene.control.skin.ColorPickerSkin;
32
33 /**
34 * <p>ColorPicker control allows the user to select a color from either a standard
35 * palette of colors with a simple one click selection OR define their own custom color.
36 *
37 * <p>The {@link #valueProperty() value} is the currently selected {@link javafx.scene.paint.Color}.
38 * An initial color can be set by calling setColor or via the constructor. If nothing
39 * is specified, a default initial color is used.
40 *
41 * <p>The ColorPicker control provides a color palette with a predefined set of colors. If
42 * the user does not want to choose from the predefined set, they can create a custom
43 * color by interacting with a custom color dialog. This dialog provides RGB,
44 * HSB and Web modes of interaction, to create new colors. It also lets the opacity
45 * of the color to be modified.
46 *
47 * <p>Once a new color is defined, users can choose whether they want to save it
48 * or just use it. If the new color is saved, this color will then appear in the
49 * custom colors area on the color palette. Also {@link #getCustomColors() getCustomColors}
50 * returns the list of saved custom colors.
51 *
|
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package javafx.scene.control;
27
28 import javafx.collections.FXCollections;
29 import javafx.collections.ObservableList;
30 import javafx.scene.paint.Color;
31 import javafx.scene.control.skin.ColorPickerSkin;
32
33 /**
34 * <p>ColorPicker control allows the user to select a color from either a standard
35 * palette of colors with a simple one click selection OR define their own custom color.
36 *
37 * <p>The {@link #valueProperty() value} is the currently selected {@link javafx.scene.paint.Color}.
38 * An initial color can be set by calling setColor or via the constructor. If nothing
39 * is specified, a default initial color is used.
40 *
41 * <p>The ColorPicker control provides a color palette with a predefined set of colors. If
42 * the user does not want to choose from the predefined set, they can create a custom
43 * color by interacting with a custom color dialog. This dialog provides RGB,
44 * HSB and Web modes of interaction, to create new colors. It also lets the opacity
45 * of the color to be modified.
46 *
47 * <p>Once a new color is defined, users can choose whether they want to save it
48 * or just use it. If the new color is saved, this color will then appear in the
49 * custom colors area on the color palette. Also {@link #getCustomColors() getCustomColors}
50 * returns the list of saved custom colors.
51 *
|