net.refractions.udig.tools.edit.commands
Class SplitFeatureCommand
java.lang.Object
AbstractCommand
net.refractions.udig.tools.edit.commands.SplitFeatureCommand
public class SplitFeatureCommand
- extends AbstractCommand
This command splits all the geometries in the Editblackboard based on the Current Shape ([@link
net.refractions.udig.tools.edit.EditToolHandler#getCurrentShape()})
- Since:
- 1.1.0
- Author:
- jones
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SplitFeatureCommand
public SplitFeatureCommand(EditToolHandler handler,
EditState endState)
- Parameters:
handler
-
run
public void run(IProgressMonitor monitor)
throws java.lang.Exception
- Throws:
java.lang.Exception
splitGeom
public static java.util.List<EditGeom> splitGeom(java.util.List<EditGeom> toSplit,
PrimitiveShape splitter,
int edgeIndex)
- Splits a Polygon against a line. The created geometries are added to the edit blackboard.
- Parameters:
toSplit
- geom to splitsplitter
- shape to use to determine the split.
- Returns:
rollback
public void rollback(IProgressMonitor monitor)
throws java.lang.Exception
- Throws:
java.lang.Exception
getName
public java.lang.String getName()