net.refractions.udig.tools.edit.commands
Class SelectGeometryCommand
java.lang.Object
AbstractCommand
net.refractions.udig.tools.edit.commands.SelectGeometryCommand
public class SelectGeometryCommand
- extends AbstractCommand
Searches a layer for an intersection between a mouse click and a feature and selects the features
if found.
- Since:
- 1.1.0
- Author:
- Jesse
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelectGeometryCommand
public SelectGeometryCommand(EditToolHandler handler,
MapMouseEvent e,
java.lang.Class[] acceptableClasses,
short filterType,
boolean permitClear,
boolean onlyAdd)
run
public void run(IProgressMonitor monitor)
throws java.lang.Exception
- Throws:
java.lang.Exception
createBBoxFilter
public Filter createBBoxFilter(Envelope boundingBox,
ILayer layer,
short filterType)
- Creates A geometry filter for the given layer.
- Parameters:
boundingBox
- in the same crs as the viewport model.
- Returns:
- a Geometry filter in the correct CRS or null if an exception occurs.
getName
public java.lang.String getName()
rollback
public void rollback(IProgressMonitor monitor)
throws java.lang.Exception
- Throws:
java.lang.Exception
setCreateOnNoSelect
public void setCreateOnNoSelect(ShapeType toCreate)