|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.sketch.parser2d.OrConstraint
public class 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(SceneElement e1,
SceneElement e2)
Test the child constraints on the given rectangles; return true if any constraints are met or there are no constraints, false otherwise. |
String |
toString()
Print out the contents of this constraint. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OrConstraint()
Method Detail |
---|
public boolean test(SceneElement e1, SceneElement e2)
test
in interface RelationConstraint
public void addConstraint(RelationConstraint r)
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |