Revision 1857 org.gvsig.legend.quantitybycategory.app.mainplugin/trunk/org.gvsig.legend.quantitybycategory.app.mainplugin/src/main/java/org/gvsig/symbology/fmap/rendering/QuantityByCategoryLegend.java
QuantityByCategoryLegend.java | ||
---|---|---|
8 | 8 |
|
9 | 9 |
import org.gvsig.fmap.dal.feature.Feature; |
10 | 10 |
import org.gvsig.fmap.geom.Geometry; |
11 |
import org.gvsig.fmap.geom.GeometryLocator; |
|
12 |
import org.gvsig.fmap.geom.GeometryManager; |
|
11 | 13 |
import org.gvsig.fmap.mapcontext.MapContextException; |
12 | 14 |
import org.gvsig.fmap.mapcontext.MapContextLocator; |
13 | 15 |
import org.gvsig.fmap.mapcontext.MapContextManager; |
... | ... | |
408 | 410 |
} |
409 | 411 |
|
410 | 412 |
public static boolean isPolygonal(int ty) { |
411 |
if (ty == Geometry.TYPES.MULTISURFACE |
|
412 |
|| ty == Geometry.TYPES.SURFACE |
|
413 |
) { |
|
414 |
return true; |
|
415 |
} else { |
|
416 |
return false; |
|
417 |
} |
|
413 |
GeometryManager geomManager = GeometryLocator.getGeometryManager(); |
|
414 |
return geomManager.isSubtype(Geometry.TYPES.MULTISURFACE, ty) || |
|
415 |
geomManager.isSubtype(Geometry.TYPES.SURFACE, ty); |
|
418 | 416 |
} |
419 | 417 |
|
420 |
|
|
421 | 418 |
public ISymbol getDefaultSymbol() { |
422 | 419 |
return this.defaultSymbol; |
423 | 420 |
} |
Also available in: Unified diff