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

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

public class FLabel
extends FParticle

A label in the force graph.

Rating red

Constructor Summary
FLabel(FEdge fedge, String text)
          Create a new label.
 
Method Summary
 FEdge getEdge()
          Returns the associated edge.
 String getText()
          Returns the text of this label.
 void refreshPosition()
          Refresh the label position, that is place it in the center of the edge.
 String toString()
          
 
Methods inherited from class de.cau.cs.kieler.klay.force.graph.FParticle
getPosition, getRadius, getSize
 
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

FLabel

public FLabel(FEdge fedge,
              String text)
Create a new label. The label is also put into the edge's list of labels.

Parameters:
text - the text of the new label
fedge - edge corresponding to this label
Method Detail

toString

public String toString()

Overrides:
toString in class Object

getText

public String getText()
Returns the text of this label.

Returns:
text of this label

getEdge

public FEdge getEdge()
Returns the associated edge.

Returns:
edge this label is associated to.

refreshPosition

public void refreshPosition()
Refresh the label position, that is place it in the center of the edge.