Esempio n. 1
0
 public void setup(Statistics statistics) {
   this.graphDistance = (GraphDistance) statistics;
   if (panel != null) {
     panel.setDirected(graphDistance.isDirected());
     panel.doNormalize(graphDistance.isNormalized());
   }
 }
Esempio n. 2
0
 public void unsetup() {
   if (panel != null) {
     graphDistance.setDirected(panel.isDirected());
     graphDistance.setNormalized(panel.normalize());
   }
   panel = null;
   graphDistance = null;
 }
Esempio n. 3
0
 public String getValue() {
   DecimalFormat df = new DecimalFormat("###.###");
   return "" + df.format(graphDistance.getDiameter());
 }
 public String getValue() {
   DecimalFormat df = new DecimalFormat("###.###");
   return "" + df.format(graphDistance.getPathLength());
 }