Skip to content

Commit b3ef832

Browse files
committed
ForceDirectedSpringGravityLayoutStrategy as the default.
1 parent 1244130 commit b3ef832

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/main/java/com/brunomnsilva/smartgraph/graphview/SmartGraphPanel.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public SmartGraphPanel(Graph<V, E> theGraph) {
123123
new SmartGraphProperties(),
124124
new SmartCircularSortedPlacementStrategy(),
125125
null,
126-
new ForceDirectedSpringSystemLayoutStrategy<>()
126+
new ForceDirectedSpringGravityLayoutStrategy<>()
127127
);
128128
}
129129

@@ -158,7 +158,7 @@ public SmartGraphPanel(Graph<V, E> theGraph, SmartGraphProperties properties) {
158158
properties,
159159
new SmartCircularSortedPlacementStrategy(),
160160
null,
161-
new ForceDirectedSpringSystemLayoutStrategy<>()
161+
new ForceDirectedSpringGravityLayoutStrategy<>()
162162
);
163163
}
164164

@@ -175,7 +175,7 @@ public SmartGraphPanel(Graph<V, E> theGraph, SmartPlacementStrategy placementStr
175175
new SmartGraphProperties(),
176176
placementStrategy,
177177
null,
178-
new ForceDirectedSpringSystemLayoutStrategy<>()
178+
new ForceDirectedSpringGravityLayoutStrategy<>()
179179
);
180180
}
181181

@@ -195,7 +195,7 @@ public SmartGraphPanel(Graph<V, E> theGraph, SmartGraphProperties properties,
195195
properties,
196196
placementStrategy,
197197
null,
198-
new ForceDirectedSpringSystemLayoutStrategy<>()
198+
new ForceDirectedSpringGravityLayoutStrategy<>()
199199
);
200200
}
201201

@@ -216,7 +216,7 @@ public SmartGraphPanel(Graph<V, E> theGraph, SmartGraphProperties properties,
216216
properties,
217217
placementStrategy,
218218
cssFile,
219-
new ForceDirectedSpringSystemLayoutStrategy<>()
219+
new ForceDirectedSpringGravityLayoutStrategy<>()
220220
);
221221
}
222222

0 commit comments

Comments
 (0)