public interface Handler
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.
Modifier and Type | Method and Description |
---|---|
boolean |
equalsPoint(Object obj)
Returns
true if the object is a Handler and has the
same coordinates as this one. |
Point2D |
getPoint()
Generic method of getting the 2D point that represents a handler of a geometry.
|
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.
|
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.
|
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.
x
- first dimension coordinatey
- second dimension coordinateset(double, double)
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.
x
- first dimension coordinatey
- second dimension coordinatemove(double, double)
,
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.
set(double, double)
,
move(double, double)
boolean equalsPoint(Object obj)
Returns true
if the object is a Handler
and has the
same coordinates as this one.
obj
- the reference object with which to comparetrue
if this object is the same as the obj
argument; false
otherwisegetPoint()