diva.sketch.parser2d
Interface RelationConstraint

All Known Implementing Classes:
AndConstraint, OrConstraint, BasicConstraint

public abstract interface RelationConstraint

An object that returns whether a pair of rectangles satisfies constraints on the values of a specified relation.

Version:
$Revision: 1.1 $

Method Summary
 boolean test(java.awt.geom.Rectangle2D r1, java.awt.geom.Rectangle2D r2)
          Test the constraint on the given rectangles; return true if the constraint is met, false otherwise.
 

Method Detail

test

public boolean test(java.awt.geom.Rectangle2D r1,
                    java.awt.geom.Rectangle2D r2)
Test the constraint on the given rectangles; return true if the constraint is met, false otherwise.