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 Type
    Method
    Description
    void
    Adds the specified legend listener to receive legend events from the inner legend.
    org.gvsig.fmap.geom.type.GeometryType
    Returns the layer's geometry type
    Returns the inner legend.
    int
    Returns the type of the shape.
    void
    Removes the specified legend listener so that it no longer receives legend events from the inner legend.
  • Method Details

    • addLegendListener

      void addLegendListener(LegendListener listener)
      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

      void removeLegendListener(LegendListener listener)
      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.ReadException

      Returns 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:
      • invalid reference
        Geometry
      • invalid reference
        Constant
    • getGeometryType

      org.gvsig.fmap.geom.type.GeometryType getGeometryType() throws org.gvsig.fmap.dal.exception.ReadException
      Returns 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