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

Method loadFile

src/main/java/com/rtg/graph/RocPlot.java:786–797  ·  view source on GitHub ↗
(final File f, final String name, ProgressDelegate progress)

Source from the content-addressed store, hash-verified

784 }
785
786 private void loadFile(final File f, final String name, ProgressDelegate progress) throws IOException {
787 mFileChooserParent = f.getParentFile();
788 final String path = f.getAbsolutePath();
789 if (mRocLinesPanel.plotOrder().contains(path)) {
790 mProgressBar.setString("This file has already been loaded");
791 } else {
792 final DataBundle data = ParseRocFile.loadStream(progress, FileUtils.createInputStream(f, false), f.getAbsolutePath(), mInterpolate);
793 data.setWeighted(mWeighted);
794 data.setTitle(f, name);
795 addLine(path, data);
796 }
797 }
798
799 private void addLine(String path, DataBundle dataBundle) {
800 final Color initialColor = mPalette[++mColorCounter % mPalette.length];

Callers 2

loadDataMethod · 0.95
actionPerformedMethod · 0.45

Calls 7

loadStreamMethod · 0.95
createInputStreamMethod · 0.95
setWeightedMethod · 0.95
setTitleMethod · 0.95
addLineMethod · 0.95
plotOrderMethod · 0.80
containsMethod · 0.65

Tested by

no test coverage detected