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/dynamiclegend/DefaultDynamicSymbol.java

View differences:

DefaultDynamicSymbol.java
30 30
import org.gvsig.fmap.geom.exception.CreateGeometryException;
31 31
import org.gvsig.fmap.geom.primitive.Envelope;
32 32
import org.gvsig.fmap.geom.primitive.Point;
33
import org.gvsig.fmap.mapcontext.MapContext;
34 33
import org.gvsig.fmap.mapcontext.MapContextLocator;
35 34
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol;
36 35
import org.gvsig.symbology.SymbologyLocator;
......
88 87
    }
89 88

  
90 89
    @Override
91
    public ISymbol getSymbolForSelection() {
90
    public ISymbol getSymbolForSelection(Color selectionColor) {
92 91
        int typeGeom = feature.getDefaultGeometry().getGeometryType().getType();
93 92

  
94 93
        if (GeometryUtils.isSubtype(Geometry.TYPES.POINT, typeGeom)
95 94
                || GeometryUtils.isSubtype(Geometry.TYPES.MULTIPOINT, typeGeom)) {
96 95
            setPointSymbolValues();
97
            pointSymbol.setColor(MapContext.getSelectionColor());
98
            pointSymbol.setOutlineColor(MapContext.getSelectionColor());
96
            pointSymbol.setColor(selectionColor);
97
            pointSymbol.setOutlineColor(selectionColor);
99 98
            return pointSymbol;
100 99
        } else if (GeometryUtils.isSubtype(Geometry.TYPES.CURVE, typeGeom)
101 100
                || GeometryUtils.isSubtype(Geometry.TYPES.MULTICURVE, typeGeom)) {
102 101
            setLineSymbolValues();
103
            lineSymbol.setColor(MapContext.getSelectionColor());
102
            lineSymbol.setColor(selectionColor);
104 103
            return lineSymbol;
105 104
        } else if (GeometryUtils.isSubtype(Geometry.TYPES.SURFACE, typeGeom)
106 105
                || GeometryUtils.isSubtype(Geometry.TYPES.MULTISURFACE, typeGeom)) {
107 106
            setPolygonSymbolValues();
108
            polygonSymbol.setFillColor(MapContext.getSelectionColor());
107
            polygonSymbol.setFillColor(selectionColor);
109 108
            return polygonSymbol;
110 109

  
111 110
        } else {

Also available in: Unified diff