public class FXPaintSelectionDialog
extends org.eclipse.jface.dialogs.Dialog
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.blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
Constructor and Description |
---|
FXPaintSelectionDialog(org.eclipse.swt.widgets.Shell parent,
java.lang.String title)
Constructs a new
FXPaintSelectionDialog . |
Modifier and Type | Method and Description |
---|---|
protected void |
configureShell(org.eclipse.swt.widgets.Shell newShell) |
protected org.eclipse.swt.widgets.Control |
createAdvancedGradientFillControl(org.eclipse.swt.widgets.Composite parent)
Creates a
Composite that contains the advanced gradient picker. |
protected org.eclipse.swt.widgets.Control |
createColorFillControl(org.eclipse.swt.widgets.Composite parent)
Creates a
Composite that contains the simple color picker. |
protected org.eclipse.swt.widgets.Control |
createDialogArea(org.eclipse.swt.widgets.Composite parent) |
protected org.eclipse.swt.widgets.Control |
createSimpleGradientFillControl(org.eclipse.swt.widgets.Composite parent)
Creates a
Composite that contains the simple gradient picker. |
javafx.scene.paint.Paint |
getPaint()
Returns the currently selected
Paint . |
void |
setPaint(javafx.scene.paint.Paint paint)
Changes the currently selected
Paint to the given value. |
protected void |
updateImageLabel()
Re-renders the image that visualizes the currently selected
Paint
. |
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createButtonsForButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
public FXPaintSelectionDialog(org.eclipse.swt.widgets.Shell parent, java.lang.String title)
FXPaintSelectionDialog
.parent
- The parent Shell
.title
- The title for this dialog.protected void configureShell(org.eclipse.swt.widgets.Shell newShell)
configureShell
in class org.eclipse.jface.window.Window
protected org.eclipse.swt.widgets.Control createAdvancedGradientFillControl(org.eclipse.swt.widgets.Composite parent)
Composite
that contains the advanced gradient picker.parent
- The parent Composite
.Composite
that contains the advanced gradient picker.protected org.eclipse.swt.widgets.Control createColorFillControl(org.eclipse.swt.widgets.Composite parent)
Composite
that contains the simple color picker.parent
- The parent Composite
.Composite
that contains the simple color picker.protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
createDialogArea
in class org.eclipse.jface.dialogs.Dialog
protected org.eclipse.swt.widgets.Control createSimpleGradientFillControl(org.eclipse.swt.widgets.Composite parent)
Composite
that contains the simple gradient picker.parent
- The parent Composite
.Composite
that contains the simple gradient picker.public javafx.scene.paint.Paint getPaint()
Paint
.Paint
.public void setPaint(javafx.scene.paint.Paint paint)
Paint
to the given value.paint
- The new value for the selected Paint
.protected void updateImageLabel()
Paint
.Copyright (c) 2014, 2016 itemis AG and others. All rights reserved.