Community
Participate
Working Groups
Really hard to see what area is selected. Suggest the following change to the selector figure. Also, a set method for the selector figure could be added to make it easier to extend. private class SelectorFigure extends Figure { { Display display = Display.getCurrent(); PaletteData pData = new PaletteData(0xFF, 0xFF00, 0xFF0000); /** The following change makes the figure darker, but still transparent **/ RGB rgb = display.getSystemColor(SWT.COLOR_BLACK).getRGB(); int fillColor = pData.getPixel(rgb); ImageData iData = new ImageData(5, 5, 24, pData); iData.setPixel(0, 0, fillColor); iData.setAlpha(0, 0, 55); image = new Image(display, iData); }
Because of the changes made in bug #360740 (removed dispose() within SelectorFigure) it would now be possible to make the selector figure exchangeable by an arbitrary IFigure.