diva.canvas.interactor
Interface PointConstraint

All Known Implementing Classes:
BoundsConstraint, QuadrantConstraint

public interface PointConstraint

An interface implemented by classes that can constrain a point to lie within a certain set of values.

Version:
$Revision: 1.3 $
Author:
John Reekie

Method Summary
 void constrain(Point2D point)
          Ask the point constraint to constrain this point.
 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.
 

Method Detail

constrain

void constrain(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.



Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.