Class DrawConstrainedPolygonTool
java.lang.Object
com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
org.openjump.core.ui.plugin.edittoolbox.cursortools.ConstrainedMultiClickTool
org.openjump.core.ui.plugin.edittoolbox.cursortools.ConstrainedPolygonTool
org.openjump.core.ui.plugin.edittoolbox.cursortools.DrawConstrainedPolygonTool
- All Implemented Interfaces:
CursorTool, MouseListener, MouseMotionListener, EventListener
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractCursorTool
AbstractCursorTool.Listener -
Field Summary
Fields inherited from class ConstrainedMultiClickTool
coordinates, drawClosed, mouseLastLoc, tentativeCoordinateFields inherited from class AbstractCursorTool
isLinuxOS, panel -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDrawConstrainedPolygonTool(WorkbenchContext context, FeatureDrawingUtil featureDrawingUtil) -
Method Summary
Modifier and TypeMethodDescriptionstatic CursorToolcreate(WorkbenchContext context) protected voidgetIcon()getName()Returns a very brief description of this CursorTool.Methods inherited from class ConstrainedPolygonTool
checkPolygon, getPolygonMethods inherited from class ConstrainedMultiClickTool
activate, add, cancelGesture, deactivate, doConstraint, finishGesture, getCoordinates, getIntersection, getShape, isFinishingRelease, mouseDragged, mouseLocationChanged, mouseMoved, mousePressed, mouseReleased, 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
-
DrawConstrainedPolygonTool
protected DrawConstrainedPolygonTool(WorkbenchContext context, FeatureDrawingUtil featureDrawingUtil)
-
-
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
-