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

java.lang.Object
  extended by de.cau.cs.kieler.core.properties.MapPropertyHolder
      extended by de.cau.cs.kieler.klay.force.graph.FParticle
All Implemented Interfaces:
IPropertyHolder
Direct Known Subclasses:
FBendpoint, FLabel, FNode

public abstract class FParticle
extends MapPropertyHolder

A particle in the force graph, that is an object that can attract or repulse other particles.

Rating red

Constructor Summary
FParticle()
           
 
Method Summary
 KVector getPosition()
          Returns the position vector of this particle.
 double getRadius()
          Calculate radius for this particle.
 KVector getSize()
          Returns the size of this particle.
 
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, toString, wait, wait, wait
 

Constructor Detail

FParticle

public FParticle()
Method Detail

getPosition

public final KVector getPosition()
Returns the position vector of this particle.

Returns:
the position vector

getSize

public final KVector getSize()
Returns the size of this particle.

Returns:
the dimension vector

getRadius

public double getRadius()
Calculate radius for this particle.

Returns:
radius of smallest circle surrounding shape of p