Class CutPolygonTool
java.lang.Object
com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
com.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool
com.vividsolutions.jump.workbench.ui.cursortool.PolygonTool
org.openjump.core.ui.plugin.edittoolbox.cursortools.CutPolygonTool
- All Implemented Interfaces:
CursorTool, MouseListener, MouseMotionListener, EventListener
This cursor tool is installed by CutPoygonSIGLEPlugIn
To use it, select one or several Polygon a in layer A, draw a Polygon b by
hand, every selected polygon a will be changed into a - b.
- Version:
- 2006-05-18
- Author:
- ERWAN BOCHER Laboratoire RESO UMR CNRS 6590 et Olivier Bonnefont
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractCursorTool
AbstractCursorTool.Listener -
Field Summary
Fields inherited from class MultiClickTool
mouseLastLocFields inherited from class AbstractCursorTool
isLinuxOS, panel -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCutPolygonTool(WorkbenchContext context, FeatureDrawingUtil featureDrawingUtil) -
Method Summary
Modifier and TypeMethodDescriptionstatic CursorToolcreate(WorkbenchContext context) protected voidgetIcon()getName()Returns a very brief description of this CursorTool.protected booleanMethods inherited from class PolygonTool
checkPolygon, getPolygonMethods inherited from class MultiClickTool
activate, add, cancelGesture, deactivate, finishGesture, getCoordinates, getMetrics, getShape, isFinishingRelease, mouseDragged, mouseLocationChanged, mouseMoved, mousePressed, mouseReleased, setCloseRing, setMetricsDisplay, toArrayMethods inherited from class AbstractCursorTool
add, allowSnapping, check, cleanup, clearImage, clearShape, componentWithFocusIsHandledByCursorTools, createCursor, createCursor, createCursor, createStandardSnappingPolicies, drawImageXOR, drawImageXOR, drawShapeXOR, drawShapeXOR, execute, execute, fireGestureFinished, getColor, getCursor, 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 Details
-
CutPolygonTool
-
-
Method Details
-
create
-
getIcon
- Returns:
- null to use a default icon
-
getName
Description copied from interface:CursorToolReturns a very brief description of this CursorTool.- Specified by:
getNamein interfaceCursorTool- Overrides:
getNamein classAbstractCursorTool- Returns:
- the name of this CursorTool
-
gestureFinished
- Specified by:
gestureFinishedin classAbstractCursorTool- Throws:
Exception
-
isRollingBackInvalidEdits
-