VertexType
- the type of the vertices of the graphEdgeType
- the type of the edges of the graphpublic class LoopEdgeVisualData<VertexType,EdgeType> extends EdgeVisualData<VertexType,EdgeType> implements LoopArealData
direction, endPosition, originalEdge, startPosition
Constructor and Description |
---|
LoopEdgeVisualData(EdgeType originalEdge,
StdLayout.VisVertex loopVertex)
Creates an instance
|
Modifier and Type | Method and Description |
---|---|
Position2D |
getEndLinePosition()
Returns the end position of the edge stroke.
|
StdLayout.VisVertex |
getEndVertex() |
float |
getLoopInAngle()
Returns the end angle of the loop arc
|
float |
getLoopOutAngle()
Returns the start angle of the loop arc
|
float |
getLoopRadius()
Returns the radius of the loop arc
|
Position2D |
getMiddlePoint()
Returns the middle point of the loop arc
|
Position2D |
getStartLinePosition()
Returns the start position of the edge stroke.
|
StdLayout.VisVertex |
getStartVertex() |
void |
update(GraphLibrary<VertexType,EdgeType> graph) |
void |
updateDirection() |
getDirection, getEdge, getEndPosition, getEndVertex, getStartPosition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDirection, getEndPosition, getStartPosition
public LoopEdgeVisualData(EdgeType originalEdge, StdLayout.VisVertex loopVertex)
originalEdge
- the edge to visualize. Must be a loop edgeloopVertex
- the vertex of the loop edgepublic void updateDirection()
updateDirection
in class EdgeVisualData<VertexType,EdgeType>
public void update(GraphLibrary<VertexType,EdgeType> graph)
update
in class EdgeVisualData<VertexType,EdgeType>
public Position2D getMiddlePoint()
LoopArealData
getMiddlePoint
in interface LoopArealData
public StdLayout.VisVertex getStartVertex()
getStartVertex
in class EdgeVisualData<VertexType,EdgeType>
public StdLayout.VisVertex getEndVertex()
getEndVertex
in class EdgeVisualData<VertexType,EdgeType>
public float getLoopRadius()
LoopArealData
getLoopRadius
in interface LoopArealData
public float getLoopOutAngle()
LoopArealData
getLoopOutAngle
in interface LoopArealData
public float getLoopInAngle()
LoopArealData
getLoopInAngle
in interface LoopArealData
public Position2D getEndLinePosition()
EdgeArealData
getEndLinePosition
in interface EdgeArealData
public Position2D getStartLinePosition()
EdgeArealData
getStartLinePosition
in interface EdgeArealData