Class FeatureDrawingUtil


  • public class FeatureDrawingUtil
    extends Object
    • Constructor Detail

    • 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)