public class SplineCADTool extends AbstractCurveCADTool
Modifier and Type | Field and Description |
---|---|
protected SplineCADToolContext |
_fsm |
protected boolean |
close |
protected ArrayList |
list |
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 |
---|
SplineCADTool() |
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 |
cancel() |
void |
closeGeometry() |
void |
drawOperation(MapControlDrawer renderer,
double x,
double y)
Método para dibujar lo necesario para el estado en el que nos
encontremos.
|
void |
end() |
void |
endGeometry() |
void |
endTransition(double x,
double y,
MouseEvent event) |
String |
getName() |
protected int |
getSupportedPrimitiveGeometryType() |
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.
|
String |
toString() |
void |
transition(double d) |
void |
transition(double x,
double y,
InputEvent event) |
void |
transition(String s) |
getSupportedGeometryTypes, insertAndSelectGeometry
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, getCadToolAdapter, getDescriptions, getEditionManager, getGeometryType, getNextTool, getQuestion, getSelectedHandlers, getSubType, getSupportedTypes, getVLE, insertFeature, insertGeometry, insertGeometry, isApplicable, isApplicable, loadGeometryType, loadGeometryTypes, refresh, restorePreviousTool, setCadToolAdapter, setDescription, setNextTool, setPreviosTool, setQuestion, throwOptionException, throwPointException, throwValueException, updateGeometry
protected SplineCADToolContext _fsm
protected ArrayList list
protected boolean close
public void init()
init
in interface CADTool
init
in class DefaultCADTool
public void endGeometry()
public void closeGeometry()
public void transition(double x, double y, InputEvent event)
public void transition(double d)
public void transition(String s) throws CommandException
CommandException
public void addPoint(double x, double y, InputEvent event)
sel
- 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 void drawOperation(MapControlDrawer renderer, double x, double y)
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)
sel
- DOCUMENT ME!s
- Diferent option.public void addValue(double d)
public void cancel()
public void end()
end
in interface CADTool
end
in class DefaultCADTool
public String getName()
public String toString()
toString
in class DefaultCADTool
public void endTransition(double x, double y, MouseEvent event)
endTransition
in interface CADTool
endTransition
in class DefaultCADTool
protected int getSupportedPrimitiveGeometryType()
getSupportedPrimitiveGeometryType
in class AbstractCurveCADTool