| 
 | Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface NodePort.IntersectionTest
This interface is used by NodePort to delegate the work of
 the
 NodePort.findIntersection(double, double, double, double, java.awt.geom.Point2D)
 method to.
 
 Classes implementing this interface should query the given context 
 port instance for the necessary information each time the methods are
 called since instances of this interface will be shared for multiple
 NodePort instances.
 
| Method Summary | |
|---|---|
|  boolean | findIntersection(NodePort port,
                 double ix,
                 double iy,
                 double ox,
                 double oy,
                 java.awt.geom.Point2D result)Returns trueif the pointi=(ix,iy)lies inside
 and the pointo=(ox,oy)lies outside the specified port
 andfalse<otherwise. | 
| Method Detail | 
|---|
boolean findIntersection(NodePort port,
                         double ix,
                         double iy,
                         double ox,
                         double oy,
                         java.awt.geom.Point2D result)
true if the point i=(ix,iy) lies inside
 and the point o=(ox,oy) lies outside the specified port
 and false< otherwise.
 
 Callback method for
 NodePort.findIntersection(double, double, double, double, java.awt.geom.Point2D).
 
port - the port instance to check.ix - the x-coordinate of the point that has to lie inside the port.iy - the y-coordinate of the point that has to lie inside the port.ox - the x-coordinate of the point that has to lie outside the port.oy - the y-coordinate of the point that has to lie outside the port.result - an output parameter to store the intersection of the line
 segment through i and o and the port.
 If this method returns false, the value of this parameter is
 undefined.
true if (ix,iy) lies inside and
 (ox,oy) lies outside the specified port and
 false< otherwise.| 
 | © Copyright 2000-2025, yWorks GmbH. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||