|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.view.PolyLineContainsTest
public class PolyLineContainsTest
This implementation of the GenericEdgeRealizer.ContainsTest
interface uses
the polyline defined by the control points of an edge for answering queries. The control points
are the source intersection followed by the bends and finally the target intersection.
For self loops with one bend the distance to the circle defined by the source port and the
single bend is considered. The path of the edge is ignored in any case. The behavior is similar
to PolyLineEdgeRealizer
s.
Constructor Summary | |
---|---|
PolyLineContainsTest()
|
Method Summary | |
---|---|
boolean |
contains(EdgeRealizer context,
BendList bends,
java.awt.geom.GeneralPath path,
double x,
double y)
Callback method for EdgeRealizer.contains(double, double) . |
int |
containsSeg(EdgeRealizer context,
BendList bends,
java.awt.geom.GeneralPath path,
double x,
double y)
Callback method for EdgeRealizer.containsSeg(double, double) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PolyLineContainsTest()
Method Detail |
---|
public boolean contains(EdgeRealizer context, BendList bends, java.awt.geom.GeneralPath path, double x, double y)
GenericEdgeRealizer.ContainsTest
EdgeRealizer.contains(double, double)
.
contains
in interface GenericEdgeRealizer.ContainsTest
context
- the context EdgeRealizerbends
- the current BendListpath
- the current GeneralPathpublic int containsSeg(EdgeRealizer context, BendList bends, java.awt.geom.GeneralPath path, double x, double y)
GenericEdgeRealizer.ContainsTest
EdgeRealizer.containsSeg(double, double)
.
containsSeg
in interface GenericEdgeRealizer.ContainsTest
context
- the context EdgeRealizerbends
- the current BendListpath
- the current GeneralPath
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |