edu.mssm.crover.domain2d
Interface ConstrainedPoint

All Known Implementing Classes:
ReflexPoint

public interface ConstrainedPoint


Method Summary
 void addObserver(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()
           
 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(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(Point2D p)
           
 void unedit()
           
 void unstay()
           
 

Method Detail

addObserver

void addObserver(Observer o)

getX

double getX()

getY

double getY()

connectToSolver

void connectToSolver(Solver solver)

connectToSolver

void connectToSolver(Solver solver,
                     boolean stay,
                     int strength)

beingEdited

boolean beingEdited()

startInteraction

void startInteraction()

stopInteraction

void stopInteraction()

edit

void edit()

unedit

void unedit()

setLocation

void setLocation(Point2D p)

setLocation

void setLocation(double _x,
                 double _y)

suggestLocation

void suggestLocation(Point2D p)

suggestLocation

void suggestLocation(double _x,
                     double _y)

suggestLocation

void suggestLocation(double _x,
                     double _y,
                     boolean resolve)

getPoint

Point2D getPoint()

getSolver

Solver getSolver()

attachAt

void attachAt(ConstrainedPoint dest)

stay

void stay()
Constraint this point to be at position (dest.x + delta_move.x, dest.y + delta_move.y).


unstay

void unstay()

deltaConstraint

void deltaConstraint(ConstrainedPoint dest,
                     ConstrainedPoint delta_move)

keepInside

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

void deltaExtraConstraint(ConstrainedPoint dest,
                          ConstrainedPoint delta_move,
                          ConstrainedPoint substract)

dispose

void dispose()


Copyright © 2004 Weill Cornell Medical College. All Rights Reserved.