Package diva.canvas.interactor
Interface PointConstraint
-
- All Known Implementing Classes:
BoundsConstraint,QuadrantConstraint,SnapConstraint
public interface PointConstraintAn interface implemented by classes that can constrain a point to lie within a certain set of values.- Version:
- $Id$
- Author:
- John Reekie
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconstrain(java.awt.geom.Point2D point)Ask the point constraint to constrain this point.booleansnapped()Ask the point constraint call to constrain() cause a "snap." A snap means that the output value of the point changed from one region to another.
-
-
-
Method Detail
-
constrain
void constrain(java.awt.geom.Point2D point)
Ask the point constraint to constrain this point. The constraint should directly modify the passed point.
-
snapped
boolean snapped()
Ask the point constraint call to constrain() cause a "snap." A snap means that the output value of the point changed from one region to another. If a snap did occur, the caller will probably fire a ConstraintEvent.
-
-