root / trunk / extensions / extSymbology / src-test / org / gvsig / symbology / symbols / aux_tests / DrawLineFillSymbol.java @ 20768
History | View | Annotate | Download (708 Bytes)
1 |
package org.gvsig.symbology.symbols.aux_tests; |
---|---|
2 |
|
3 |
import org.gvsig.symbology.fmap.symbols.LineFillSymbol; |
4 |
|
5 |
import com.iver.cit.gvsig.fmap.core.symbols.IDrawFillSymbol; |
6 |
import com.iver.cit.gvsig.fmap.core.symbols.IFillSymbol; |
7 |
|
8 |
public class DrawLineFillSymbol implements IDrawFillSymbol { |
9 |
|
10 |
|
11 |
|
12 |
public IFillSymbol makeSymbolTransparent(IFillSymbol newSymbol) {
|
13 |
|
14 |
if (newSymbol instanceof LineFillSymbol) { |
15 |
LineFillSymbol mySymbol = (LineFillSymbol) newSymbol; |
16 |
((LineFillSymbol) mySymbol).setLineSymbol(null);
|
17 |
return mySymbol;
|
18 |
} |
19 |
return newSymbol;
|
20 |
|
21 |
} |
22 |
|
23 |
public boolean isSuitableFor(IFillSymbol newSymbol) { |
24 |
return (newSymbol instanceof LineFillSymbol); |
25 |
} |
26 |
|
27 |
|
28 |
|
29 |
|
30 |
} |