// create a legend, if requested...
if (createLegend) {
final LegendTitle legend = new LegendTitle(this.plot);
// legend.setMargin(new RectangleInsets(0, 0, 0, 0));
// legend.setPadding(5, 1, 1,1);
final LineBorder frame = new LineBorder();
legend.setFrame(frame);
legend.setBackgroundPaint(StaticColorChecker.dublicateColor(SWT.COLOR_WHITE));// Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));
legend.setPosition(RectangleEdge.BOTTOM);
this.subtitles.add(legend);
legend.addChangeListener(this);