Commit 2e34e7ca authored by Antoine's avatar Antoine

Reflect the changes in the ui.layout of core.

parent ec6e7190
......@@ -58,7 +58,7 @@ public class Eades84Layout extends PipeBase implements Layout {
Random random;
int nodeMoved = 0;
LinkedList<LayoutListener> listeners;
// LinkedList<LayoutListener> listeners;
double stabilization = 0;
Point3 high;
......@@ -80,7 +80,7 @@ public class Eades84Layout extends PipeBase implements Layout {
springs = new HashMap<String, Spring>();
particles = new HashMap<String, EadesParticle>();
random = new Random();
listeners = new LinkedList<LayoutListener>();
// listeners = new LinkedList<LayoutListener>();
high = new Point3(1, 1, 1);
low = new Point3(-1, -1, -1);
......@@ -139,13 +139,13 @@ public class Eades84Layout extends PipeBase implements Layout {
}
public void addListener(LayoutListener listener) {
listeners.add(listener);
}
public void removeListener(LayoutListener listener) {
listeners.remove(listener);
}
// public void addListener(LayoutListener listener) {
// listeners.add(listener);
// }
//
// public void removeListener(LayoutListener listener) {
// listeners.remove(listener);
// }
public void setForce(double value) {
// TODO Auto-generated method stub
......@@ -215,8 +215,8 @@ public class Eades84Layout extends PipeBase implements Layout {
stabilization += 1;
for (LayoutListener listener : listeners)
listener.stepCompletion(getStabilization());
// for (LayoutListener listener : listeners)
// listener.stepCompletion(getStabilization());
}
public void nodeAdded(String sourceId, long timeId, String nodeId) {
......
......@@ -66,7 +66,7 @@ public class HierarchicalLayout extends PipeBase implements Layout {
final HashMap<String, Position> nodesPosition;
final LinkedList<String> roots;
final LinkedList<LayoutListener> listeners;
// final LinkedList<LayoutListener> listeners;
final Graph internalGraph;
boolean structureChanged;
......@@ -81,7 +81,7 @@ public class HierarchicalLayout extends PipeBase implements Layout {
public HierarchicalLayout() {
roots = new LinkedList<String>();
listeners = new LinkedList<LayoutListener>();
// listeners = new LinkedList<LayoutListener>();
nodesPosition = new HashMap<String, Position>();
internalGraph = new AdjacencyListGraph("hierarchical_layout-intern");
hi = new Point3();
......@@ -97,9 +97,9 @@ public class HierarchicalLayout extends PipeBase implements Layout {
}
}
public void addListener(LayoutListener listener) {
listeners.add(listener);
}
// public void addListener(LayoutListener listener) {
// listeners.add(listener);
// }
public void clear() {
// TODO Auto-generated method stub
......@@ -341,16 +341,16 @@ public class HierarchicalLayout extends PipeBase implements Layout {
throw new UnsupportedOperationException();
}
/*
* (non-Javadoc)
*
* @see
* org.graphstream.ui.layout.Layout#removeListener(org.graphstream.ui.layout
* .LayoutListener)
*/
public void removeListener(LayoutListener listener) {
listeners.remove(listener);
}
// /*
// * (non-Javadoc)
// *
// * @see
// * org.graphstream.ui.layout.Layout#removeListener(org.graphstream.ui.layout
// * .LayoutListener)
// */
// public void removeListener(LayoutListener listener) {
// listeners.remove(listener);
// }
/*
* (non-Javadoc)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment