public class ComplexSelectionCADTool extends SelectionCADTool
| Modifier and Type | Field and Description |
|---|---|
protected ComplexSelectionCADToolContext |
_fsm |
protected List |
pointsPolygon |
firstPoint, multipleSelection, nextState, selectedFeatures, selectedGeometries, typegeomManager, mapControlManagerTOPGEOMETRYAGGREGATE, 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 |
|---|
ComplexSelectionCADTool()
Crea un nuevo ComplexSelectionCADTool.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addOption(String s)
Add a diferent option.
|
void |
addPoint(double x,
double y,
InputEvent event)
Equivale al transition del prototipo pero sin pasarle como pará metro el
editableFeatureSource que ya estará creado.
|
void |
addValue(double d) |
void |
drawOperation(MapControlDrawer renderer,
double x,
double y)
Método para dibujar la lo necesario para el estado en el que nos
encontremos.
|
void |
end() |
String |
getName() |
String |
getNextState() |
String |
getStatus() |
String |
getType() |
void |
init()
Método de incio, para poner el código de todo lo que se requiera de una
carga previa a la utilización de la herramienta.
|
long |
selectAll() |
long |
selectCurrentSurface() |
boolean |
selectFeatures(double x,
double y,
InputEvent event) |
long |
selectWithCircle(double x,
double y,
InputEvent event)
Receives second point
|
long |
selectWithPolygon(Geometry polygon) |
long |
selectWithSecondPointOutRectangle(double x,
double y,
InputEvent event)
Receives second point
|
void |
setType(String type) |
String |
toString() |
void |
transition(double d) |
void |
transition(double x,
double y,
InputEvent event) |
void |
transition(String s) |
addPointWithHandlers, clearCurrentSelection, drawWithHandlers, getSupportedGeometryTypes, isApplicable, isInstance, multipleSelection, pointDoubleClick, selectHandlers, selectWithSecondPointaddTemporalCache, 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, updateGeometryprotected ComplexSelectionCADToolContext _fsm
protected List pointsPolygon
public ComplexSelectionCADTool()
public void init()
init in interface CADToolinit in class SelectionCADToolpublic void addPoint(double x,
double y,
InputEvent event)
addPoint in interface CADTooladdPoint in class SelectionCADToolselection - Bitset con las geometrías que estén seleccionadas.x - parámetro x del punto que se pase en esta transición.y - parámetro y del punto que se pase en esta transición.public long selectWithSecondPointOutRectangle(double x,
double y,
InputEvent event)
x - y - public long selectWithCircle(double x,
double y,
InputEvent event)
x - y - public long selectWithPolygon(Geometry polygon)
public void drawOperation(MapControlDrawer renderer, double x, double y)
drawOperation in interface CADTooldrawOperation in class SelectionCADToolg - Graphics sobre el que dibujar.selectedGeometries - BitSet con las geometrías seleccionadas.x - parámetro x del punto que se pase para dibujar.y - parámetro x del punto que se pase para dibujar.public void addOption(String s)
addOption in interface CADTooladdOption in class SelectionCADToolsel - DOCUMENT ME!s - Diferent option.public long selectCurrentSurface()
public long selectAll()
public void addValue(double d)
addValue in interface CADTooladdValue in class SelectionCADToolpublic void end()
end in interface CADToolend in class SelectionCADToolpublic String getName()
getName in interface CADToolgetName in class SelectionCADToolpublic boolean selectFeatures(double x,
double y,
InputEvent event)
selectFeatures in class SelectionCADToolpublic String getType()
getType in class SelectionCADToolpublic void setType(String type)
setType in class SelectionCADToolpublic void transition(double x,
double y,
InputEvent event)
transition in interface CADTooltransition in class SelectionCADToolpublic String getStatus()
getStatus in class SelectionCADToolpublic void transition(String s) throws CommandException
transition in interface CADTooltransition in class SelectionCADToolCommandExceptionpublic void transition(double d)
transition in interface CADTooltransition in class SelectionCADToolpublic String toString()
toString in class SelectionCADToolpublic String getNextState()
getNextState in class SelectionCADTool