java.lang.Object
org.jhotdraw8.draw.connector.AbstractConnector
org.jhotdraw8.draw.connector.LocatorConnector
- All Implemented Interfaces:
Connector
- Direct Known Subclasses:
EllipseConnector,PathConnector,RectangleConnector
LocatorConnector uses a
Locator to compute its position.- Author:
- Werner Randelshofer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the locator used to compute the position of the connector.getPointAndDerivativeInLocal(@NonNull Figure connection, @NonNull Figure target) Returns a point and derivative on the target figure for the specified connection figure in local coordinates.Methods 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, intersect
-
Constructor Details
-
LocatorConnector
Creates a new instance- Parameters:
locator- the locator that should be used
-
-
Method Details
-
getLocator
Returns the locator used to compute the position of the connector.- Returns:
- the locator
-
getPointAndDerivativeInLocal
public @NonNull PointAndDerivative getPointAndDerivativeInLocal(@NonNull Figure connection, @NonNull Figure target) Description copied from interface:ConnectorReturns a point and derivative on the target figure for the specified connection figure in local coordinates.- Parameters:
connection- a connection figuretarget- the target- Returns:
- A point and derivative on the target figure in local coordinates of the target figure.
-