Revision 43511 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/fill/impl/MultiLayerFillSymbol.java
MultiLayerFillSymbol.java | ||
---|---|---|
33 | 33 |
import org.gvsig.compat.print.PrintAttributes; |
34 | 34 |
import org.gvsig.fmap.dal.feature.Feature; |
35 | 35 |
import org.gvsig.fmap.geom.Geometry; |
36 |
import org.gvsig.fmap.geom.type.GeometryType; |
|
36 | 37 |
import org.gvsig.fmap.mapcontext.MapContext; |
37 | 38 |
import org.gvsig.fmap.mapcontext.MapContextLocator; |
38 | 39 |
import org.gvsig.fmap.mapcontext.ViewPort; |
... | ... | |
91 | 92 |
return null; |
92 | 93 |
} |
93 | 94 |
|
95 |
@Override |
|
94 | 96 |
public boolean isSuitableFor(Geometry geom) { |
95 |
switch(geom.getType()) { |
|
96 |
case Geometry.TYPES.SURFACE: |
|
97 |
case Geometry.TYPES.POLYGON: |
|
97 |
GeometryType gt = geom.getGeometryType(); |
|
98 |
if( gt.isTypeOf(Geometry.TYPES.SURFACE) ) { |
|
98 | 99 |
return true; |
99 | 100 |
} |
100 | 101 |
return false; |
101 | 102 |
} |
102 | 103 |
|
104 |
@Override |
|
103 | 105 |
public void setFillColor(Color color) { |
104 | 106 |
/* |
105 | 107 |
* Will apply the color to each layer |
Also available in: Unified diff