Class LabelConnectorHandle

All Implemented Interfaces:
Handle

public class LabelConnectorHandle extends AbstractConnectorHandle
Handle for the start or end point of a connection figure.

Pressing the alt or the control key while dragging the handle prevents connecting the point.

Author:
Werner Randelshofer
  • Field Details

    • regionBackgroundConnected

      protected javafx.scene.layout.Background regionBackgroundConnected
    • REGION_BACKGROUND_DISCONNECTED

      protected final javafx.scene.layout.Background REGION_BACKGROUND_DISCONNECTED
    • REGION_SHAPE

      protected static final javafx.scene.shape.Circle REGION_SHAPE
    • groupNode

      protected final javafx.scene.Group groupNode
    • targetNode

      protected final javafx.scene.layout.Region targetNode
    • lineNode

      protected final javafx.scene.shape.Line lineNode
    • originKey

      protected final NonNullMapAccessor<CssPoint2D> originKey
    • connectorDerivative

      protected @Nullable javafx.geometry.Point2D connectorDerivative
  • Constructor Details

  • Method Details

    • getNode

      public javafx.scene.Group getNode(DrawingView view)
      Description copied from interface: Handle
      Returns the node which is used to visualize the handle. The node is rendered by DrawingView in a pane which uses view coordinates. The node should use DrawingView.viewToDrawingProperty() to transform its coordinates.

      A Handle can only reside in one DrawingView at any given time. The JavaFX node returned by this method is use to render the handle in the DrawingView. This is why, unlike Figure, we only need this method instead of a createNode and an updateNode method.

      A HandleTracker will use the Node.accessibleTextProperty() and Node.accessibleHelpProperty() to provide a help text to the user.

      Parameters:
      view - the drawing view
      Returns:
      the node
    • updateNode

      public void updateNode(DrawingView view)
      Description copied from interface: Handle
      Updates the node.
      Parameters:
      view - the drawing view