* @see SelectionLayer
*/
public void paintControl(PaintEvent e) {
GC gc = e.gc;
MapLayer layer;
Rectangle clip = gc.getClipping();
gc.setLineWidth(2);
// Do an initial fill with the background color
// todo: make background color configurable
// try {
// String colorString = displayPrefs.get("backgroundColor", "");
// g2d.setColor(Color.decode(colorString));
// } catch (NumberFormatException e) {
// }
gc.setBackground(defaultBgColor);
gc.fillRectangle(clip.x, clip.y, clip.width, clip.height);
paintSubMap(map, gc, 1.0f);
if (!getMode(PF_NOSPECIAL)) {
Iterator<?> li = map.getLayersSpecial();
while (li.hasNext()) {
layer = (MapLayer) li.next();
if (layer.isVisible()) {
if (layer instanceof SelectionLayer) {
// g2d.setComposite(AlphaComposite.getInstance(
// AlphaComposite.SRC_ATOP, 0.3f));
gc.setForeground(((SelectionLayer) layer)
.getHighlightColor());