public void setShape(Shape shape) { this.shape = shape; shape.setLineColor(new Color(Display.getCurrent(), new RGB(30, 144, 255))); shape.setFillColor(new Color(Display.getCurrent(), new RGB(230, 230, 250))); }
private void paint(GC gc) { gc.setAntialias(SWT.ON); setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE)); gc.fillRectangle(0, 0, getSize().x, getSize().y); shape.paint(gc); }