Class AbstractGreatArcConnector

    • Constructor Detail

      • AbstractGreatArcConnector

        public AbstractGreatArcConnector()
    • Method Detail

      • connect

        public void connect​(java.lang.Iterable<GreatArc> arcs)
        Add a collection of arcs to the connector and attempt to connect each new arc with existing ones. Connections made at this time will not be overwritten by subsequent calls to this or other connection methods, (eg, connectAll()).

        The connector is not reset by this call. Additional arc can still be added to the current set of paths.

        Parameters:
        arcs - arcs to connect
        See Also:
        connectAll()
      • connectAll

        public java.util.List<GreatArcPath> connectAll​(java.lang.Iterable<GreatArc> arcs)
        Add the given arcs to this instance and connect all current arc into paths. This call is equivalent to
              connector.add(arcs);
              List<GreatArcPath> result = connector.connectAll();
         

        The connector is reset after this call. Further calls to add or connect arcs will result in new paths being generated.

        Parameters:
        arcs - arcs to add
        Returns:
        the connected arc paths
        See Also:
        add(Iterable), connectAll()
      • connectAll

        public java.util.List<GreatArcPath> connectAll()
        Connect all current arcs into connected paths, returning the result as a list of arc paths.

        The connector is reset after this call. Further calls to add or connect arcs will result in new paths being generated.

        Returns:
        the connected line segments paths