|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.unex.sextante.dataObjects.AbstractVectorLayer
public abstract class AbstractVectorLayer
A convenience class which implements some of the methods of the IVectorLayer interface. Extending this class is recommended instead of implementing the interface directly
Field Summary |
---|
Fields inherited from interface es.unex.sextante.dataObjects.IVectorLayer |
---|
SHAPE_TYPE_LINE, SHAPE_TYPE_MIXED, SHAPE_TYPE_POINT, SHAPE_TYPE_POLYGON, SHAPE_TYPE_WRONG |
Constructor Summary | |
---|---|
AbstractVectorLayer()
|
Method Summary | |
---|---|
void |
addFeature(IFeature feature)
Adds a new feature to the layer |
void |
addFilter(IVectorLayerFilter filter)
Adds a new filter to this layer. |
java.lang.Object |
getBaseDataObject()
Returns the base data object (i.e. the object that this class wraps, which contains the data itself) |
int |
getFieldIndexByName(java.lang.String sFieldName)
Returns the index of a field from its name. |
java.lang.String[] |
getFieldNames()
Returns the names of the fields in the attributes table |
java.lang.Class[] |
getFieldTypes()
Returns an array of classes representing the data types of the fields in the attributes table |
void |
removeFilters()
Removes all filters previously added to this layer |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface es.unex.sextante.dataObjects.IVectorLayer |
---|
addFeature, getFieldCount, getFieldName, getFieldType, getShapesCount, getShapeType, iterator |
Methods inherited from interface es.unex.sextante.dataObjects.ILayer |
---|
getCRS, getFullExtent |
Methods inherited from interface es.unex.sextante.dataObjects.IDataObject |
---|
close, getFilename, getName, open, postProcess, setName |
Constructor Detail |
---|
public AbstractVectorLayer()
Method Detail |
---|
public java.lang.Object getBaseDataObject()
IDataObject
getBaseDataObject
in interface IDataObject
public java.lang.String[] getFieldNames()
IVectorLayer
getFieldNames
in interface IVectorLayer
public int getFieldIndexByName(java.lang.String sFieldName)
IVectorLayer
getFieldIndexByName
in interface IVectorLayer
sFieldName
- the name of the field
public java.lang.Class[] getFieldTypes()
IVectorLayer
getFieldTypes
in interface IVectorLayer
public java.lang.String toString()
toString
in class java.lang.Object
public void addFeature(IFeature feature)
IVectorLayer
addFeature
in interface IVectorLayer
feature
- the feature to addpublic void addFilter(IVectorLayerFilter filter)
IVectorLayer
addFilter
in interface IVectorLayer
filter
- the filter to addpublic void removeFilters()
IVectorLayer
removeFilters
in interface IVectorLayer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |