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.
Modifier and Type | Method and Description |
---|---|
void |
addLegendListener(LegendListener listener)
Adds the specified legend listener to receive legend events from the inner legend.
|
GeometryType |
getGeometryType()
Returns the layer's geometry type
|
ILegend |
getLegend()
Returns the inner legend.
|
int |
getShapeType()
Deprecated.
to be removed in gvSIG 2.1. Use
getGeometryType() instead. |
void |
removeLegendListener(LegendListener listener)
Removes the specified legend listener so that it no longer receives legend events from the inner
legend.
|
void addLegendListener(LegendListener listener)
listener
- the legend listenerremoveLegendListener(LegendListener)
void removeLegendListener(LegendListener listener)
listener
- the legend listeneraddLegendListener(LegendListener)
ILegend getLegend()
int getShapeType() throws ReadException
getGeometryType()
instead.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
SHPFileWrite#getShapeType()
.
ReadException
ReadDriverException
- if the driver fails reading the data.Geometry
,
Constant
GeometryType getGeometryType() throws ReadException
ReadException
- if there is an error getting the geometry type