コード例 #1
0
  private static SidescanParser getParser() {
    if (file != null) {
      return null; // FIXME for now only directories are supported
    } else if (dir != null) {

      file = new File(dir.getAbsolutePath() + "/Data.jsf");
      if (file.exists()) {
        return new JsfSidescanParser(file);
      }

      // Next cases should be file = new File(...) and check for existence
      // TODO

      // Defaults to using IMC (in case of sidescan data existence)
      if (source != null) {
        if (LogUtils.hasIMCSidescan(source)) return new ImcSidescanParser(source);
        else if (source.getLog("SidescanPing")
            != null) { // Legacy IMC message. We still have a lot of data requests for this format,
                       // so be it...
          return new LegacyImcSidescanParser(source);
        }
      }
    }
    return null;
  }
コード例 #2
0
  @Override
  public JComponent getComponent(IMraLogGroup source, double timestep) {
    table = new JTable(model);

    table.setTableHeader(null);

    model.map = LogUtils.generateStatistics(source);
    add(new JScrollPane(table), "w 100%, h 100%");

    return this;
  }