Пример #1
0
 public void setup(Statistics statistics) {
   this.graphDistance = (GraphDistance) statistics;
   if (panel != null) {
     panel.setDirected(graphDistance.isDirected());
     panel.doNormalize(graphDistance.isNormalized());
   }
 }
Пример #2
0
 public void unsetup() {
   if (panel != null) {
     graphDistance.setDirected(panel.isDirected());
     graphDistance.setNormalized(panel.normalize());
   }
   panel = null;
   graphDistance = null;
 }