()
| 462 | } |
| 463 | |
| 464 | private String getCommand() { |
| 465 | // Create a settings corresponding to the current plot |
| 466 | final RocPlotSettings rocPlotSettings = new RocPlotSettings() |
| 467 | .setTitle(mTitleEntry.getText()) |
| 468 | .setLineWidth(mLineWidth) |
| 469 | .setShowScores(mShowScores) |
| 470 | .setPrecisionRecall(mGraphType.getSelectedItem().equals(PRECISION_SENSITIVITY)) |
| 471 | .setPaletteName(mPaletteName); |
| 472 | if (mZoomPP.isZoomed()) { |
| 473 | final ExternalZoomGraph2D graph = (ExternalZoomGraph2D) mZoomPP.getGraph(); |
| 474 | if (graph != null) { |
| 475 | rocPlotSettings.setInitialZoom(graph.getZoom()); |
| 476 | } |
| 477 | } |
| 478 | |
| 479 | // Convert to equivalent command |
| 480 | final StringBuilder sb = new StringBuilder(rocPlotSettings.getSettingsAsFlags()); |
| 481 | for (final Component component : mRocLinesPanel.getComponents()) { |
| 482 | final RocLinePanel cp = (RocLinePanel) component; |
| 483 | if (cp.isSelected()) { |
| 484 | sb.append(" --").append(RocPlotCli.CURVE_FLAG).append(" ").append(StringUtils.dumbQuote(cp.getPath() + "=" + cp.getLabel())); |
| 485 | } |
| 486 | } |
| 487 | return sb.toString(); |
| 488 | } |
| 489 | |
| 490 | // Adds the notion of painting a current crosshair position |
| 491 | @JumbleIgnore |
no test coverage detected