public class SplitGeometryCADTool extends DefaultCADTool
Modifier and Type | Field and Description |
---|---|
protected SplitGeometryCADToolContext |
_fsm
finite state machine for this CAD tool
|
protected List<Point2D> |
clickedPoints
Collection of digitized geometries
|
protected boolean |
digitizingFinished
Flag to mark if the digitized line has been finished.
|
protected ISymbol |
rectSymbol
used to draw helping rectangle (bbox)
|
static String |
SPLIT_GEOMETRY_ACTION_NAME
String representation of this tool (used for example to active the tool
in mapcontrol)
|
static String |
SPLIT_GEOMETRY_TOOL_NAME |
geomManager, mapControlManager
TOPGEOMETRY
AGGREGATE, ARC, CIRCLE, CIRCUMFERENCE, COMPLEX, CURVE, ELLIPSE, ELLIPTICARC, FILLEDSPLINE, GEOMETRY, LINE, MULTICURVE, MULTILINE, MULTIPOINT, MULTIPOLYGON, MULTISOLID, MULTISURFACE, NULL, PERIELLIPSE, POINT, POLYGON, RING, SOLID, SPLINE, SURFACE
Constructor and Description |
---|
SplitGeometryCADTool() |
Modifier and Type | Method and Description |
---|---|
void |
addOption(String s) |
void |
addPoint(double x,
double y,
InputEvent event) |
void |
addValue(double d) |
void |
drawOperation(MapControlDrawer renderer,
double x,
double y)
Recibe un graphics en el que se encuentra dibujada la
EditableFeatureSource que se pasa como par�metro.
|
protected void |
drawPolyLine(MapControlDrawer renderer,
double x,
double y)
Draws a polyline with the clicked digitized points in the specified
graphics.
|
void |
end() |
void |
finishDigitizedLine() |
String |
getName() |
Coordinate[] |
getPoint2DAsCoordinates(Point2D[] point2d) |
protected int[] |
getSupportedGeometryTypes()
Returns the list of Geometry types supported by this tool.
|
void |
init()
Initialization method.
|
boolean |
isApplicable(GeometryType geometryType) |
boolean |
isDigitizingFinished() |
void |
splitSelectedGeometryWithDigitizedLine() |
String |
toString() |
void |
transition(double d) |
void |
transition(double x,
double y,
InputEvent event) |
void |
transition(String s) |
addTemporalCache, changeCommand, clearSelection, clearTemporalCache, createArc, createArc, createCircle, createCircle, createCircle, createCircle, createCircle, createCurve, createCurve, createEllipse, createEllipse, createEnvelopeLikeCurve, createMultiCurve, createMultiPoint, createMultiPrimitive, createMultiPrimitive, createMultiSurface, createOrientablePrimitive, createPoint, createPoint, createSpline, createSurface, createSurface, draw, drawAndRotateSelectedGeometries, drawHandlers, drawSelectedGeometries, endTransition, getCadToolAdapter, getDescriptions, getEditionManager, getGeometryType, getNextTool, getQuestion, getSelectedHandlers, getSubType, getSupportedTypes, getVLE, insertAndSelectGeometry, insertFeature, insertGeometry, insertGeometry, isApplicable, loadGeometryType, loadGeometryTypes, refresh, restorePreviousTool, setCadToolAdapter, setDescription, setNextTool, setPreviosTool, setQuestion, throwOptionException, throwPointException, throwValueException, updateGeometry
public static final String SPLIT_GEOMETRY_ACTION_NAME
public static final String SPLIT_GEOMETRY_TOOL_NAME
protected SplitGeometryCADToolContext _fsm
protected boolean digitizingFinished
protected ISymbol rectSymbol
public void init()
init
in interface CADTool
init
in class DefaultCADTool
public boolean isDigitizingFinished()
public String toString()
toString
in class DefaultCADTool
public void finishDigitizedLine()
public Coordinate[] getPoint2DAsCoordinates(Point2D[] point2d)
public void splitSelectedGeometryWithDigitizedLine()
public void end()
end
in interface CADTool
end
in class DefaultCADTool
public void addOption(String s)
public void addPoint(double x, double y, InputEvent event)
public void addValue(double d)
protected void drawPolyLine(MapControlDrawer renderer, double x, double y)
g2
- graphics on to draw the polylinex
- last x mouse pointer positiony
- last y mouse pointer positionpublic void drawOperation(MapControlDrawer renderer, double x, double y)
CADTool
x
- DOCUMENT ME!y
- DOCUMENT ME!public String getName()
public void transition(double x, double y, InputEvent event)
public void transition(double d)
public void transition(String s) throws CommandException
CommandException
public boolean isApplicable(GeometryType geometryType)
isApplicable
in interface CADTool
isApplicable
in class DefaultCADTool
protected int[] getSupportedGeometryTypes()
DefaultCADTool
getSupportedGeometryTypes
in class DefaultCADTool