public class DrawCustomTool extends ConstrainedNClickTool
Modifier and Type | Class and Description |
---|---|
static interface |
DrawCustomTool.ActivationListener |
class |
DrawCustomTool.CustomToolEvent |
static interface |
DrawCustomTool.DeActivationListener |
static interface |
DrawCustomTool.FeedbackListener |
static interface |
DrawCustomTool.FinalDrawListener |
AbstractCursorTool.Listener
n
coordinates, drawClosed, mouseLastLoc, tentativeCoordinate
isLinuxOS, panel
Constructor and Description |
---|
DrawCustomTool(FeatureDrawingUtil featureDrawingUtil) |
Modifier and Type | Method and Description |
---|---|
void |
activate(LayerViewPanel layerViewPanel) |
void |
deactivate() |
protected java.util.List |
fireFeedbackEvent(java.util.List coordsIn) |
protected java.util.List |
fireFinalGeoEvent(java.util.List coordsIn) |
protected void |
gestureFinished() |
protected com.vividsolutions.jts.geom.Geometry |
getFinalGeometry() |
javax.swing.Icon |
getIcon() |
java.lang.String |
getName()
Returns a very brief description of this CursorTool.
|
protected java.awt.Shape |
getShape() |
void |
setActivationListener(DrawCustomTool.ActivationListener listener) |
void |
setDeActivationListener(DrawCustomTool.DeActivationListener listener) |
void |
setFeedbackListener(DrawCustomTool.FeedbackListener listener) |
void |
setFinalGeoListener(DrawCustomTool.FinalDrawListener listener) |
void |
setFireClicks(int fireClicks) |
void |
setGeometryType(java.lang.String geoType) |
void |
setIcon(javax.swing.Icon icon) |
void |
setMaxClicks(int maxClicks) |
void |
setMinClicks(int minClicks) |
void |
setStrokeWidth(int width) |
void |
setToolName(java.lang.String toolName) |
getModelDestination, getModelSource, isFinishingRelease
add, cancelGesture, doConstraint, finishGesture, getCoordinates, getIntersection, mouseDragged, mouseLocationChanged, mouseMoved, mousePressed, mouseReleased, toArray
add, allowSnapping, check, cleanup, clearImage, clearShape, createCursor, createCursor, drawImageXOR, drawImageXOR, drawShapeXOR, drawShapeXOR, execute, fireGestureFinished, getColor, getCursor, getImage, getImagePosition, getPanel, getPanel, getSnapManager, getTaskFrame, getWorkbench, getWorkbenchFrame, isGestureInProgress, isRightMouseButtonUsed, isRollingBackInvalidEdits, isShapeOnScreen, mouseClicked, mouseEntered, mouseExited, name, prohibitSnapping, redrawImage, redrawShape, reportNothingToUndoYet, setColor, setFilling, setPanel, setStroke, setup, snap, snap, supportsSnapping, toString, wasControlPressed, wasShiftPressed, workbench, workbenchFrame
public DrawCustomTool(FeatureDrawingUtil featureDrawingUtil)
public void activate(LayerViewPanel layerViewPanel)
activate
in interface CursorTool
activate
in class ConstrainedMultiClickTool
public void deactivate()
deactivate
in interface CursorTool
deactivate
in class ConstrainedMultiClickTool
public void setFireClicks(int fireClicks)
public void setMinClicks(int minClicks)
public void setMaxClicks(int maxClicks)
public void setIcon(javax.swing.Icon icon)
public void setToolName(java.lang.String toolName)
public void setGeometryType(java.lang.String geoType)
public void setStrokeWidth(int width)
setStrokeWidth
in class AbstractCursorTool
public void setFeedbackListener(DrawCustomTool.FeedbackListener listener)
public void setFinalGeoListener(DrawCustomTool.FinalDrawListener listener)
public void setActivationListener(DrawCustomTool.ActivationListener listener)
public void setDeActivationListener(DrawCustomTool.DeActivationListener listener)
public java.lang.String getName()
CursorTool
getName
in interface CursorTool
getName
in class AbstractCursorTool
public javax.swing.Icon getIcon()
protected void gestureFinished() throws java.lang.Exception
gestureFinished
in class AbstractCursorTool
java.lang.Exception
protected java.awt.Shape getShape() throws java.awt.geom.NoninvertibleTransformException
getShape
in class ConstrainedMultiClickTool
java.awt.geom.NoninvertibleTransformException
protected com.vividsolutions.jts.geom.Geometry getFinalGeometry() throws java.awt.geom.NoninvertibleTransformException
java.awt.geom.NoninvertibleTransformException
protected java.util.List fireFeedbackEvent(java.util.List coordsIn)
protected java.util.List fireFinalGeoEvent(java.util.List coordsIn)