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/line/impl/PictureLineSymbol.java

View differences:

PictureLineSymbol.java
48 48
import org.gvsig.fmap.dal.feature.FeatureStore;
49 49
import org.gvsig.fmap.dal.feature.FeatureType;
50 50
import org.gvsig.fmap.geom.Geometry;
51
import org.gvsig.fmap.mapcontext.MapContext;
52 51
import org.gvsig.fmap.mapcontext.MapContextLocator;
53
import org.gvsig.fmap.mapcontext.ViewPort;
54 52
import org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport;
55 53
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol;
56 54
import org.gvsig.fmap.mapcontext.rendering.symbols.SymbolDrawingException;
......
167 165
	}
168 166

  
169 167
        @Override
170
	public ISymbol getSymbolForSelection() {
168
	public ISymbol getSymbolForSelection(Color selectionColor) {
171 169
		if (selectionSym == null) {
172
			selectionSym = (PictureLineSymbol) cloneForSelection();
170
			selectionSym = (PictureLineSymbol) cloneForSelection(selectionColor);
173 171
			selectionSym.selected=true;
174 172
			selectionSym.selectionSym = selectionSym; // avoid too much lazy creations
175 173
		}else{
176
		    selectionSym.setColor(MapContext.getSelectionColor());
174
		    selectionSym.setColor(selectionColor);
177 175
		}
178 176
                if (selectionSym instanceof CartographicSupport) {
179 177
                    ((CartographicSupport) selectionSym).setUnit(this.getUnit());

Also available in: Unified diff