Revision 22751 branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/rendering/symbols/MultiLayerLineSymbol.java
MultiLayerLineSymbol.java | ||
---|---|---|
129 | 129 |
public class MultiLayerLineSymbol extends AbstractLineSymbol implements |
130 | 130 |
ILineSymbol, IMultiLayerSymbol { |
131 | 131 |
private ILineSymbol[] layers = new ILineSymbol[0]; |
132 |
private ILineSymbol selectionSymbol;
|
|
132 |
private MultiLayerLineSymbol selectionSymbol;
|
|
133 | 133 |
private double lineWidth; |
134 | 134 |
|
135 | 135 |
public Color getColor() { |
... | ... | |
220 | 220 |
|
221 | 221 |
public ISymbol getSymbolForSelection() { |
222 | 222 |
if (selectionSymbol == null) { |
223 |
selectionSymbol = new SimpleLineSymbol();
|
|
223 |
selectionSymbol = new MultiLayerLineSymbol();
|
|
224 | 224 |
selectionSymbol.setDescription(getDescription()); |
225 |
selectionSymbol.setLineWidth(getLineWidth()); |
|
226 |
selectionSymbol.setLineColor(MapContext.getSelectionColor()); |
|
225 |
for (int i = 0; i < layers.length; i++) { |
|
226 |
selectionSymbol.addLayer(layers[i].getSymbolForSelection()); |
|
227 |
} |
|
227 | 228 |
} |
228 | 229 |
return selectionSymbol; |
229 | 230 |
} |
Also available in: Unified diff