java.lang.Object
com.inductiveautomation.ignition.designer.blockandconnector.model.AnchorPoint
Direct Known Subclasses:
JComponentAnchorPoint

public abstract class AnchorPoint extends Object
An anchor point is a point on a block that is acceptable for either starting or ending a connector. Coordinates are relative to the block component.
  • Field Details

  • Constructor Details

    • AnchorPoint

      public AnchorPoint(Object id, Block block, EnumSet<AnchorType> type)
      Creates an anchor point at the given point, with a rectangular hotspot around it.
  • Method Details

    • getId

      public Object getId()
      An anchor point's id must implement equals() and be unique per block
    • getBlock

      public Block getBlock()
      The block that this anchor point is part of
    • getAnchor

      public abstract Point getAnchor()
      This is the actual anchor point that a connector will start/end at. This point may be inside the blocks bounds.
    • getPathLeader

      public abstract Point getPathLeader()
      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.
    • getHotSpot

      public abstract Shape getHotSpot()
      This is the shape that counts for the mouse to begin dragging or drop onto this anchor point
    • isConnectorOrigin

      public boolean isConnectorOrigin()
    • isConnectorTerminus

      public boolean isConnectorTerminus()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object