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, getStartPositionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDirection, getEndPosition, getStartPositionpublic 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()
LoopArealDatagetMiddlePoint in interface LoopArealDatapublic StdLayout.VisVertex getStartVertex()
getStartVertex in class EdgeVisualData<VertexType,EdgeType>public StdLayout.VisVertex getEndVertex()
getEndVertex in class EdgeVisualData<VertexType,EdgeType>public float getLoopRadius()
LoopArealDatagetLoopRadius in interface LoopArealDatapublic float getLoopOutAngle()
LoopArealDatagetLoopOutAngle in interface LoopArealDatapublic float getLoopInAngle()
LoopArealDatagetLoopInAngle in interface LoopArealDatapublic Position2D getEndLinePosition()
EdgeArealDatagetEndLinePosition in interface EdgeArealDatapublic Position2D getStartLinePosition()
EdgeArealDatagetStartLinePosition in interface EdgeArealData