java.lang.Object
org.jhotdraw8.draw.connector.AbstractConnector
org.jhotdraw8.draw.connector.LocatorConnector
org.jhotdraw8.draw.connector.EllipseConnector
- All Implemented Interfaces:
Connector
EllipseConnector.
- Author:
- Werner Randelshofer
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jhotdraw8.draw.connector.LocatorConnector
getLocator, getPointAndDerivativeInLocalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jhotdraw8.draw.connector.Connector
chopStart, chopStart, getPointAndDerivativeInWorld
-
Constructor Details
-
EllipseConnector
public EllipseConnector() -
EllipseConnector
-
-
Method Details
-
intersect
public @Nullable IntersectionPointEx intersect(@NonNull RenderContext ctx, Figure connection, @NonNull Figure target, @NonNull javafx.geometry.Point2D start, @NonNull javafx.geometry.Point2D end) Description copied from interface:ConnectorReturns the intersection of the line going from start to end with the target figure. The line must be given in world coordinates.- Parameters:
ctx- the render contextconnection- the connection figuretarget- the target figurestart- the start point of the line in world coordinates, should be inside the target figureend- the end point of the line in world coordinates, should be outside the target figure- Returns:
- the intersection in the interval [0,1], null if no intersection. In case of multiple intersections returns the largest value.
-