net.refractions.udig.project.command
Class BasicCommandFactory

java.lang.Object
  extended by net.refractions.udig.project.command.BasicCommandFactory
Direct Known Subclasses:
BasicCommandFactory

Deprecated.

public class BasicCommandFactory
extends java.lang.Object

Creates Edit commands which must be used to modify editable feature data. API internal classes are in the returned API

Since:
0.3
Author:
jeichar

Constructor Summary
protected BasicCommandFactory()
          Deprecated.  
 
Method Summary
 UndoableMapCommand createAddLayer(ILayer layer)
          Deprecated. Create an Add Layer command
 UndoableMapCommand createAddLayer(ILayer layer, int index)
          Deprecated. Create an Add Layer command
 UndoableMapCommand createChangeCRS(IMap map, CoordinateReferenceSystem crs)
          Deprecated. Create a Change CRS command
 UndoableMapCommand createDeleteLayer(ILayer layer)
          Deprecated. Create a delete layer command
static BasicCommandFactory getInstance()
          Deprecated. Creates a new EditCommandFactory object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicCommandFactory

protected BasicCommandFactory()
Deprecated. 
Method Detail

getInstance

public static BasicCommandFactory getInstance()
Deprecated. 
Creates a new EditCommandFactory object

Returns:
a new EditCommandFactory object

createDeleteLayer

public UndoableMapCommand createDeleteLayer(ILayer layer)
Deprecated. 
Create a delete layer command

Parameters:
map - the map containing the layer
layer - the layer to delete
Returns:
a new DeleteLayerCommandobject that deletes the layer.
See Also:
DeleteLayerCommand

createAddLayer

public UndoableMapCommand createAddLayer(ILayer layer)
Deprecated. 
Create an Add Layer command

Parameters:
layer - the layer to add to the map.
Returns:
a new AddLayerCommandobject that deletes the feature.
See Also:
AddLayerCommand

createAddLayer

public UndoableMapCommand createAddLayer(ILayer layer,
                                         int index)
Deprecated. 
Create an Add Layer command

Parameters:
layer - the layer to add to the map.
index - the zorder where the layer will be added.
Returns:
a new AddLayerCommandobject that deletes the feature.
See Also:
AddLayerCommand

createChangeCRS

public UndoableMapCommand createChangeCRS(IMap map,
                                          CoordinateReferenceSystem crs)
Deprecated. 
Create a Change CRS command

Parameters:
map - the map for which the CRS is going to change.
Returns:
a new ChangeCRSCommandobject that changes the CRS.
See Also:
ChangeCRSCommand