com.vividsolutions.jump.workbench.ui.cursortool.editing
Class FeatureDrawingUtil
java.lang.Object
com.vividsolutions.jump.workbench.ui.cursortool.editing.FeatureDrawingUtil
- public class FeatureDrawingUtil
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FeatureDrawingUtil
public FeatureDrawingUtil(LayerNamePanelProxy layerNamePanelProxy)
createAddCommand
public UndoableCommand createAddCommand(com.vividsolutions.jts.geom.Geometry geometry,
boolean rollingBackInvalidEdits,
LayerViewPanel layerViewPanel,
AbstractCursorTool tool)
- The calling CursorTool should call #preserveUndoHistory; otherwise the
undo history will be (unnecessarily) truncated if a problem occurs.
- Returns:
- null if the geometry is invalid
prepare
public CursorTool prepare(AbstractCursorTool drawFeatureTool,
boolean allowSnapping)
- Apply settings common to all feature-drawing tools.
drawRing
public void drawRing(com.vividsolutions.jts.geom.Polygon polygon,
boolean rollingBackInvalidEdits,
AbstractCursorTool tool,
LayerViewPanel panel)