public class CurveEditVertexOperation extends Object implements EditVertexOperation
Constructor and Description |
---|
CurveEditVertexOperation() |
Modifier and Type | Method and Description |
---|---|
void |
addToDrawingStatus(DefaultDrawingStatus drawingStatus,
Primitive primitive) |
boolean |
canInsertVertex(Primitive geom,
int index) |
boolean |
canMoveVertex(int index,
Point point) |
boolean |
canRemoveVertex(Primitive geom,
int index) |
int |
getNumVertex(Primitive geom) |
List<Point> |
getVertexesList(Primitive geom) |
Geometry |
insertVertex(Primitive geom,
int index) |
Geometry |
moveVertex(Primitive geom,
int index,
Point point) |
Geometry |
removeVertex(Primitive geom,
int index) |
public Geometry insertVertex(Primitive geom, int index) throws CreateGeometryException
insertVertex
in interface EditVertexOperation
CreateGeometryException
public Geometry removeVertex(Primitive geom, int index) throws CreateGeometryException
removeVertex
in interface EditVertexOperation
CreateGeometryException
public Geometry moveVertex(Primitive geom, int index, Point point) throws CreateGeometryException
moveVertex
in interface EditVertexOperation
CreateGeometryException
public List<Point> getVertexesList(Primitive geom)
getVertexesList
in interface EditVertexOperation
public int getNumVertex(Primitive geom)
getNumVertex
in interface EditVertexOperation
public boolean canInsertVertex(Primitive geom, int index)
canInsertVertex
in interface EditVertexOperation
public boolean canRemoveVertex(Primitive geom, int index)
canRemoveVertex
in interface EditVertexOperation
public boolean canMoveVertex(int index, Point point)
canMoveVertex
in interface EditVertexOperation
public void addToDrawingStatus(DefaultDrawingStatus drawingStatus, Primitive primitive)
addToDrawingStatus
in interface EditVertexOperation