adding experiment result

This commit is contained in:
Manindra Moharana
2013-03-30 02:23:46 +05:30
parent 9f0e4b7276
commit cb3f60ed7f
10 changed files with 2471 additions and 582 deletions

View File

@@ -187,11 +187,12 @@ public class ErrorBar extends JPanel {
// Each problem.getSourceLine() will have an extra line added
// because of
// class declaration in the beginning
// class declaration in the beginning as well as default imports
for (Problem problem : problems) {
if (problem.tabIndex == currentTab) {
// Ratio of error line to total lines
float y = problem.lineNumber / ((float) totalLines);
float y = (problem.lineNumber - errorCheckerService.defaultImportsOffset)
/ ((float) totalLines);
// Ratio multiplied by height of the error bar
y *= fheight - 15; // -15 is just a vertical offset
errorPoints.add(new ErrorMarker(problem, (int) y,