Interface Classifiable
- All Known Subinterfaces:
ClassifiableRaster,ClassifiableVectorial,GraphicLayer,VectorLayer
- All Known Implementing Classes:
DefaultGraphicLayer,FLyrVect
public interface Classifiable
Interface that all layers that can be classifiable, must implement.
The interface Classifiable allows classify a layer in raster or vector,
and then, generates a legend.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddLegendListener(LegendListener listener) Adds the specified legend listener to receive legend events from the inner legend.org.gvsig.fmap.geom.type.GeometryTypeReturns the layer's geometry typeReturns the inner legend.intReturns the type of the shape.voidremoveLegendListener(LegendListener listener) Removes the specified legend listener so that it no longer receives legend events from the inner legend.
-
Method Details
-
addLegendListener
Adds the specified legend listener to receive legend events from the inner legend. If the parameter is null, no exception is thrown and no action is performed.- Parameters:
listener- the legend listener- See Also:
-
removeLegendListener
Removes the specified legend listener so that it no longer receives legend events from the inner legend. This method performs no function, nor does it throw an exception, if the listener specified by the argument was not previously added to the legend. If the parameter is null, no exception is thrown and no action is performed.- Parameters:
listener- the legend listener- See Also:
-
getLegend
ILegend getLegend()Returns the inner legend.- Returns:
- Legend.
-
getShapeType
int getShapeType() throws org.gvsig.fmap.dal.exception.ReadExceptionReturns the type of the shape.
All geometry types are defined in
Geometry.TYPES. For getting the equivalent shape of a geometry type, you must use a method like.invalid reference
SHPFileWrite#getShapeType()
- Returns:
- the type of this shape.
- See Also:
-
getGeometryType
org.gvsig.fmap.geom.type.GeometryType getGeometryType() throws org.gvsig.fmap.dal.exception.ReadExceptionReturns the layer's geometry type- Returns:
- the geometry type
- Throws:
org.gvsig.fmap.dal.exception.ReadException- if there is an error getting the geometry type
-