java.lang.Object
com.inductiveautomation.ignition.designer.blockandconnector.model.AnchorPoint
com.inductiveautomation.ignition.designer.blockandconnector.model.impl.JComponentAnchorPoint

public class JComponentAnchorPoint extends AnchorPoint
An anchorpoint that uses a jcomponent to define its hotspot. Anchor point is the centerpoint of the component, path leader is a delta of the centerpoint.
  • Field Details

    • bounds

      protected Rectangle bounds
    • component

      protected JComponent component
    • exitSide

      protected int exitSide
    • leaderSpacing

      protected int leaderSpacing
  • Constructor Details

  • Method Details

    • setComponent

      public void setComponent(JComponent component)
    • getHotSpot

      public Shape getHotSpot()
      Description copied from class: AnchorPoint
      This is the shape that counts for the mouse to begin dragging or drop onto this anchor point
      Specified by:
      getHotSpot in class AnchorPoint
    • getAnchor

      public Point getAnchor()
      Description copied from class: AnchorPoint
      This is the actual anchor point that a connector will start/end at. This point may be inside the blocks bounds.
      Specified by:
      getAnchor in class AnchorPoint
    • getPathLeader

      public Point getPathLeader()
      Description copied from class: AnchorPoint
      This is a point near the anchor that should "lead" any path into the anchor. This point should fall outside the block's bounds. Any path to this anchor will pass through this point and a straight line will connect this point to the anchor point.
      Specified by:
      getPathLeader in class AnchorPoint
    • builder

      Used to create a new JComponentAnchorPoint with a builder pattern