}
);
// row 2: outline color
new Label(general, SWT.NONE).setText(localizationResources.getString(
"Outline_Paint"));
this.outlinePaintCanvas = new SWTPaintCanvas(general, SWT.NONE,
SWTUtils.toSwtColor(getDisplay(), plot.getOutlinePaint()));
GridData outlineGridData = new GridData(SWT.FILL, SWT.CENTER, true,
false);
outlineGridData.heightHint = 20;
this.outlinePaintCanvas.setLayoutData(outlineGridData);
Button selectOutlineColor = new Button(general, SWT.PUSH);
selectOutlineColor.setText(localizationResources.getString(
"Select..."));
selectOutlineColor.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER,
false, false));
selectOutlineColor.addSelectionListener(
new SelectionAdapter() {
public void widgetSelected(SelectionEvent event) {
ColorDialog dlg = new ColorDialog(getShell());
dlg.setText(localizationResources.getString(
"Outline_Paint"));
dlg.setRGB(SWTPlotAppearanceEditor.this
.outlinePaintCanvas.getColor().getRGB());
RGB rgb = dlg.open();
if (rgb != null) {
SWTPlotAppearanceEditor.this.outlinePaintCanvas
.setColor(new Color(getDisplay(), rgb));
}
}
}
);
// row 3: background paint
new Label(general, SWT.NONE).setText(localizationResources.getString(
"Background_paint"));
this.backgroundPaintCanvas = new SWTPaintCanvas(general, SWT.NONE,
SWTUtils.toSwtColor(getDisplay(), plot.getBackgroundPaint()));
GridData bgGridData = new GridData(SWT.FILL, SWT.CENTER, true, false);
bgGridData.heightHint = 20;
this.backgroundPaintCanvas.setLayoutData(bgGridData);
Button selectBgPaint = new Button(general, SWT.PUSH);