Interface ConnectableFigure

All Superinterfaces:
Figure, PropertyBean, StyleableBean, StyleablePropertyBean, TreeNode<Figure>
All Known Implementing Classes:
AbstractLabelConnectionFigure, AbstractLabelFigure, BezierPathFigure, CombinedPathFigure, EllipseFigure, ImageFigure, LabelFigure, PageLabelFigure, PolygonFigure, RectangleFigure, RegionFigure, SimpleLabelConnectionFigure, TextAreaFigure, TextFigure

public interface ConnectableFigure extends Figure
ConnectableFigure.
Author:
Werner Randelshofer
  • Method Details

    • findConnector

      @Nullable Connector findConnector(javafx.geometry.Point2D pointInLocal, @Nullable Figure connectingFigure, double tolerance)
      Gets a connector for this figure at the given location.
      Parameters:
      pointInLocal - the location of the connector in local coordinates.
      connectingFigure - The connecting figure or null if unknown. This allows for specific connectors for different connection figures.
      tolerance - tolerance in world coordinates
      Returns:
      Returns the connector. Returns null if there is no connector at the given location.
    • findConnector

      default @Nullable Connector findConnector(double x, double y, @Nullable Figure prototype, double tolerance)
      Gets a connector for this figure at the given location.
      Parameters:
      x - the location of the connector in local coordinates.
      y - the location of the connector in local coordinates.
      prototype - The prototype used to create a connection or null if unknown. This allows for specific connectors for different connection figures.
      tolerance - tolerance in world coordinates
      Returns:
      Returns the connector. Returns null if there is no connector at the given location.