org.openjump.core.ui.plugin.edittoolbox.cursortools
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, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener
public class CutPolygonTool
- extends PolygonTool
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:
- projet-sigle
| 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, clearShape, createCursor, createCursor, createStandardSnappingPolicies, drawShapeXOR, drawShapeXOR, execute, fireGestureFinished, getColor, getCursor, getPanel, getSnapManager, getTaskFrame, getWorkbench, isGestureInProgress, isRightMouseButtonUsed, isRollingBackInvalidEdits, isShapeOnScreen, mouseClicked, mouseEntered, mouseExited, name, redrawShape, reportNothingToUndoYet, setColor, setFilling, setStroke, setStrokeWidth, setup, snap, snap, toString, wasControlPressed, wasShiftPressed, workbench, workbenchFrame |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CutPolygonTool
protected CutPolygonTool(FeatureDrawingUtil featuredrawingutil)
create
public static CursorTool create(LayerNamePanelProxy layerNamePanelProxy)
getIcon
public javax.swing.Icon getIcon()
- Returns:
- null to use a default icon
getName
public java.lang.String getName()
- Description copied from interface:
CursorTool
- Returns a very brief description of this CursorTool.
- Specified by:
getName in interface CursorTool- Overrides:
getName in class AbstractCursorTool
- Returns:
- the name of this CursorTool
gestureFinished
protected void gestureFinished()
throws java.lang.Exception
- Specified by:
gestureFinished in class AbstractCursorTool
- Throws:
java.lang.Exception
isRollingBackInvalidEdits
protected boolean isRollingBackInvalidEdits(WorkbenchContext context)