-
Notifications
You must be signed in to change notification settings - Fork 0
LineFit Structure
When LineFit is run, it begins with the main function inside of the LineFit.class file. This then creates a new LineFit object which is the frame in which all the data of LineFit is displayed. As part of this, it creates a GraphArea, which is responsible for all the data and variable required to draw the graph either as an export or on the LineFit panel, and holds onto its reference. DataSets can then be created and are stored within a JComboBox called "setSelector" which is held on to in both the LineFit object and the GraphArea object. Inside of DataSet, there are DataColumns which each represent a column in the DataSet's data table. In addition, each DataSet will have a FitAlgorithmStrategy which it uses to calculate the linear fit for the data inside the DataSet. The FitAlgorithmStrategy also holds on to the DataSet it goes with to make operations simpler. The final major piece is the SystemIOHandler class, which serves as a static class connected to the instance of LineFit that handles any IO operation and exceptions that could be encountered in LineFit. Other than these, most of these classes are smaller and serve a more specific purpose which is each detailed within the JavaDocs of the project.