net.refractions.udig.project.command
Class SelectionCommandFactory

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

Deprecated.

public class SelectionCommandFactory
extends java.lang.Object

A factory which can be used to create all the standard selection commands. API use

Since:
0.3
Author:
jeichar

Constructor Summary
protected SelectionCommandFactory()
          Deprecated.  
 
Method Summary
 MapCommand createBBoxSelectionCommand(Envelope boundingBox)
          Deprecated. Creates a new BBoxSelectionCommand.
 MapCommand createBBoxSelectionCommand(Envelope bbox, int modifiers)
          Deprecated. Creates a new BBoxSelectionCommand
 MapCommand createCompositeCommand(java.util.List<? extends MapCommand> commands)
          Deprecated. Create a CompositeCommand
 MapCommand createFIDSelectCommand(ILayer layer, java.lang.String fid)
          Deprecated. Create a MapCommand that sets the layer selection to be a fidfilter.
 MapCommand createNoSelectCommand()
          Deprecated. Creates a NoSelectCommand
 MapCommand createSelectCommand(ILayer layer, Filter filter)
          Deprecated. Create a MapCommand that sets the layer selection to be the filter.
 MapCommand createUndoableCompositeCommand(java.util.List<? extends UndoableMapCommand> commands)
          Deprecated. Create a CompositeCommand
static SelectionCommandFactory getInstance()
          Deprecated. Creates a new SelectionCommandFactory object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionCommandFactory

protected SelectionCommandFactory()
Deprecated. 
Method Detail

getInstance

public static SelectionCommandFactory getInstance()
Deprecated. 
Creates a new SelectionCommandFactory object

Returns:
a new SelectionCommandFactory object

createBBoxSelectionCommand

public MapCommand createBBoxSelectionCommand(Envelope bbox,
                                             int modifiers)
Deprecated. 
Creates a new BBoxSelectionCommand

Parameters:
bbox - A bounding used as the filter, all features intersecting the bbox will be considered selected
modifiers - Options include: BBoxSelectionCommand.ADD, BBoxSelectionCommand.NONE, BBoxSelectionCommand.SUBTRACT
Returns:
A new BBoxSelectionCommand. The command should be sent to the SelectionManagerto be executed.
See Also:
Envelope, MapCommand

createBBoxSelectionCommand

public MapCommand createBBoxSelectionCommand(Envelope boundingBox)
Deprecated. 
Creates a new BBoxSelectionCommand. Same as createBBoxSelectionCommand(bbox, BBoxSelectionCommand.NONE)

Parameters:
bbox - A bounding used as the filter, all features intersecting the bbox will be considered selected
Returns:
A new BBoxSelectionCommand. The command should be sent to the SelectionManagerto be executed.
See Also:
Envelope, MapCommand

createNoSelectCommand

public MapCommand createNoSelectCommand()
Deprecated. 
Creates a NoSelectCommand

Returns:
a NoSelectCommandobject. The command should be sent to the SelectionManagerto be executed.
See Also:
MapCommand

createFIDSelectCommand

public MapCommand createFIDSelectCommand(ILayer layer,
                                         java.lang.String fid)
Deprecated. 
Create a MapCommand that sets the layer selection to be a fidfilter.

Returns:
a FIDSelectCommand
See Also:
MapCommand

createSelectCommand

public MapCommand createSelectCommand(ILayer layer,
                                      Filter filter)
Deprecated. 
Create a MapCommand that sets the layer selection to be the filter.

Returns:
a SelectCommand
See Also:
MapCommand

createCompositeCommand

public MapCommand createCompositeCommand(java.util.List<? extends MapCommand> commands)
Deprecated. 
Create a CompositeCommand

Parameters:
commands - the commands to be executed as a single command
Returns:
a CompositeCommand
See Also:
MapCommand

createUndoableCompositeCommand

public MapCommand createUndoableCompositeCommand(java.util.List<? extends UndoableMapCommand> commands)
Deprecated. 
Create a CompositeCommand

Parameters:
commands - the commands to be executed as a single command
Returns:
a CompositeCommand
See Also:
MapCommand