es.unex.sextante.gui.core
Class AbstractInputFactory

java.lang.Object
  extended by es.unex.sextante.gui.core.AbstractInputFactory
All Implemented Interfaces:
IInputFactory

public abstract class AbstractInputFactory
extends java.lang.Object
implements IInputFactory


Field Summary
static int SHAPE_TYPE_ANY
           
 
Constructor Summary
AbstractInputFactory()
           
 
Method Summary
 void addDataObject(IDataObject obj)
          Adds a new data object to the ones already existing.
 void clearDataObjects()
          Clears the set of SEXTANTE data objects
 RasterLayerAndBand[] getBands()
          Returns al the individual bands of the raster layers in the set
 IDataObject[] getDataObjects()
          Returns all objects in the set(layers and tables)
 IDataObject getInputFromName(java.lang.String sName)
          Returns an input object based on its name
 ILayer[] getLayers()
          Returns the raster and vectorlayers in the set
 IRasterLayer[] getRasterLayers()
          Returns the raster layers in the set
 ITable[] getTables()
          Returns the tables in the set
 IVectorLayer[] getVectorLayers(int shapeType)
          Returns all the vector layers of a particular type currently in the set
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface es.unex.sextante.gui.core.IInputFactory
createDataObjects, getPredefinedExtents, getRasterLayerInputExtensions, getTableInputExtensions, getVectorLayerInputExtensions, openDataObjectFromFile
 

Field Detail

SHAPE_TYPE_ANY

public static final int SHAPE_TYPE_ANY
See Also:
Constant Field Values
Constructor Detail

AbstractInputFactory

public AbstractInputFactory()
Method Detail

clearDataObjects

public void clearDataObjects()
Description copied from interface: IInputFactory
Clears the set of SEXTANTE data objects

Specified by:
clearDataObjects in interface IInputFactory

addDataObject

public void addDataObject(IDataObject obj)
Description copied from interface: IInputFactory
Adds a new data object to the ones already existing. This method should be called from post-process tasks, to incorporate output object to the inputs list without having to create all the already existing objects again

Specified by:
addDataObject in interface IInputFactory
Parameters:
obj - the data object to add

getBands

public RasterLayerAndBand[] getBands()
Description copied from interface: IInputFactory
Returns al the individual bands of the raster layers in the set

Specified by:
getBands in interface IInputFactory
Returns:
an array of bands

getLayers

public ILayer[] getLayers()
Description copied from interface: IInputFactory
Returns the raster and vectorlayers in the set

Specified by:
getLayers in interface IInputFactory
Returns:
an array of layers

getRasterLayers

public IRasterLayer[] getRasterLayers()
Description copied from interface: IInputFactory
Returns the raster layers in the set

Specified by:
getRasterLayers in interface IInputFactory
Returns:
an array of raster layers

getVectorLayers

public IVectorLayer[] getVectorLayers(int shapeType)
Description copied from interface: IInputFactory
Returns all the vector layers of a particular type currently in the set

Specified by:
getVectorLayers in interface IInputFactory
Parameters:
shapeType - The type of vector layer. Use the constants defined in @see IVectorLayer
Returns:
an array of vector layers

getTables

public ITable[] getTables()
Description copied from interface: IInputFactory
Returns the tables in the set

Specified by:
getTables in interface IInputFactory
Returns:
an array of tables

getDataObjects

public IDataObject[] getDataObjects()
Description copied from interface: IInputFactory
Returns all objects in the set(layers and tables)

Specified by:
getDataObjects in interface IInputFactory
Returns:
all objects in the set(layers and tables)

getInputFromName

public IDataObject getInputFromName(java.lang.String sName)
Description copied from interface: IInputFactory
Returns an input object based on its name

Specified by:
getInputFromName in interface IInputFactory
Returns:
the input object corresponding to the specified name. Returns null if no object with that name was found