static class SugiyamaLayout.CellWrapper<VV> extends java.lang.Object implements java.lang.Comparable<SugiyamaLayout.CellWrapper<VV>>
Modifier and Type | Field and Description |
---|---|
private int |
additions
counter for additions to the edgeCrossesIndicator
|
private double |
edgeCrossesIndicator
sum value for edge Crosses
|
private int |
gridPosition
current position in the grid
|
private int |
level
the vertical level where the cell wrapper is inserted
|
private int |
priority
priority for movements to the barycenter
|
private java.lang.String |
vertex_name |
private VV |
wrappedVertex
reference to the wrapped cell
|
Constructor and Description |
---|
CellWrapper(int level,
double edgeCrossesIndicator,
VV vertex) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addToEdgeCrossesIndicator(double addValue)
Adds a value to the edge crosses indicator for the wrapped cell
|
int |
compareTo(SugiyamaLayout.CellWrapper<VV> compare) |
(package private) double |
getEdgeCrossesIndicator()
Get the average value for the edge crosses indicator for the wrapped cell
|
(package private) int |
getGridPosition()
Gets the grid position for the wrapped cell
|
(package private) int |
getLevel()
Gets the level of the wrapped cell
|
(package private) int |
getPriority()
Get the priority of this cell wrapper.
|
(package private) VV |
getVertexView()
Get wrapped vertex returns the wrapped Vertex
|
(package private) void |
incrementPriority()
increments the the priority of this cell wrapper.
|
(package private) void |
setGridPosition(int pos)
Sets the grid position for the wrapped cell
|
java.lang.String |
toString() |
private double edgeCrossesIndicator
private int additions
private final int level
private int gridPosition
private int priority
private final VV wrappedVertex
private final java.lang.String vertex_name
CellWrapper(int level, double edgeCrossesIndicator, VV vertex)
public java.lang.String toString()
toString
in class java.lang.Object
VV getVertexView()
double getEdgeCrossesIndicator()
void addToEdgeCrossesIndicator(double addValue)
addValue
- value to add to the edge crosses indicator for the wrapped cellint getLevel()
int getGridPosition()
void setGridPosition(int pos)
pos
- positionvoid incrementPriority()
int getPriority()
public int compareTo(SugiyamaLayout.CellWrapper<VV> compare)
compareTo
in interface java.lang.Comparable<SugiyamaLayout.CellWrapper<VV>>
Comparable.compareTo(Object)