Class FeatureDrawingUtil
- java.lang.Object
-
- org.locationtech.jts.jump.workbench.ui.cursortool.editing.FeatureDrawingUtil
-
public class FeatureDrawingUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description FeatureDrawingUtil(LayerNamePanelProxy layerNamePanelProxy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UndoableCommandcreateAddCommand(org.locationtech.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.voiddrawRing(org.locationtech.jts.geom.Polygon polygon, boolean rollingBackInvalidEdits, AbstractCursorTool tool, LayerViewPanel panel)CursorToolprepare(AbstractCursorTool drawFeatureTool, boolean allowSnapping)Apply settings common to all feature-drawing tools.
-
-
-
Constructor Detail
-
FeatureDrawingUtil
public FeatureDrawingUtil(LayerNamePanelProxy layerNamePanelProxy)
-
-
Method Detail
-
createAddCommand
public UndoableCommand createAddCommand(org.locationtech.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(org.locationtech.jts.geom.Polygon polygon, boolean rollingBackInvalidEdits, AbstractCursorTool tool, LayerViewPanel panel)
-
-