|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.linkmap.layout.GraphLayoutManager
info.aduna.linkmap.layout.IteratingLayoutManager
info.aduna.linkmap.layout.SpringLayoutManager
info.aduna.linkmap.layout.AdaptiveSpringLayoutManager
public class AdaptiveSpringLayoutManager
AdaptiveSpringLayoutManager extends the layout algorithm of the SpringLayoutManager by using a separate adaptation parameter for every vertex. This adaptation parameter initially has the value of the global adaptation parameter, and is adapted in consecutive iterations according to the behaviour of the node.
| Nested Class Summary | |
|---|---|
static class |
AdaptiveSpringLayoutManager.AdaptiveVertexAttribute
|
| Nested classes/interfaces inherited from class info.aduna.linkmap.layout.SpringLayoutManager |
|---|
SpringLayoutManager.EdgeAttribute, SpringLayoutManager.VertexAttribute |
| Field Summary | |
|---|---|
static double |
DEFAULT_ADAPTATION
The default adaptation used for all the AdaptiveSpringVertexAttribute. |
static double |
DEFAULT_DECREASE_FACTOR
The default value of the decrease factor property. |
static double |
DEFAULT_DECREASE_THRESHOLD
The default value of the decrease threshold property. |
static double |
DEFAULT_INCREASE_FACTOR
The default value of the increase factor property. |
static double |
DEFAULT_INCREASE_THRESHOLD
The default value of the increase threshold property. |
| Fields inherited from class info.aduna.linkmap.layout.SpringLayoutManager |
|---|
DEFAULT_ATTRACTION, DEFAULT_AVERAGE_MOVEMENT_THRESHOLD, DEFAULT_CHARGE, DEFAULT_MASS, DEFAULT_MAXIMUM_ALLOWED_MOVEMENT, DEFAULT_MAXIMUM_OBSERVED_MOVEMENT_THRESHOLD, DEFAULT_MOMENTUM, DEFAULT_REPULSION, DEFAULT_SPRING_CONSTANT, DEFAULT_SPRING_LENGTH, DEFAULT_TRANSLATION_INTERVAL |
| Fields inherited from class info.aduna.linkmap.layout.IteratingLayoutManager |
|---|
UNDEFINED_MAX_ITERATION |
| Constructor Summary | |
|---|---|
AdaptiveSpringLayoutManager()
|
|
| Method Summary | |
|---|---|
SpringLayoutManager.VertexAttribute |
createVertexAttribute(Vertex vertex)
Overrides SpringLayoutManager and returns an AdaptiveVertexAttribute. |
double |
getDecreaseFactor()
|
double |
getDecreaseThreshold()
|
double |
getIncreaseFactor()
|
double |
getIncreaseThreshold()
|
void |
initLayoutParameters()
Overrides and extends SpringLayoutManager. |
void |
move(SpringLayoutManager.VertexAttribute attribute)
Overrides SpringLayoutManager and first calculates the local adaptation of the specified VertexAttribute (which must be an AdaptiveVertexAttribute) before it is moved. |
void |
reset(SpringLayoutManager.VertexAttribute attribute)
Overrides SpringLayoutManager and additionally copies the global adaptation in the specified VertexAttribute, which must therefore be an AdaptiveVertexAttribute. |
void |
setDecreaseFactor(double factor)
|
void |
setDecreaseThreshold(double threshold)
|
void |
setIncreaseFactor(double factor)
|
void |
setIncreaseThreshold(double threshold)
|
| Methods inherited from class info.aduna.linkmap.layout.IteratingLayoutManager |
|---|
continueLayout, getIteration, getMaxIteration, handlePauseLayout, increaseIteration, isMaxIterationReached, pauseLayout, pauseLayoutRequested, setIteration, setMaxIteration, setPauseLayout, setStopLayout, stopLayout, stopLayoutRequested |
| Methods inherited from class info.aduna.linkmap.layout.GraphLayoutManager |
|---|
getGraph, run, setGraph |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double DEFAULT_ADAPTATION
public static final double DEFAULT_INCREASE_THRESHOLD
public static final double DEFAULT_DECREASE_THRESHOLD
public static final double DEFAULT_INCREASE_FACTOR
public static final double DEFAULT_DECREASE_FACTOR
| Constructor Detail |
|---|
public AdaptiveSpringLayoutManager()
| Method Detail |
|---|
public void setIncreaseThreshold(double threshold)
public double getIncreaseThreshold()
public void setDecreaseThreshold(double threshold)
public double getDecreaseThreshold()
public void setIncreaseFactor(double factor)
public double getIncreaseFactor()
public void setDecreaseFactor(double factor)
public double getDecreaseFactor()
public void initLayoutParameters()
initLayoutParameters in class SpringLayoutManagerpublic SpringLayoutManager.VertexAttribute createVertexAttribute(Vertex vertex)
createVertexAttribute in class SpringLayoutManagerpublic void reset(SpringLayoutManager.VertexAttribute attribute)
reset in class SpringLayoutManagerpublic void move(SpringLayoutManager.VertexAttribute attribute)
move in class SpringLayoutManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||