Skip to content

Commit 1104ddb

Browse files
authored
Merge pull request #136 from CEGRcode/javadoc
Added Javadoc to scriptmanager
2 parents 348835a + 4b49087 commit 1104ddb

File tree

246 files changed

+4389
-474
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

246 files changed

+4389
-474
lines changed

.classpath

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@
2929
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/>
3030
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
3131
<classpathentry kind="output" path="bin/default"/>
32-
</classpath>
32+
</classpath>

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
/.gradle/
44
/build/
55
.metadata
6-
.idea
6+
.idea

.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
<nature>org.eclipse.jdt.core.javanature</nature>
2121
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
2222
</natures>
23-
</projectDescription>
23+
</projectDescription>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
connection.project.dir=
2-
eclipse.preferences.version=1
2+
eclipse.preferences.version=1

gradlew

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,4 +241,4 @@ eval "set -- $(
241241
tr '\n' ' '
242242
)" '"$@"'
243243

244-
exec "$JAVACMD" "$@"
244+
exec "$JAVACMD" "$@"

gradlew.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,4 @@ exit /b %EXIT_CODE%
8989
:mainEnd
9090
if "%OS%"=="Windows_NT" endlocal
9191

92-
:omega
92+
:omega

src/main/java/scriptmanager/charts/CompositePlot.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
*/
2929
public class CompositePlot {
3030

31+
/**
32+
* Creates a new CompositePlot object
33+
*/
34+
public CompositePlot(){}
35+
3136
/**
3237
* Create a two-line plot (sense and antisense composites) with a title and
3338
* custom colors. There are no checks on input array lengths (line plot

src/main/java/scriptmanager/charts/Histogram.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class Histogram {
3131
* @param y the list of frequencies
3232
* @param x the list of values that have frequencies (same len as y)
3333
* @return the bar-style histogram chart
34-
* @throws IOException
34+
* @throws IOException Invalid file or parameters
3535
*/
3636
public static ChartPanel createBarChart(double[] y, int[] x) throws IOException {
3737
final XYSeries series = new XYSeries("Frequency");
@@ -54,7 +54,7 @@ public static ChartPanel createBarChart(double[] y, int[] x) throws IOException
5454
* @param x the list of values that have frequencies (same len as y)
5555
* @param output the path of the PNG file to save the chart image to
5656
* @return the bar-style histogram chart
57-
* @throws IOException
57+
* @throws IOException Invalid file or parameters
5858
*/
5959
public static ChartPanel createBarChart(double[] y, int[] x, File output) throws IOException {
6060
final XYSeries series = new XYSeries("Frequency");
@@ -82,7 +82,7 @@ public static ChartPanel createBarChart(double[] y, int[] x, File output) throws
8282
*
8383
* @param dataset the formatted dataset to plot
8484
* @return the formatted and configured histogram chart
85-
* @throws IOException
85+
* @throws IOException Invalid file or parameters
8686
*/
8787
private static JFreeChart createChart(IntervalXYDataset dataset) throws IOException {
8888
final JFreeChart chart = ChartFactory.createXYBarChart(

src/main/java/scriptmanager/charts/LineChart.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class LineChart {
3131
* @param y the duplication rate values
3232
* @param x the domain values
3333
* @return the line plot chart
34-
* @throws IOException
34+
* @throws IOException Invalid file or parameters
3535
*/
3636
public static ChartPanel createLineChart(ArrayList<Double> y, String[] x) throws IOException {
3737
DefaultCategoryDataset dataset = new DefaultCategoryDataset();
@@ -53,7 +53,7 @@ public static ChartPanel createLineChart(ArrayList<Double> y, String[] x) throws
5353
* @param y2 the genome duplication rate values
5454
* @param x the domain values
5555
* @return the line plot chart
56-
* @throws IOException
56+
* @throws IOException Invalid file or parameters
5757
*/
5858
public static ChartPanel createLineChart(ArrayList<Double> y1, ArrayList<Double> y2, String[] x) throws IOException {
5959
DefaultCategoryDataset dataset = new DefaultCategoryDataset();
@@ -75,7 +75,7 @@ public static ChartPanel createLineChart(ArrayList<Double> y1, ArrayList<Double>
7575
* @param x the domain values
7676
* @param output the path of the PNG file to save the chart image to
7777
* @return the line plot chart
78-
* @throws IOException
78+
* @throws IOException Invalid file or parameters
7979
*/
8080
public static ChartPanel createLineChart(ArrayList<Double> y, String[] x, File output) throws IOException {
8181
DefaultCategoryDataset dataset = new DefaultCategoryDataset();
@@ -102,7 +102,7 @@ public static ChartPanel createLineChart(ArrayList<Double> y, String[] x, File o
102102
*
103103
* @param dataset the formatted dataset to plot
104104
* @return the line plot chart
105-
* @throws IOException
105+
* @throws IOException Invalid file or parameters
106106
*/
107107
private static JFreeChart createChart(CategoryDataset dataset) throws IOException {
108108
final JFreeChart chart = ChartFactory.createLineChart(
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* Collection of classes containing static methods to generate Components with a
3+
* variety of visualizations for data. Used by graphical interfaces
4+
* (`window_interface`) and figure making scripts in
5+
* {@link scriptmanager.scripts.BAM_Format_Converter}
6+
*/
7+
package scriptmanager.charts;

0 commit comments

Comments
 (0)