![]() |
GrammarScope
4.0.0
|

Public Member Functions | |
| AnchorAllocator () | |
| void | allocate (final Collection< V > nodes, final Comparator< E > leftComparator, final Comparator< E > rightComparator) |
| float | getAnchor (final V node, final E edge) |
| float | getLeftAnchor (final E edge) |
| float | getRightAnchor (final E edge) |
| String | toString () |
Static Public Member Functions | |
| static float | center (final int i, final int left, final int right) |
Private Member Functions | |
| boolean | isBackwards (final IGraphEdge< V > edge) |
| boolean | isRightIncident (final IGraphEdge< V > edge, final V node) |
| boolean | isLeftIncident (final IGraphEdge< V > edge, final V node) |
| V | getLeftNode (final IGraphEdge< V > edge) |
| V | getRightNode (final IGraphEdge< V > edge) |
Private Attributes | |
| final Map< V, Triple< Integer, Integer, Map< E, Integer > > > | anchors |
Graph edge anchor allocator. Anchors are (float) shift value shifts from edge end center.
| grammarscope.allocator.AnchorAllocator< V extends IsIndexedVertex< E, E extends IGraphEdge< V >.AnchorAllocator | ( | ) |
Constructor
| void grammarscope.allocator.AnchorAllocator< V extends IsIndexedVertex< E, E extends IGraphEdge< V >.allocate | ( | final Collection< V > | nodes, |
| final Comparator< E > | leftComparator, | ||
| final Comparator< E > | rightComparator | ||
| ) |
Allocate node slots
| nodes | collection of nodes |
| leftComparator | anchor allocation order |
| rightComparator | anchor allocation order |
|
static |
Center
| i | index |
| left | leftmost index |
| right | rightmost index |
| float grammarscope.allocator.AnchorAllocator< V extends IsIndexedVertex< E, E extends IGraphEdge< V >.getAnchor | ( | final V | node, |
| final E | edge | ||
| ) |
Get anchor
| node | node |
| edge | oncoming or outgoing edge |
| float grammarscope.allocator.AnchorAllocator< V extends IsIndexedVertex< E, E extends IGraphEdge< V >.getLeftAnchor | ( | final E | edge | ) |
Get edge's left anchor
| edge | edge |
|
private |
Get left node
| edge | edge |
| float grammarscope.allocator.AnchorAllocator< V extends IsIndexedVertex< E, E extends IGraphEdge< V >.getRightAnchor | ( | final E | edge | ) |
Get edge's right anchor
| edge | edge |
|
private |
Get right node
| edge | edge |
|
private |
Is backwards
| edge | edge |
|
private |
Is left incident
| edge | edge |
| node | node |
|
private |
Is right incident
| edge | edge |
| node | node |
| String grammarscope.allocator.AnchorAllocator< V extends IsIndexedVertex< E, E extends IGraphEdge< V >.toString | ( | ) |
|
private |
Cache of allocated anchors
1.8.17