Package edu.cnu.mdi.splot.io
Class PlotIO
java.lang.Object
edu.cnu.mdi.splot.io.PlotIO
Read/write PlotSpec JSON files.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PlotCanvasloadCanvas(File file) Convenience: load a plot file and build a fresh PlotCanvas.static PlotSpecLoad a PlotSpec JSON file.static voidsave(PlotCanvas canvas, File file) Save a plot canvas to JSON.
-
Method Details
-
save
Save a plot canvas to JSON. Safe to call from any thread.- Throws:
IOException
-
loadSpec
Load a PlotSpec JSON file.- Throws:
IOException
-
loadCanvas
Convenience: load a plot file and build a fresh PlotCanvas.Ensures construction and population occur on the EDT to avoid queued-drain behaviors.
- Throws:
IOExceptionPlotDataException
-