com.vividsolutions.jump.workbench.ui.cursortool.editing
Class FeatureDrawingUtil

java.lang.Object
  extended by com.vividsolutions.jump.workbench.ui.cursortool.editing.FeatureDrawingUtil

public class FeatureDrawingUtil
extends java.lang.Object


Constructor Summary
FeatureDrawingUtil(LayerNamePanelProxy layerNamePanelProxy)
           
 
Method Summary
 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.
 void drawRing(com.vividsolutions.jts.geom.Polygon polygon, boolean rollingBackInvalidEdits, AbstractCursorTool tool, LayerViewPanel panel)
           
 CursorTool prepare(AbstractCursorTool drawFeatureTool, boolean allowSnapping)
          Apply settings common to all feature-drawing tools.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureDrawingUtil

public FeatureDrawingUtil(LayerNamePanelProxy layerNamePanelProxy)
Method Detail

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)