java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.imp2d.layout.Layout
de.grogra.imp2d.layout.ForceBasedLayout
de.grogra.imp2d.layout.SpringLayout
- All Implemented Interfaces:
Manageable,Shareable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class de.grogra.imp2d.layout.ForceBasedLayout
ForceBasedLayout.FBAlgorithmNested classes/interfaces inherited from class de.grogra.imp2d.layout.Layout
Layout.Algorithm -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SpringLayout.Typestatic final SCOType.Fieldstatic final SCOType.FieldFields inherited from class de.grogra.imp2d.layout.ForceBasedLayout
accuracy$FIELD, connectedNodesSize, count$FIELD, displayTransformation$FIELD, nodesSize, relaxation$FIELD, startWithRandom$FIELDFields inherited from class de.grogra.imp2d.layout.Layout
fit$FIELD, transformationSteps$FIELD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcomputeForce(Edge e, Vector2f force) Computes the force contribution of an edge.protected voidcomputeForce(Node s, Node t, Vector2f force) Computes the force contribution of a pair of nodes.protected voidsetRandomPosition(Node nodeTemp, Random rnd) Methods inherited from class de.grogra.imp2d.layout.ForceBasedLayout
createAlgorithm, setStartWithRandomMethods inherited from class de.grogra.imp2d.layout.Layout
getParam, invoke, setParam, setRedraw, setTransformationStepsMethods inherited from class de.grogra.persistence.ShareableBase
addReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReference
-
Field Details
-
$TYPE
-
attraction$FIELD
-
repulsion$FIELD
-
-
Constructor Details
-
SpringLayout
public SpringLayout()
-
-
Method Details
-
setRandomPosition
- Specified by:
setRandomPositionin classForceBasedLayout
-
computeForce
Description copied from class:ForceBasedLayoutComputes the force contribution of an edge. This method is invoked for every edge of the graph.- Specified by:
computeForcein classForceBasedLayout- Parameters:
e- an edgeforce- the force in the direction fromedge.sourcetoedge.targethas to be placed in here
-
computeForce
Description copied from class:ForceBasedLayoutComputes the force contribution of a pair of nodes. This method is invoked for every pair of nodes, whether they are connected or not. The computedforceshould be anti-symmetric with respect tosandt, i.e., if these parameters are exchanged, the resultingforceshould be the negative of the original force.- Specified by:
computeForcein classForceBasedLayout- Parameters:
s- the source nodet- the target nodeforce- the force in the direction fromstothas to be placed in here
-
getManageableType
-