public class PlotFormat
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static double[][] |
fromCSV(java.lang.String data)
Parses data according to the standard CSV format
and stores the extracted values in the returned table.
|
static double[][] |
fromCustomizedFormat(java.lang.String betweenValues,
java.lang.String endLine,
java.lang.String data)
Parses data according to a user defined format and stores the
extracted values in the returned table.
|
static double[][] |
fromGNUPlot(java.lang.String data)
Parses data according to the standard GNUPlot format and stores
the extracted values in the returned table.
|
static java.lang.String |
toCSV(double[]... data)
Stores data tables data into a String
with format CSV (comma-separated value tabular data).
|
static java.lang.String |
toCSV(XYSeriesCollection data)
Stores series collection data into a String
with format CSV (comma-separated value tabular data).
|
static java.lang.String |
toCustomizedFormat(java.lang.String heading,
java.lang.String footer,
java.lang.String betweenValues,
java.lang.String endLine,
int precision,
double[]... data)
Stores data tables data into a String with customized format.
|
static java.lang.String |
toCustomizedFormat(java.lang.String heading,
java.lang.String footer,
java.lang.String betweenValues,
java.lang.String endLine,
int precision,
XYSeriesCollection data)
Stores data tables data into a String
with customized format from an XYSeriesCollection variable.
|
static java.lang.String |
toGNUPlot(double[]... data)
Stores data tables data into a String,
with format understandable by GNUPlot.
|
static java.lang.String |
toGNUPlot(XYSeriesCollection data)
Stores series collection data into a String,
with format understandable by GNUPlot.
|
public static double[][] fromGNUPlot(java.lang.String data)
data - String to parse.java.lang.IllegalArgumentException - if each line of the input String doesn't share the same number of valuespublic static double[][] fromCSV(java.lang.String data)
data - String to parse.java.lang.IllegalArgumentException - if each line of the input String doesn't share the same number of valuespublic static double[][] fromCustomizedFormat(java.lang.String betweenValues,
java.lang.String endLine,
java.lang.String data)
Pattern (package java.util.regex).betweenValues - String which separates values on the same line.endLine - String which separates lines.data - String to parse.java.lang.IllegalArgumentException - if each line of the input String doesn't share the same number of valuespublic static java.lang.String toGNUPlot(double[]... data)
data - data tables.public static java.lang.String toGNUPlot(XYSeriesCollection data)
data - data tables.public static java.lang.String toCSV(double[]... data)
data - data tables.public static java.lang.String toCSV(XYSeriesCollection data)
data - data tables.public static java.lang.String toCustomizedFormat(java.lang.String heading,
java.lang.String footer,
java.lang.String betweenValues,
java.lang.String endLine,
int precision,
double[]... data)
heading - head of the returned String.footer - end of the returned String.betweenValues - String which separates values on the same line.endLine - String which separates lines.data - data tables.public static java.lang.String toCustomizedFormat(java.lang.String heading,
java.lang.String footer,
java.lang.String betweenValues,
java.lang.String endLine,
int precision,
XYSeriesCollection data)
heading - head of the returned String.footer - end of the returned String.betweenValues - String which separates values on the same line.endLine - String which separates lines.data - data tables.To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.