protected static class AbstractLinePathConnector.ConnectableLineSubset extends AbstractPathConnector.ConnectableElement<AbstractLinePathConnector.ConnectableLineSubset>
| Constructor and Description |
|---|
ConnectableLineSubset(LineConvexSubset subset)
Create a new instance from the given line subset.
|
ConnectableLineSubset(Vector2D start)
Create a new instance with the given start point.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConnectTo(AbstractLinePathConnector.ConnectableLineSubset next)
Return true if this instance's end point can be connected to
the argument's start point.
|
int |
compareTo(AbstractLinePathConnector.ConnectableLineSubset other) |
boolean |
endPointsEq(AbstractLinePathConnector.ConnectableLineSubset other)
Return true if the end point of this instance should be considered
equivalent to the end point of the argument.
|
boolean |
equals(Object obj) |
AbstractLinePathConnector.ConnectableLineSubset |
getConnectionSearchKey()
Get a new instance used as a search key to help locate other elements
with start points matching this instance's end point.
|
LineConvexSubset |
getLineSubset()
Get the line subset for this instance.
|
double |
getRelativeAngle(AbstractLinePathConnector.ConnectableLineSubset next)
Return the relative angle between this element and the argument.
|
protected AbstractLinePathConnector.ConnectableLineSubset |
getSelf()
Return the current instance as the generic type.
|
boolean |
hasEnd()
Return true if this instance has an end point that can be
connected to another element's start point.
|
int |
hashCode() |
boolean |
hasStart()
Return true if this instance has a start point that can be
connected to another element's end point.
|
boolean |
hasZeroSize()
Return true if this instance has a size equivalent to zero.
|
boolean |
shouldContinueConnectionSearch(AbstractLinePathConnector.ConnectableLineSubset candidate,
boolean ascending)
Return true if the search for possible connections should continue through
the sorted set of possible path elements given the current candidate element
and search direction.
|
connectTo, exportPath, getNext, getPrevious, hasNext, hasPrevious, markExported, setNext, setPreviouspublic ConnectableLineSubset(Vector2D start)
start - start pointpublic ConnectableLineSubset(LineConvexSubset subset)
subset - subset instancepublic LineConvexSubset getLineSubset()
public boolean hasStart()
hasStart in class AbstractPathConnector.ConnectableElement<AbstractLinePathConnector.ConnectableLineSubset>public boolean hasEnd()
hasEnd in class AbstractPathConnector.ConnectableElement<AbstractLinePathConnector.ConnectableLineSubset>public boolean hasZeroSize()
public boolean endPointsEq(AbstractLinePathConnector.ConnectableLineSubset other)
endPointsEq in class AbstractPathConnector.ConnectableElement<AbstractLinePathConnector.ConnectableLineSubset>other - element to compare end points withpublic boolean canConnectTo(AbstractLinePathConnector.ConnectableLineSubset next)
canConnectTo in class AbstractPathConnector.ConnectableElement<AbstractLinePathConnector.ConnectableLineSubset>next - candidate for the next element in the path; this value
is guaranteed to not be null and to contain a start pointpublic double getRelativeAngle(AbstractLinePathConnector.ConnectableLineSubset next)
getRelativeAngle in class AbstractPathConnector.ConnectableElement<AbstractLinePathConnector.ConnectableLineSubset>next - element to compute the angle withpublic AbstractLinePathConnector.ConnectableLineSubset getConnectionSearchKey()
Comparable.compareTo(Object) method.getConnectionSearchKey in class AbstractPathConnector.ConnectableElement<AbstractLinePathConnector.ConnectableLineSubset>public boolean shouldContinueConnectionSearch(AbstractLinePathConnector.ConnectableLineSubset candidate, boolean ascending)
shouldContinueConnectionSearch in class AbstractPathConnector.ConnectableElement<AbstractLinePathConnector.ConnectableLineSubset>candidate - last tested candidate connection elementascending - true if the search is proceeding in an ascending direction;
false otherwisepublic int compareTo(AbstractLinePathConnector.ConnectableLineSubset other)
protected AbstractLinePathConnector.ConnectableLineSubset getSelf()
getSelf in class AbstractPathConnector.ConnectableElement<AbstractLinePathConnector.ConnectableLineSubset>Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.