Skip to content
Snippets Groups Projects
Commit 8436388f authored by Tim Molter's avatar Tim Molter
Browse files

JavaDocs

parent 04fc13f4
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,12 @@ import java.util.Iterator;
*/
public class CSVExporter {
/**
* Write a Chart series as rows in a CSV file.
*
* @param series
* @param path2Dir - ex. "./path/to/directory/" *make sure you have the '/' on the end
*/
public static void writeCSVRows(Series series, String path2Dir) {
File newFile = new File(path2Dir + series.getName() + ".csv");
......@@ -48,6 +54,12 @@ public class CSVExporter {
}
}
/**
* Write a Chart series as columns in a CSV file.
*
* @param series
* @param path2Dir - ex. "./path/to/directory/" *make sure you have the '/' on the end
*/
public static void writeCSVColumns(Series series, String path2Dir) {
File newFile = new File(path2Dir + series.getName() + ".csv");
......@@ -81,6 +93,11 @@ public class CSVExporter {
}
/**
* @param collection
* @param separator
* @return
*/
private static String join(Collection<? extends Object> collection, String separator) {
if (collection == null) {
......
......@@ -92,6 +92,12 @@ public class CSVImporter {
return getChartFromCSVDir(path2Directory, dataOrientation, width, height, null);
}
/**
* Get the series's data from a file
*
* @param csvFile
* @return
*/
private static String[] getSeriesDataFromCSVRows(File csvFile) {
String[] xAndYData = new String[2];
......@@ -119,6 +125,10 @@ public class CSVImporter {
return xAndYData;
}
/**
* @param csvFile
* @return
*/
private static String[] getSeriesDataFromCSVColumns(File csvFile) {
String[] xAndYData = new String[2];
......@@ -149,6 +159,10 @@ public class CSVImporter {
return xAndYData;
}
/**
* @param stringData
* @return
*/
private static List<Number> getAxisData(String stringData) {
List<Number> axisData = new ArrayList<Number>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment