Skip to content

Commit 864a26a

Browse files
committed
Minor refactoring.
1 parent d5aabe6 commit 864a26a

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
@@ -280,9 +280,9 @@ public SmartGraphPanel(Graph<V, E> theGraph, SmartGraphProperties properties,
280280

281281
this.automaticLayoutStrategy = layoutStrategy;
282282

283-
vertexNodes = new HashMap<>();
284-
edgeNodes = new HashMap<>();
285-
connections = new HashMap<>();
283+
this.vertexNodes = new HashMap<>();
284+
this.edgeNodes = new HashMap<>();
285+
this.connections = new HashMap<>();
286286

287287
//set stylesheet and class
288288
loadStylesheet(cssFile);
@@ -296,7 +296,7 @@ public SmartGraphPanel(Graph<V, E> theGraph, SmartGraphProperties properties,
296296

297297
@Override
298298
public void handle(long now) {
299-
runLayoutIteration();
299+
runAutomaticLayout();
300300
}
301301
};
302302

@@ -310,7 +310,7 @@ public void handle(long now) {
310310
});
311311
}
312312

313-
private synchronized void runLayoutIteration() {
313+
private synchronized void runAutomaticLayout() {
314314
for (int i = 0; i < AUTOMATIC_LAYOUT_ITERATIONS; i++) {
315315
resetForces();
316316
computeForces();

0 commit comments

Comments
 (0)