|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Handler
Implementations of this interface represents the handlers of the geometries that operate on the geometry they belong when moved by the user
Method Summary | |
---|---|
void |
draw(java.awt.Graphics2D g2,
java.awt.Color color,
EditionContext ec)
Draws the handler on the Graphics2d argument |
java.awt.geom.Point2D |
getPoint()
Gets the real world coordinates of the handler |
int |
getPrimitiveIndex()
Returns the index of the geometry in the theme it belongs |
com.hardcode.gdbms.engine.spatial.Geometry |
moveTo(double x,
double y)
Moves the handler to the real world coordinates passed as arguments and returns a new Geometry reflecting the change |
com.hardcode.gdbms.engine.spatial.Geometry |
remove()
Removes the vertex handled by this handler and returns a new Geometry reflecting the changes |
Method Detail |
---|
java.awt.geom.Point2D getPoint()
com.hardcode.gdbms.engine.spatial.Geometry moveTo(double x, double y) throws CannotChangeGeometryException
x
- y
-
CannotChangeGeometryException
void draw(java.awt.Graphics2D g2, java.awt.Color color, EditionContext ec)
g2
- color
- ec
- TODOint getPrimitiveIndex()
com.hardcode.gdbms.engine.spatial.Geometry remove() throws CannotChangeGeometryException
CannotChangeGeometryException
- If the vertex cannot be removed due to
geometrical constraints (i.e. a line must have at least two points, ...)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |