|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--diva.sketch.parser2d.OrConstraint
A composite constraint that ORs together the results of its child constraint objects.
Constructor Summary | |
OrConstraint()
|
Method Summary | |
void |
addConstraint(RelationConstraint r)
Add another child constraint to the test. |
boolean |
test(java.awt.geom.Rectangle2D r1,
java.awt.geom.Rectangle2D r2)
Test the child constraints on the given rectangles; return true if any constraints are met or there are no constraints, false otherwise. |
java.lang.String |
toString()
Print out the contents of this constraint. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public OrConstraint()
Method Detail |
public boolean test(java.awt.geom.Rectangle2D r1, java.awt.geom.Rectangle2D r2)
public void addConstraint(RelationConstraint r)
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |