de.cau.cs.kieler.klay.force.graph
Class FEdge

java.lang.Object
  extended by de.cau.cs.kieler.core.properties.MapPropertyHolder
      extended by de.cau.cs.kieler.klay.force.graph.FEdge
All Implemented Interfaces:
IPropertyHolder

public class FEdge
extends MapPropertyHolder

A physico-virtual representation of an edge, including a list of associated bend points.

Rating red

Constructor Summary
FEdge()
           
 
Method Summary
 void distributeBendpoints()
          Distribute the bend points evenly on the edge.
 List<FBendpoint> getBendpoints()
          Returns the list of bend points associated with this edge.
 List<FLabel> getLabels()
          Returns the list of labels associated with this edge.
 FNode getSource()
          Returns the source node.
 KVector getSourcePoint()
          Returns the docking point at the source node.
 FNode getTarget()
          Returns the target node.
 KVector getTargetPoint()
          Returns the docking point at the target node.
 void setSource(FNode theSource)
          Sets the source vertex.
 void setTarget(FNode theTarget)
          Sets the target vertex.
 String toString()
          
 KVectorChain toVectorChain()
          Returns a vector chain with all bend points and source and target point.
 
Methods inherited from class de.cau.cs.kieler.core.properties.MapPropertyHolder
checkProperties, copyProperties, getAllProperties, getProperty, getProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FEdge

public FEdge()
Method Detail

toString

public String toString()

Overrides:
toString in class Object

getSource

public FNode getSource()
Returns the source node.

Returns:
the source node

getTarget

public FNode getTarget()
Returns the target node.

Returns:
the target node

getBendpoints

public List<FBendpoint> getBendpoints()
Returns the list of bend points associated with this edge.

Returns:
list of bend points

getLabels

public List<FLabel> getLabels()
Returns the list of labels associated with this edge.

Returns:
list of labels

getSourcePoint

public KVector getSourcePoint()
Returns the docking point at the source node.

Returns:
the source docking point

getTargetPoint

public KVector getTargetPoint()
Returns the docking point at the target node.

Returns:
the target docking point

setSource

public final void setSource(FNode theSource)
Sets the source vertex.

Parameters:
theSource - the source vertex set to

setTarget

public final void setTarget(FNode theTarget)
Sets the target vertex.

Parameters:
theTarget - the target vertex

toVectorChain

public KVectorChain toVectorChain()
Returns a vector chain with all bend points and source and target point.

Returns:
a vector chain for the edge

distributeBendpoints

public void distributeBendpoints()
Distribute the bend points evenly on the edge.