void createShadow(final Display display) { if (shadowImage != null) { shadowImage.dispose(); shadowImage = null; } ImageData data = new ImageData(60, 60, 32, new PaletteData(0xFF0000, 0xFF00, 0xFF)); Image tmpImage = shadowImage = new Image(display, data); GC gc = new GC(tmpImage); if (shadowColor == null) shadowColor = gc.getDevice().getSystemColor(SWT.COLOR_GRAY); gc.setBackground(shadowColor); drawTabBody(gc, new Rectangle(0, 0, 60, 60)); ImageData blured = blur(tmpImage, 5, 25); shadowImage = new Image(display, blured); tmpImage.dispose(); }
void createShadow(final Display display) { if (shadowImage != null) { shadowImage.dispose(); shadowImage = null; } ImageData data = new ImageData(60, 60, 32, new PaletteData(0xFF0000, 0xFF00, 0xFF)); Image tmpImage = shadowImage = new Image(display, data); GC gc = new GC(tmpImage); if (shadowColor == null) shadowColor = gc.getDevice().getSystemColor(SWT.COLOR_GRAY); gc.setBackground(shadowColor); drawTabBody(gc, new Rectangle(0, 0, 60, 60), SWT.None); ImageData blured = blur(tmpImage, 5, 25); shadowImage = new Image(display, blured); tmpImage.dispose(); }
this.drawTabBody(gc, bounds, state); return; case PART_HEADER:
return; case PART_BODY: this.drawTabBody(gc, bounds); return; case PART_HEADER: