public class MatrixCADTool extends DefaultCADTool
| Modifier and Type | Field and Description |
|---|---|
protected MatrixCADToolContext |
_fsm |
protected java.awt.geom.Point2D |
firstPoint |
protected MatrixProperty |
matrixProperty |
protected MatrixOperations |
operations |
protected java.lang.String |
option |
protected java.awt.geom.Point2D |
secondPoint |
geomManager, 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 |
|---|
MatrixCADTool()
Crea un nuevo MatrixCADTool.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addOption(java.lang.String s)
Add a diferent option.
|
void |
addPoint(double x,
double y,
java.awt.event.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 lo necesario para el estado en el que nos
encontremos.
|
void |
endMatrix() |
java.lang.String |
getName() |
MatrixOperations |
getOperations() |
protected int[] |
getSupportedGeometryTypes()
Returns the list of Geometry types supported by this tool.
|
void |
init()
Método de inicio, para poner el código de todo lo que se requiera de una
carga previa a la utilización de la herramienta.
|
boolean |
isApplicable(GeometryType geometryType) |
void |
selection()
DOCUMENT ME!
|
java.lang.String |
toString() |
void |
transition(double d) |
void |
transition(double x,
double y,
java.awt.event.InputEvent event) |
void |
transition(java.lang.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, end, 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 MatrixCADToolContext _fsm
protected java.awt.geom.Point2D firstPoint
protected java.awt.geom.Point2D secondPoint
protected MatrixProperty matrixProperty
protected MatrixOperations operations
protected java.lang.String option
public void init()
init in interface CADToolinit in class DefaultCADToolpublic void transition(double x,
double y,
java.awt.event.InputEvent event)
public void transition(double d)
public void transition(java.lang.String s)
throws CommandException
CommandExceptionpublic void selection()
public void endMatrix()
public void addPoint(double x,
double y,
java.awt.event.InputEvent event)
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.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(java.lang.String s)
s - Diferent option.public void addValue(double d)
public java.lang.String getName()
public java.lang.String toString()
toString in class DefaultCADToolpublic MatrixOperations getOperations()
public boolean isApplicable(GeometryType geometryType)
isApplicable in interface CADToolisApplicable in class DefaultCADToolprotected int[] getSupportedGeometryTypes()
DefaultCADToolgetSupportedGeometryTypes in class DefaultCADTool