Class VerticalAlignment<V,E>
- java.lang.Object
-
- org.jungrapht.visualization.layout.algorithms.sugiyama.VerticalAlignment<V,E>
-
- org.jungrapht.visualization.layout.algorithms.eiglsperger.VerticalAlignment<V,E>
-
- Type Parameters:
V-E-
- Direct Known Subclasses:
VerticalAlignment.LeftmostLower,VerticalAlignment.LeftmostUpper,VerticalAlignment.RightmostLower,VerticalAlignment.RightmostUpper
public abstract class VerticalAlignment<V,E> extends VerticalAlignment<V,E>
- See Also:
- "Fast and Simple Horizontal Coordinate Assignment, Ulrik Brandes and Boris Köpf, Department of Computer & Information Science, University of Konstanz"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVerticalAlignment.HDirectionstatic classVerticalAlignment.LeftmostLower<V,E>start at last layer, work upwards looking at successor positionsstatic classVerticalAlignment.LeftmostUpper<V,E>start at first layer, work down, looking at predecessorsstatic classVerticalAlignment.RightmostLower<V,E>start at last layer, work up, looking at successorsstatic classVerticalAlignment.RightmostUpper<V,E>static classVerticalAlignment.VDirection
-
Field Summary
Fields Modifier and Type Field Description protected org.jgrapht.Graph<LV<V>,Integer>compactionGraphprotected VerticalAlignment.HDirectionhDirectionprotected VerticalAlignment.VDirectionvDirection-
Fields inherited from class org.jungrapht.visualization.layout.algorithms.sugiyama.VerticalAlignment
alignMap, layers, markedSegments, neighborCache, rootMap, svGraph
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedVerticalAlignment(VerticalAlignment.HDirection hDirection, VerticalAlignment.VDirection vDirection, LV<V>[][] layers, org.jgrapht.Graph<LV<V>,Integer> compactionGraph, org.jgrapht.Graph<LV<V>,LE<V,E>> svGraph, Set<LE<V,E>> markedSegments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intalignMoveCursor(LV<V> neighbor, LV<V> vertex)protected intalignSegmentVertexMoveCursor(org.jungrapht.visualization.layout.algorithms.eiglsperger.SegmentVertex<V> segmentVertex)protected intidx(LV<V> v)protected intpos(LV<V> v)-
Methods inherited from class org.jungrapht.visualization.layout.algorithms.sugiyama.VerticalAlignment
align, align, align, getAlignMap, getRootMap, notMarked, root, root
-
-
-
-
Field Detail
-
hDirection
protected final VerticalAlignment.HDirection hDirection
-
vDirection
protected final VerticalAlignment.VDirection vDirection
-
-
Method Detail
-
alignMoveCursor
protected int alignMoveCursor(LV<V> neighbor, LV<V> vertex)
- Overrides:
alignMoveCursorin classVerticalAlignment<V,E>
-
alignSegmentVertexMoveCursor
protected int alignSegmentVertexMoveCursor(org.jungrapht.visualization.layout.algorithms.eiglsperger.SegmentVertex<V> segmentVertex)
-
pos
protected int pos(LV<V> v)
- Overrides:
posin classVerticalAlignment<V,E>- Parameters:
v- vertix to get pos for- Returns:
- the pos (not index in rank) of the passed vertex
-
-