public class ComplexSelectionCADTool extends SelectionCADTool
Modifier and Type | Field and Description |
---|---|
protected ComplexSelectionCADToolContext |
_fsm |
protected List |
pointsPolygon |
firstPoint, multipleSelection, nextState, selectedFeatures, selectedGeometries, type
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 |
---|
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, selectWithSecondPoint
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
protected ComplexSelectionCADToolContext _fsm
protected List pointsPolygon
public ComplexSelectionCADTool()
public void init()
init
in interface CADTool
init
in class SelectionCADTool
public void addPoint(double x, double y, InputEvent event)
addPoint
in interface CADTool
addPoint
in class SelectionCADTool
selection
- 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 CADTool
drawOperation
in class SelectionCADTool
g
- 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 CADTool
addOption
in class SelectionCADTool
sel
- DOCUMENT ME!s
- Diferent option.public long selectCurrentSurface()
public long selectAll()
public void addValue(double d)
addValue
in interface CADTool
addValue
in class SelectionCADTool
public void end()
end
in interface CADTool
end
in class SelectionCADTool
public String getName()
getName
in interface CADTool
getName
in class SelectionCADTool
public boolean selectFeatures(double x, double y, InputEvent event)
selectFeatures
in class SelectionCADTool
public String getType()
getType
in class SelectionCADTool
public void setType(String type)
setType
in class SelectionCADTool
public void transition(double x, double y, InputEvent event)
transition
in interface CADTool
transition
in class SelectionCADTool
public String getStatus()
getStatus
in class SelectionCADTool
public void transition(String s) throws CommandException
transition
in interface CADTool
transition
in class SelectionCADTool
CommandException
public void transition(double d)
transition
in interface CADTool
transition
in class SelectionCADTool
public String toString()
toString
in class SelectionCADTool
public String getNextState()
getNextState
in class SelectionCADTool