|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--diva.sketch.parser2d.DistanceRelation
Calculate the euclidean distance between given sites on pairs of input rectangles.
Constructor Summary | |
DistanceRelation()
Calculate the euclidean distance between the CENTER sites on two input rectangles. |
|
DistanceRelation(int site1,
int site2)
Calculate the euclidean distance between the given sites on two input rectangles. |
Method Summary | |
double |
apply(java.awt.geom.Rectangle2D r1,
java.awt.geom.Rectangle2D r2)
Return the distance between the constructor-specified sites on r1 and r2, respectively. |
static void |
debug(java.lang.String s)
Debugging output. |
java.lang.String |
getName()
The name of this relation. |
int |
getSite1()
Get the site for the first rectangle. |
int |
getSite2()
Get the site for the second rectangle. |
void |
setSite1(int site1)
Set the site for the first rectangle. |
void |
setSite2(int site2)
Set the site for the second rectangle. |
java.lang.String |
toString()
Print out the contents of this relation. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public DistanceRelation()
public DistanceRelation(int site1, int site2)
Method Detail |
public double apply(java.awt.geom.Rectangle2D r1, java.awt.geom.Rectangle2D r2)
public static void debug(java.lang.String s)
public java.lang.String getName()
public int getSite1()
public int getSite2()
public void setSite1(int site1)
public void setSite2(int site2)
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |