public class UnmovableHandler extends AbstractHandler
Modifier and Type | Field and Description |
---|---|
protected static Logger |
logger |
index, point
Constructor and Description |
---|
UnmovableHandler(double x,
double y) |
UnmovableHandler(Point p) |
UnmovableHandler(Point2D p) |
Modifier and Type | Method and Description |
---|---|
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.
|
equalsPoint, getPoint, isSelected, select
public UnmovableHandler(Point2D p)
public UnmovableHandler(Point p)
public UnmovableHandler(double x, double y)
public void move(double x, double y)
Handler
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 coordinateHandler.set(double, double)
public void set(double x, double y)
Handler
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 coordinateHandler.move(double, double)
,
Handler.getPoint()