Class FreeConnectionWidget

All Implemented Interfaces:
Accessible, org.openide.util.Lookup.Provider

public class FreeConnectionWidget extends ConnectionWidget
This class is an extension of the ConnectionWidget. Primarily it is used with FreeRouter and optionally Free*Anchor. It has a method for adding and removing control points on specific locations.
  • Constructor Details

    • FreeConnectionWidget

      public FreeConnectionWidget(Scene scene)
      Creates a free connection widget.
      Parameters:
      scene - the scene
    • FreeConnectionWidget

      public FreeConnectionWidget(Scene scene, double createSensitivity, double deleteSensitivity)
      Creates a free connection widget with a specified create/delete sensitivity.
      Parameters:
      scene - the scene
      createSensitivity - the sensitivity for adding a control point
      deleteSensitivity - the sensitivity for removing a control point
  • Method Details

    • addRemoveControlPoint

      public void addRemoveControlPoint(Point localLocation)
      Adds or removes a control point on a specified location
      Parameters:
      localLocation - the local location
    • setSensitivity

      public void setSensitivity(double createSensitivity, double deleteSensitivity)
      Sets a sensitivity.
      Parameters:
      createSensitivity - the sensitivity for adding a control point
      deleteSensitivity - the sensitivity for removing a control point