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/legend/impl/AbstractVectorialLegend.java

View differences:

AbstractVectorialLegend.java
27 27
 */
28 28
package org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl;
29 29

  
30
import java.awt.Color;
30 31
import java.awt.Graphics2D;
31 32
import java.awt.geom.Point2D;
32 33
import java.awt.image.BufferedImage;
......
65 66
import org.gvsig.fmap.mapcontext.rendering.legend.LegendException;
66 67
import org.gvsig.fmap.mapcontext.rendering.legend.ZSort;
67 68
import org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport;
68
import org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport.CartographicContext;
69 69
import org.gvsig.fmap.mapcontext.rendering.symbols.IMultiLayerSymbol;
70 70
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol;
71 71
import org.gvsig.tools.ToolsLocator;
......
82 82
import org.gvsig.tools.task.SimpleTaskStatus;
83 83
import org.gvsig.tools.util.Callable;
84 84
import org.gvsig.tools.visitor.VisitCanceledException;
85
import org.gvsig.tools.visitor.Visitor;
86 85
import org.slf4j.Logger;
87 86
import org.slf4j.LoggerFactory;
88 87

  
......
625 624
            return;
626 625
        }
627 626

  
628
        ISymbol sym = getSymbol(feat, selection);
627
        ISymbol sym = getSymbol(feat, selection, viewPort.getSelectionColor());
629 628
        if (sym == null) {
630 629
            return;
631 630
        }
......
744 743
            return false;
745 744
        }
746 745

  
747
        ISymbol sym = getSymbol(feat, selection);
746
        ISymbol sym = getSymbol(feat, selection, viewPort.getSelectionColor());
748 747

  
749 748
        if (sym == null) {
750 749
            return false;
......
830 829
     * Returns the symbol to use to draw a {@link Feature} taking into account
831 830
     * if it is selected.
832 831
     */
833
    private ISymbol getSymbol(Feature feat, FeatureSelection selection)
832
    private ISymbol getSymbol(Feature feat, FeatureSelection selection, Color selectionColor)
834 833
    throws MapContextException {
835 834
        // retrieve the symbol associated to such feature
836 835
        ISymbol sym = getSymbolByFeature(feat);
837 836

  
838 837
        if (sym != null && selection.isSelected(feat)) {
839
            sym = sym.getSymbolForSelection();
838
            sym = sym.getSymbolForSelection(selectionColor);
840 839
        }
841 840
        return sym;
842 841
    }

Also available in: Unified diff