|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.project.command.BasicCommandFactory
net.refractions.udig.project.command.factory.BasicCommandFactory
public class BasicCommandFactory
Creates Edit commands which must be used to modify editable feature data. API internal classes are in the returned API
Constructor Summary | |
---|---|
protected |
BasicCommandFactory()
|
Method Summary | |
---|---|
UndoableMapCommand |
createAddLayer(ILayer layer)
Create an Add Layer command |
UndoableMapCommand |
createAddLayer(ILayer layer,
int index)
Create an Add Layer command |
UndoableMapCommand |
createAddManyLayers(java.util.Collection layers)
Create an AddLayers command that adds all the layers in the collection |
UndoableMapCommand |
createAddManyLayers(java.util.Collection layers,
int index)
Create an AddLayers command that adds all the layers in the collection |
UndoableMapCommand |
createChangeCRS(IMap map,
CoordinateReferenceSystem crs)
Create a Change CRS command |
UndoableMapCommand |
createCreateMapCommand(java.util.List<IGeoResource> layerResources)
Create a CreateMapCommand |
UndoableMapCommand |
createCreateMapCommand(java.util.List<IGeoResource> layerResources,
Project owner)
Create a CreateMapCommand |
UndoableMapCommand |
createCreateMapCommand(java.lang.String name,
java.util.List<IGeoResource> layerResources)
Create a CreateMapCommand |
UndoableMapCommand |
createCreateMapCommand(java.lang.String name,
java.util.List<IGeoResource> layerResources,
Project owner)
Create a CreateMapCommand |
UndoableMapCommand |
createDeleteLayer(ILayer layer)
Create a delete layer command |
UndoableMapCommand |
createSetApplicabilityCommand(ILayer layer,
java.lang.String applicabilityId,
boolean newValue)
|
static BasicCommandFactory |
getInstance()
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 |
---|
protected BasicCommandFactory()
Method Detail |
---|
public static BasicCommandFactory getInstance()
public UndoableMapCommand createDeleteLayer(ILayer layer)
createDeleteLayer
in class BasicCommandFactory
map
- the map containing the layerlayer
- the layer to delete
DeleteLayerCommand
public UndoableMapCommand createAddLayer(ILayer layer)
createAddLayer
in class BasicCommandFactory
layer
- the layer to add to the map.
AddLayerCommand
public UndoableMapCommand createAddLayer(ILayer layer, int index)
createAddLayer
in class BasicCommandFactory
layer
- the layer to add to the map.index
- the zorder where the layer will be added.
AddLayerCommand
public UndoableMapCommand createAddManyLayers(java.util.Collection layers, int index)
evaluationObject
- the layer to add to the map.index
- the zorder where the layer will be added.
AddLayersCommand
public UndoableMapCommand createAddManyLayers(java.util.Collection layers)
evaluationObject
- the layer to add to the map.
AddLayersCommand
public UndoableMapCommand createChangeCRS(IMap map, CoordinateReferenceSystem crs)
createChangeCRS
in class BasicCommandFactory
map
- the map for which the CRS is going to change.
ChangeCRSCommand
public UndoableMapCommand createCreateMapCommand(java.lang.String name, java.util.List<IGeoResource> layerResources, Project owner)
name
- the name of the maplayerResources
- the IGeoResources that will make up the layers of the map.owner
- The project that will contain the map.
public UndoableMapCommand createCreateMapCommand(java.util.List<IGeoResource> layerResources, Project owner)
layerResources
- the IGeoResources that will make up the layers of the map.owner
- The project that will contain the map.
public UndoableMapCommand createCreateMapCommand(java.lang.String name, java.util.List<IGeoResource> layerResources)
name
- the name of the maplayerResources
- the IGeoResources that will make up the layers of the map.
public UndoableMapCommand createCreateMapCommand(java.util.List<IGeoResource> layerResources)
layerResources
- the objects, (Layers or IGeoResources) that will make up the map.
public UndoableMapCommand createSetApplicabilityCommand(ILayer layer, java.lang.String applicabilityId, boolean newValue)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |