public abstract class AbstractGreatArcConnector extends AbstractPathConnector<AbstractGreatArcConnector.ConnectableGreatArc>
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractGreatArcConnector.ConnectableGreatArc
Internal class for connecting
GreatArc s into GreatArcPath s. |
AbstractPathConnector.ConnectableElement<E extends AbstractPathConnector.ConnectableElement<E>>
Constructor and Description |
---|
AbstractGreatArcConnector() |
Modifier and Type | Method and Description |
---|---|
void |
add(GreatArc arc)
Add an arc to the connector, leaving it unconnected until a later call to
to
connect(Iterable) or connectAll() . |
void |
add(Iterable<GreatArc> arcs)
Add a collection of arcs to the connector, leaving them unconnected
until a later call to
connect(Iterable) or
connectAll() . |
void |
connect(Iterable<GreatArc> arcs)
Add a collection of arcs to the connector and attempt to connect each new
arc with existing ones.
|
List<GreatArcPath> |
connectAll()
Connect all current arcs into connected paths, returning the result as a
list of arc paths.
|
List<GreatArcPath> |
connectAll(Iterable<GreatArc> arcs)
Add the given arcs to this instance and connect all current
arc into paths.
|
addPathElement, computePathRoots, connectPathElements, selectConnection, selectPointConnection
public AbstractGreatArcConnector()
public void add(GreatArc arc)
connect(Iterable)
or connectAll()
.arc
- arc to addconnect(Iterable)
,
connectAll()
public void add(Iterable<GreatArc> arcs)
connect(Iterable)
or
connectAll()
.arcs
- arcs to addconnect(Iterable)
,
connectAll()
,
add(GreatArc)
public void connect(Iterable<GreatArc> arcs)
connectAll()
).
The connector is not reset by this call. Additional arc can still be added to the current set of paths.
arcs
- arcs to connectconnectAll()
public List<GreatArcPath> connectAll(Iterable<GreatArc> arcs)
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.
arcs
- arcs to addadd(Iterable)
,
connectAll()
public List<GreatArcPath> connectAll()
The connector is reset after this call. Further calls to add or connect arcs will result in new paths being generated.
Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.