Revision 1858 org.gvsig.legend.dotdensity.app.mainplugin/trunk/org.gvsig.legend.dotdensity.app.mainplugin/src/main/java/org/gvsig/symbology/fmap/rendering/DotDensityLegend.java
DotDensityLegend.java | ||
---|---|---|
93 | 93 |
|
94 | 94 |
import org.gvsig.fmap.dal.feature.Feature; |
95 | 95 |
import org.gvsig.fmap.geom.Geometry; |
96 |
import org.gvsig.fmap.geom.GeometryLocator; |
|
97 |
import org.gvsig.fmap.geom.GeometryManager; |
|
96 | 98 |
import org.gvsig.fmap.mapcontext.MapContextLocator; |
97 | 99 |
import org.gvsig.fmap.mapcontext.MapContextManager; |
98 | 100 |
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol; |
... | ... | |
314 | 316 |
|
315 | 317 |
|
316 | 318 |
public static boolean isPolygonal(int ty) { |
317 |
if (ty == Geometry.TYPES.MULTISURFACE |
|
318 |
|| ty == Geometry.TYPES.SURFACE |
|
319 |
) { |
|
320 |
return true; |
|
321 |
} else { |
|
322 |
return false; |
|
323 |
} |
|
319 |
GeometryManager geomManager = GeometryLocator.getGeometryManager(); |
|
320 |
return geomManager.isSubtype(Geometry.TYPES.MULTISURFACE, ty) || |
|
321 |
geomManager.isSubtype(Geometry.TYPES.SURFACE, ty); |
|
324 | 322 |
} |
325 |
|
|
323 |
|
|
326 | 324 |
// ============================= |
327 | 325 |
|
328 | 326 |
public static class RegisterPersistence implements Callable { |
Also available in: Unified diff