|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.sketch.parser2d.AndConstraint
public class AndConstraint
A composite constraint that ANDs together the results of its child constraint objects.
Constructor Summary | |
---|---|
AndConstraint()
|
Method Summary | |
---|---|
void |
addConstraint(RelationConstraint r)
Add another child constraint to the test. |
static void |
debug(String s)
Debugging output. |
boolean |
test(SceneElement e1,
SceneElement e2)
Test the child constraints on the given rectangles; return true if all of them are met or there are no child 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 AndConstraint()
Method Detail |
---|
public static void debug(String s)
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 |