class ColorPalette
extends Region
Modifier and Type | Class and Description |
---|---|
(package private) class |
ColorPalette.ColorPickerGrid |
(package private) class |
ColorPalette.ColorSquare |
(package private) static class |
ColorPalette.ColorType |
Modifier and Type | Field and Description |
---|---|
private ColorPicker |
colorPicker |
(package private) ColorPalette.ColorPickerGrid |
colorPickerGrid |
private ContextMenu |
contextMenu |
(package private) CustomColorDialog |
customColorDialog |
private GridPane |
customColorGrid |
private Label |
customColorLabel |
private int |
customColorLastRowLength |
(package private) Hyperlink |
customColorLink |
private int |
customColorNumber |
private int |
customColorRows |
private boolean |
dragDetected |
private ColorPalette.ColorSquare |
focusedSquare |
private ColorPalette.ColorSquare |
hoverSquare |
private Color |
mouseDragColor |
private static int |
NUM_OF_COLORS |
private static int |
NUM_OF_COLUMNS |
private static int |
NUM_OF_ROWS |
private PopupControl |
popupControl |
private static double[] |
RAW_VALUES |
private Separator |
separator |
private static int |
SQUARE_SIZE |
private GridPane |
standardColorGrid |
Constructor and Description |
---|
ColorPalette(ColorPicker colorPicker) |
Modifier and Type | Method and Description |
---|---|
private void |
buildCustomColors() |
private void |
buildStandardColors() |
private ColorPalette.ColorSquare |
findColorSquare(GridPane colorGrid,
Color color) |
ColorPalette.ColorPickerGrid |
getColorGrid() |
private void |
initNavigation() |
boolean |
isCustomColorDialogShowing() |
private void |
processSelectKey(KeyEvent ke) |
private void |
setFocusedSquare(ColorPalette.ColorSquare square) |
void |
setPopupControl(PopupControl pc) |
void |
updateSelection(Color color) |
private static final int SQUARE_SIZE
ColorPalette.ColorPickerGrid colorPickerGrid
final Hyperlink customColorLink
CustomColorDialog customColorDialog
private ColorPicker colorPicker
private final GridPane standardColorGrid
private final GridPane customColorGrid
private final Separator separator
private final Label customColorLabel
private PopupControl popupControl
private ColorPalette.ColorSquare focusedSquare
private ContextMenu contextMenu
private Color mouseDragColor
private boolean dragDetected
private int customColorNumber
private int customColorRows
private int customColorLastRowLength
private final ColorPalette.ColorSquare hoverSquare
private static final int NUM_OF_COLUMNS
private static double[] RAW_VALUES
private static final int NUM_OF_COLORS
private static final int NUM_OF_ROWS
private void setFocusedSquare(ColorPalette.ColorSquare square)
private void buildStandardColors()
private void buildCustomColors()
private void initNavigation()
private void processSelectKey(KeyEvent ke)
public void setPopupControl(PopupControl pc)
public ColorPalette.ColorPickerGrid getColorGrid()
public boolean isCustomColorDialogShowing()
public void updateSelection(Color color)
private ColorPalette.ColorSquare findColorSquare(GridPane colorGrid, Color color)