Class ArcTutorial.SelfPTarget

  • All Implemented Interfaces:
    ConnectorTarget
    Enclosing class:
    ArcTutorial

    public static class ArcTutorial.SelfPTarget
    extends PerimeterTarget
    SelfPTarget is used to find target sites. It overrides PerimeterSite, but allows connector head and tails to be located on the same figure.
    • Constructor Detail

      • SelfPTarget

        public SelfPTarget()
    • Method Detail

      • acceptHead

        public boolean acceptHead​(Connector c,
                                  Figure f)
        Return true. This allows "self-arcs"
        Overrides:
        acceptHead in class AbstractConnectorTarget
        Parameters:
        c - The connector
        f - The figure
        Returns:
        true if the tail of the connector can be connected to the figure
      • acceptTail

        public boolean acceptTail​(Connector c,
                                  Figure f)
        Return true. This allows "self-arcs"
        Overrides:
        acceptTail in class AbstractConnectorTarget
        Parameters:
        c - The connector
        f - The figure
        Returns:
        true if the head of the connector can be connected to the figure