public class FXColorPicker extends java.lang.Object implements IPropertyChangeNotifier
| Constructor and Description |
|---|
FXColorPicker(Composite parent)
Constructs a new
FXColorPicker. |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener) |
protected Control |
createControl(Composite parent)
Creates the visualization for this
FXColorPicker. |
javafx.scene.paint.Color |
getColor()
Returns the currently selected
Color. |
Control |
getControl()
Returns the
Control that visualizes this FXColorPicker. |
protected static javafx.scene.paint.Color |
pickColor(Shell shell,
javafx.scene.paint.Color initial)
Opens a
ColorDialog to let the user pick a Color. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener) |
void |
setColor(javafx.scene.paint.Color color)
Changes the currently selected
Color to the given value. |
public FXColorPicker(Composite parent)
FXColorPicker.parent - The parent Composite.protected static javafx.scene.paint.Color pickColor(Shell shell, javafx.scene.paint.Color initial)
ColorDialog to let the user pick a Color. Returns
the picked Color, or null if no color was picked.shell - The Shell which serves as the parent for the
ColorDialog.initial - The initial Color to display in the
ColorDialog.Color, or null.public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener in interface IPropertyChangeNotifierprotected Control createControl(Composite parent)
FXColorPicker.parent - The parent Composite.Control that visualizes this FXColorPicker.public javafx.scene.paint.Color getColor()
Color.Color.public Control getControl()
Control that visualizes this FXColorPicker.Control that visualizes this FXColorPicker.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener in interface IPropertyChangeNotifierpublic void setColor(javafx.scene.paint.Color color)
Color to the given value.color - The newly selected Color.Copyright (c) 2014 itemis AG and others. All rights reserved.