MCPcopy Create free account
hub / github.com/RealTimeGenomics/rtg-tools / getCommand

Method getCommand

src/main/java/com/rtg/graph/RocPlot.java:464–488  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 2

configureUIMethod · 0.95
actionPerformedMethod · 0.80

Calls 15

setInitialZoomMethod · 0.95
getZoomMethod · 0.95
getSettingsAsFlagsMethod · 0.95
isSelectedMethod · 0.95
dumbQuoteMethod · 0.95
getPathMethod · 0.95
getLabelMethod · 0.95
setPaletteNameMethod · 0.80
setPrecisionRecallMethod · 0.80
setShowScoresMethod · 0.80
setLineWidthMethod · 0.80
getTextMethod · 0.80

Tested by

no test coverage detected