Revision 47790 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.impl/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/symbol/marker/impl/PictureMarkerSymbol.java
PictureMarkerSymbol.java | ||
---|---|---|
23 | 23 |
*/ |
24 | 24 |
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.impl; |
25 | 25 |
|
26 |
import java.awt.Color; |
|
26 | 27 |
import java.awt.Graphics2D; |
27 | 28 |
import java.awt.Rectangle; |
28 | 29 |
import java.awt.geom.AffineTransform; |
... | ... | |
36 | 37 |
import org.gvsig.fmap.dal.feature.FeatureType; |
37 | 38 |
import org.gvsig.fmap.geom.Geometry; |
38 | 39 |
import org.gvsig.fmap.geom.primitive.Point; |
39 |
import org.gvsig.fmap.mapcontext.MapContext; |
|
40 | 40 |
import org.gvsig.fmap.mapcontext.MapContextLocator; |
41 | 41 |
import org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport; |
42 | 42 |
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol; |
... | ... | |
125 | 125 |
} |
126 | 126 |
|
127 | 127 |
@Override |
128 |
public ISymbol getSymbolForSelection() { |
|
128 |
public ISymbol getSymbolForSelection(Color selectionColor) {
|
|
129 | 129 |
if (selectionSym == null) { |
130 | 130 |
try { |
131 | 131 |
selectionSym = (PictureMarkerSymbol) this.clone(); |
132 |
selectionSym.setColor(selectionColor); |
|
132 | 133 |
} catch (CloneNotSupportedException e) { |
133 | 134 |
LOG.warn("Error creating the selection symbol for the symbol "+ this, e); |
134 | 135 |
} |
135 | 136 |
selectionSym.selected = true; |
136 | 137 |
selectionSym.selectionSym = selectionSym; // avoid too much lazy creations |
137 | 138 |
} else { |
138 |
selectionSym.setColor(MapContext.getSelectionColor());
|
|
139 |
selectionSym.setColor(selectionColor);
|
|
139 | 140 |
} |
140 | 141 |
if (selectionSym instanceof CartographicSupport) { |
141 | 142 |
((CartographicSupport) selectionSym).setUnit(this.getUnit()); |
Also available in: Unified diff