public void setup(Statistics statistics) { this.graphDistance = (GraphDistance) statistics; if (panel != null) { panel.setDirected(graphDistance.isDirected()); panel.doNormalize(graphDistance.isNormalized()); } }
public void unsetup() { if (panel != null) { graphDistance.setDirected(panel.isDirected()); graphDistance.setNormalized(panel.normalize()); } panel = null; graphDistance = null; }