Class CutFeaturesTool
- java.lang.Object
-
- com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
-
- com.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool
-
- org.openjump.core.ui.plugin.edittoolbox.cursortools.CutFeaturesTool
-
- All Implemented Interfaces:
CursorTool
,MouseListener
,MouseMotionListener
,EventListener
public class CutFeaturesTool extends MultiClickTool
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
AbstractCursorTool.Listener
-
-
Field Summary
-
Fields inherited from class com.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool
mouseLastLoc
-
Fields inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
isLinuxOS, panel
-
-
Constructor Summary
Constructors Constructor Description CutFeaturesTool(WorkbenchContext context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkLineString()
protected void
gestureFinished()
Cursor
getCursor()
Icon
getIcon()
String
getName()
Returns a very brief description of this CursorTool.Layer
getSelectedLayer()
protected boolean
isRollingBackInvalidEdits(WorkbenchContext context)
static List<org.locationtech.jts.geom.Geometry>
splitLines(org.locationtech.jts.geom.Geometry digitizedGeometry, org.locationtech.jts.geom.Geometry geomSel)
static List<org.locationtech.jts.geom.Geometry>
splitPolygon(org.locationtech.jts.geom.Geometry digitizedGeometry, org.locationtech.jts.geom.Geometry geomSel)
-
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool
activate, add, cancelGesture, deactivate, finishGesture, getCoordinates, getMetrics, getShape, isFinishingRelease, mouseDragged, mouseLocationChanged, mouseMoved, mousePressed, mouseReleased, setCloseRing, setMetricsDisplay, toArray
-
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
add, allowSnapping, check, cleanup, clearImage, clearShape, componentWithFocusIsHandledByCursorTools, createCursor, createCursor, createCursor, createStandardSnappingPolicies, drawImageXOR, drawImageXOR, drawShapeXOR, drawShapeXOR, execute, execute, fireGestureFinished, getColor, getImage, getImagePosition, getPanel, getPanel, getSnapManager, getStroke, getTaskFrame, getWorkbench, getWorkbenchContext, isGestureInProgress, isRightMouseButtonUsed, isRollingBackInvalidEdits, isShapeOnScreen, mouseClicked, mouseEntered, mouseExited, name, prohibitSnapping, redrawImage, redrawShape, reportNothingToUndoYet, setColor, setControlPressed, setFilling, setPanel, setShiftPressed, setStroke, setup, snap, snap, supportsSnapping, toString, wasControlPressed, wasShiftPressed
-
-
-
-
Constructor Detail
-
CutFeaturesTool
public CutFeaturesTool(WorkbenchContext context)
-
-
Method Detail
-
getIcon
public Icon getIcon()
- Returns:
- null to use a default icon
-
getName
public String getName()
Description copied from interface:CursorTool
Returns a very brief description of this CursorTool.- Specified by:
getName
in interfaceCursorTool
- Overrides:
getName
in classAbstractCursorTool
- Returns:
- the name of this CursorTool
-
getCursor
public Cursor getCursor()
- Specified by:
getCursor
in interfaceCursorTool
- Overrides:
getCursor
in classAbstractCursorTool
-
gestureFinished
protected void gestureFinished() throws Exception
- Specified by:
gestureFinished
in classAbstractCursorTool
- Throws:
Exception
-
isRollingBackInvalidEdits
protected boolean isRollingBackInvalidEdits(WorkbenchContext context)
-
checkLineString
protected boolean checkLineString() throws NoninvertibleTransformException
- Throws:
NoninvertibleTransformException
-
splitPolygon
public static List<org.locationtech.jts.geom.Geometry> splitPolygon(org.locationtech.jts.geom.Geometry digitizedGeometry, org.locationtech.jts.geom.Geometry geomSel) throws Exception
- Throws:
Exception
-
splitLines
public static List<org.locationtech.jts.geom.Geometry> splitLines(org.locationtech.jts.geom.Geometry digitizedGeometry, org.locationtech.jts.geom.Geometry geomSel) throws Exception
- Throws:
Exception
-
getSelectedLayer
public Layer getSelectedLayer()
-
-