Revision 10338
org.gvsig.legend.picturemarkersymboltable/trunk/org.gvsig.legend.picturemarkersymboltable/org.gvsig.legend.picturemarkersymboltable.lib/org.gvsig.legend.picturemarkersymboltable.lib.impl/src/main/java/org/gvsig/legend/picturemarkersymboltable/lib/impl/ImageMarkerSymbol.java | ||
---|---|---|
1 | 1 |
package org.gvsig.legend.picturemarkersymboltable.lib.impl; |
2 | 2 |
|
3 |
import java.awt.Color; |
|
3 | 4 |
import java.awt.Graphics2D; |
4 | 5 |
import java.awt.Rectangle; |
5 | 6 |
import java.awt.geom.AffineTransform; |
... | ... | |
252 | 253 |
|
253 | 254 |
|
254 | 255 |
@Override |
255 |
public ISymbol getSymbolForSelection() { |
|
256 |
public ISymbol getSymbolForSelection(Color selectionColor) {
|
|
256 | 257 |
if (selectionSym == null) { |
257 | 258 |
try { |
258 | 259 |
selectionSym = (ImageMarkerSymbol) this.clone(); |
... | ... | |
261 | 262 |
} |
262 | 263 |
selectionSym.selected = true; |
263 | 264 |
selectionSym.selectionSym = selectionSym; // avoid too much lazy creations |
264 |
} else { |
|
265 |
selectionSym.setColor(MapContext.getSelectionColor()); |
|
266 | 265 |
} |
266 |
selectionSym.setColor(selectionColor); |
|
267 | 267 |
return selectionSym; |
268 | 268 |
} |
269 | 269 |
|
270 | 270 |
Also available in: Unified diff