info.aduna.linkmap.layout
Class SpringLayoutManager.VertexAttribute

java.lang.Object
  extended by info.aduna.linkmap.layout.SpringLayoutManager.VertexAttribute
Direct Known Subclasses:
AdaptiveSpringLayoutManager.AdaptiveVertexAttribute
Enclosing class:
SpringLayoutManager

public static class SpringLayoutManager.VertexAttribute
extends Object


Field Summary
 double charge
          The charge of the represented vertex.
 boolean fixated
          Indicates whether the represented vertex is allowed to move at all.
 double forceX
          The total force acting upon the represented vertex in the x direction.
 double forceY
          The total force acting upon the represented vertex in the y direction.
 double mass
          The mass of the represented vertex.
 double prevForceX
          The total force acting upon the represented vertex in the x direction during the previous iteration.
 double prevForceY
          The total force acting upon the represented vertex in the y direction during the previous iteration.
 Vertex vertex
          The vertex represented by this attribute.
 double x
          The x coordinate of this attribute.
 double y
          The y coordinate of this attribute.
 
Constructor Summary
SpringLayoutManager.VertexAttribute(Vertex vertex)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vertex

public Vertex vertex
The vertex represented by this attribute.


x

public double x
The x coordinate of this attribute.


y

public double y
The y coordinate of this attribute.


mass

public double mass
The mass of the represented vertex. This determines how fast the vertex can move around. A bigger mass results in a slower but more predictable moving Vertex. This value should be greater than zero.


charge

public double charge
The charge of the represented vertex. This determines how much the vertex repels other vertices in general. This value should be greater than or equal to zero. A charge equal to zero results in a Vertex that does not repel other Vertices.


forceX

public double forceX
The total force acting upon the represented vertex in the x direction. Calculated during each iteration by the spring embedder algorithm.


forceY

public double forceY
The total force acting upon the represented vertex in the y direction. Calculated during each iteration by the spring embedder algorithm.


fixated

public boolean fixated
Indicates whether the represented vertex is allowed to move at all.


prevForceX

public double prevForceX
The total force acting upon the represented vertex in the x direction during the previous iteration. Calculated during each iteration by the spring embedder algorithm.


prevForceY

public double prevForceY
The total force acting upon the represented vertex in the y direction during the previous iteration. Calculated during each iteration by the spring embedder algorithm.

Constructor Detail

SpringLayoutManager.VertexAttribute

public SpringLayoutManager.VertexAttribute(Vertex vertex)


Copyright © 1997-2008 Aduna. All Rights Reserved.