public static SkeletonPlotAlgorithm fromString(String str) {
      for (SkeletonPlotAlgorithm val : SkeletonPlotAlgorithm.values()) {
        if (val.toString().equals(str)) return val;
      }

      return null;
    }
    public static String[] allValuesAsArray() {
      ArrayList<String> arr = new ArrayList<String>();
      for (SkeletonPlotAlgorithm val : SkeletonPlotAlgorithm.values()) {
        arr.add(val.toString());
      }

      return arr.toArray(new String[0]);
    }