Class HorizontalCoordinateAssignment<V,E>
- java.lang.Object
-
- org.jungrapht.visualization.layout.algorithms.sugiyama.HorizontalCoordinateAssignment<V,E>
-
- org.jungrapht.visualization.layout.algorithms.eiglsperger.HorizontalCoordinateAssignment<V,E>
-
public class HorizontalCoordinateAssignment<V,E> extends HorizontalCoordinateAssignment<V,E>
- See Also:
- "Fast and Simple Horizontal Coordinate Assignment, Ulrik Brandes and Boris Köpf, Department of Computer & Information Science, University of Konstanz"
-
-
Field Summary
Fields Modifier and Type Field Description protected org.jgrapht.Graph<LV<V>,Integer>compactionGraphprotected Set<LV<V>>isolatedCompactionGraphVertices-
Fields inherited from class org.jungrapht.visualization.layout.algorithms.sugiyama.HorizontalCoordinateAssignment
horizontalBalancing, horizontalOffset, layers, markedSegments, neighborCache, svGraph, verticalOffset
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intboundsWidth(Collection<Integer> xValues)voidhorizontalCoordinateAssignment()protected intidx(LV<V> v)protected booleanincidentToInnerSegment(LV<V> v)override to say that only QVertices are incident to an inner edge that spans from previous rank to this oneprotected List<LV<V>>misAligned(Map<LV<V>,Point> pointMap)protected booleanmisAligned(LV<V> v)protected List<LV<V>>misAligned(LV<V>[][] layers)protected booleanmisAligned(LV<V> v, Map<LV<V>,Point> map)protected intpos(LV<V> v)override to use pos instead of index-
Methods inherited from class org.jungrapht.visualization.layout.algorithms.sugiyama.HorizontalCoordinateAssignment
bounds, getUpperNeighbors, horizontalBalancing, pred, preprocessing, succ, upperNeighborFor
-
-
-
-
Method Detail
-
horizontalCoordinateAssignment
public void horizontalCoordinateAssignment()
- Overrides:
horizontalCoordinateAssignmentin classHorizontalCoordinateAssignment<V,E>
-
boundsWidth
protected int boundsWidth(Collection<Integer> xValues)
-
pos
protected int pos(LV<V> v)
override to use pos instead of index- Overrides:
posin classHorizontalCoordinateAssignment<V,E>- Parameters:
v- vertex to consider- Returns:
- v's pos (not its index in the rank)
-
incidentToInnerSegment
protected boolean incidentToInnerSegment(LV<V> v)
override to say that only QVertices are incident to an inner edge that spans from previous rank to this one- Overrides:
incidentToInnerSegmentin classHorizontalCoordinateAssignment<V,E>- Parameters:
v- vertex to check- Returns:
- true iv v is incident to an inner segment between v's rank and the preceding rank
-
-