Interface Handler
- All Known Subinterfaces:
CenterHandler,CuadrantHandler,FinalHandler
- All Known Implementing Classes:
AbstractHandler
In a FMap graphic layer, each geometry drawn has control points named handlers that allow user to move, modify, set, ... that geometry.
Each geometry will have its own handlers, and each one can have different behavior according its nature.
The Handler interface defines the least set of common methods for all
geometry handlers.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanequalsPoint(Object obj) Returnstrueif the object is aHandlerand has the same coordinates as this one.getPoint()Generic method of getting the 2D point that represents a handler of a geometry.voidmove(double x, double y) Generic method of moving in 2D a handler of a geometry using two numbers that represent the 2D coordinates.voidset(double x, double y) Generic method of situating in 2D a handler of a geometry using two numbers that represent the 2D coordinates.
-
Method Details
-
move
void move(double x, double y) Generic method of moving in 2D a handler of a geometry using two numbers that represent the 2D coordinates.
Each handler of each geometry adapts this method to its own behavior in that geometry, that implies that could not be implemented.
- Parameters:
x- first dimension coordinatey- second dimension coordinate- See Also:
-
set
void set(double x, double y) Generic method of situating in 2D a handler of a geometry using two numbers that represent the 2D coordinates.
Each handler of each geometry adapts this method to its own behavior in that geometry, that implies that could not be implemented.
- Parameters:
x- first dimension coordinatey- second dimension coordinate- See Also:
-
getPoint
Point2D getPoint()Generic method of getting the 2D point that represents a handler of a geometry.
Each handler of each geometry adapts this method to its own behavior in that geometry, that implies that could not be implemented.
- Returns:
- point 2D that represents this handler of geometry
- See Also:
-
equalsPoint
Returns
trueif the object is aHandlerand has the same coordinates as this one.- Parameters:
obj- the reference object with which to compare- Returns:
trueif this object is the same as theobjargument;falseotherwise- See Also:
-