edu.mssm.crover.domain2d
Interface ConstrainedPoint
- All Known Implementing Classes:
- ReflexPoint
- public interface ConstrainedPoint
|
Method Summary |
void |
addObserver(java.util.Observer o)
|
void |
attachAt(ConstrainedPoint dest)
|
boolean |
beingEdited()
|
void |
connectToSolver(Solver solver)
|
void |
connectToSolver(Solver solver,
boolean stay,
int strength)
|
void |
deltaConstraint(ConstrainedPoint dest,
ConstrainedPoint delta_move)
|
void |
deltaExtraConstraint(ConstrainedPoint dest,
ConstrainedPoint delta_move,
ConstrainedPoint substract)
|
void |
dispose()
|
void |
edit()
|
java.awt.geom.Point2D |
getPoint()
|
Solver |
getSolver()
|
double |
getX()
|
double |
getY()
|
void |
keepInside(ConstrainedPoint size)
Adds constraints to keep the point inside the limits of a window
with origin (0,0) and size given by the argument (x=width,
y=height). |
void |
setLocation(double _x,
double _y)
|
void |
setLocation(java.awt.geom.Point2D p)
|
void |
startInteraction()
|
void |
stay()
Constraint this point to be at position
(dest.x + delta_move.x, dest.y + delta_move.y). |
void |
stopInteraction()
|
void |
suggestLocation(double _x,
double _y)
|
void |
suggestLocation(double _x,
double _y,
boolean resolve)
|
void |
suggestLocation(java.awt.geom.Point2D p)
|
void |
unedit()
|
void |
unstay()
|
addObserver
public void addObserver(java.util.Observer o)
getX
public double getX()
getY
public double getY()
connectToSolver
public void connectToSolver(Solver solver)
connectToSolver
public void connectToSolver(Solver solver,
boolean stay,
int strength)
beingEdited
public boolean beingEdited()
startInteraction
public void startInteraction()
stopInteraction
public void stopInteraction()
edit
public void edit()
unedit
public void unedit()
setLocation
public void setLocation(java.awt.geom.Point2D p)
setLocation
public void setLocation(double _x,
double _y)
suggestLocation
public void suggestLocation(java.awt.geom.Point2D p)
suggestLocation
public void suggestLocation(double _x,
double _y)
suggestLocation
public void suggestLocation(double _x,
double _y,
boolean resolve)
getPoint
public java.awt.geom.Point2D getPoint()
getSolver
public Solver getSolver()
attachAt
public void attachAt(ConstrainedPoint dest)
stay
public void stay()
- Constraint this point to be at position
(dest.x + delta_move.x, dest.y + delta_move.y).
unstay
public void unstay()
deltaConstraint
public void deltaConstraint(ConstrainedPoint dest,
ConstrainedPoint delta_move)
keepInside
public void keepInside(ConstrainedPoint size)
- Adds constraints to keep the point inside the limits of a window
with origin (0,0) and size given by the argument (x=width,
y=height).
deltaExtraConstraint
public void deltaExtraConstraint(ConstrainedPoint dest,
ConstrainedPoint delta_move,
ConstrainedPoint substract)
dispose
public void dispose()
Copyright @ 2003 Mount Sinai School of Medicine. All Rights Reserved.