Class FXPaintSelectionDialog

  • All Implemented Interfaces:
    IShellProvider

    public class FXPaintSelectionDialog
    extends Dialog
    The FXPaintSelectionDialog is a Dialog that allows to select a JavaFX Paint. It provides a simple color picker, a simple gradient picker, and an advanced gradient picker.
    • Constructor Detail

      • FXPaintSelectionDialog

        public FXPaintSelectionDialog​(Shell parent,
                                      java.lang.String title)
        Constructs a new FXPaintSelectionDialog.
        Parameters:
        parent - The parent Shell.
        title - The title for this dialog.
    • Method Detail

      • createAdvancedGradientFillControl

        protected Control createAdvancedGradientFillControl​(Composite parent)
        Creates a Composite that contains the advanced gradient picker.
        Parameters:
        parent - The parent Composite.
        Returns:
        The Composite that contains the advanced gradient picker.
      • createColorFillControl

        protected Control createColorFillControl​(Composite parent)
        Creates a Composite that contains the simple color picker.
        Parameters:
        parent - The parent Composite.
        Returns:
        The Composite that contains the simple color picker.
      • createSimpleGradientFillControl

        protected Control createSimpleGradientFillControl​(Composite parent)
        Creates a Composite that contains the simple gradient picker.
        Parameters:
        parent - The parent Composite.
        Returns:
        The Composite that contains the simple gradient picker.
      • getPaint

        public javafx.scene.paint.Paint getPaint()
        Returns the currently selected Paint.
        Returns:
        The currently selected Paint.
      • setPaint

        public void setPaint​(javafx.scene.paint.Paint paint)
        Changes the currently selected Paint to the given value.
        Parameters:
        paint - The new value for the selected Paint.
      • updateImageLabel

        protected void updateImageLabel()
        Re-renders the image that visualizes the currently selected Paint .