public abstract class AbstractLinePathConnector extends AbstractPathConnector<AbstractLinePathConnector.ConnectableLineSubset>
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractLinePathConnector.ConnectableLineSubset
Internal class used to connect line subsets together.
|
AbstractPathConnector.ConnectableElement<E extends AbstractPathConnector.ConnectableElement<E>>
Constructor and Description |
---|
AbstractLinePathConnector() |
Modifier and Type | Method and Description |
---|---|
void |
add(Iterable<? extends LineConvexSubset> subsets)
Add a collection of line subsets to the connector, leaving them unconnected
until a later call to
connect(Iterable) or
connectAll() . |
void |
add(LineConvexSubset subset)
Add a line subset to the connector, leaving it unconnected until a later call to
to
connect(Iterable) or connectAll() . |
void |
connect(Iterable<? extends LineConvexSubset> subsets)
Add a collection of line subsets to the connector and attempt to connect each new
line subset with existing subsets.
|
List<LinePath> |
connectAll()
Connect all current line subsets into connected paths, returning the result as a
list of line paths.
|
List<LinePath> |
connectAll(Iterable<LineConvexSubset> subsets)
Add the given line subsets to this instance and connect all current
subsets into connected paths.
|
addPathElement, computePathRoots, connectPathElements, selectConnection, selectPointConnection
public AbstractLinePathConnector()
public void add(LineConvexSubset subset)
connect(Iterable)
or connectAll()
.subset
- line subset to addconnect(Iterable)
,
connectAll()
public void add(Iterable<? extends LineConvexSubset> subsets)
connect(Iterable)
or
connectAll()
.subsets
- line subsets to addconnect(Iterable)
,
connectAll()
,
add(LineConvexSubset)
public void connect(Iterable<? extends LineConvexSubset> subsets)
connectAll()
).
The connector is not reset by this call. Additional line subsets can still be added to the current set of paths.
subsets
- line subsets to connectconnectAll()
public List<LinePath> connectAll(Iterable<LineConvexSubset> subsets)
connector.add(subsets); List<LinePath> result = connector.connectAll();
The connector is reset after this call. Further calls to add or connect line subsets will result in new paths being generated.
subsets
- line subsets to addadd(Iterable)
,
connectAll()
public List<LinePath> connectAll()
The connector is reset after this call. Further calls to add or connect line subsets will result in new paths being generated.
Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.