Package org.esa.snap.ui.diagram
Class DiagramGraphIO
- java.lang.Object
-
- org.esa.snap.ui.diagram.DiagramGraphIO
-
public class DiagramGraphIO extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static SnapFileFilter
CSV_FILE_FILTER
static String
DIAGRAM_GRAPH_IO_LAST_DIR_KEY
static SnapFileFilter
SPECTRA_CSV_FILE_FILTER
-
Constructor Summary
Constructors Constructor Description DiagramGraphIO()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
equalXValues(DiagramGraph g1, DiagramGraph g2)
static DiagramGraph[]
readGraphs(Component parentComponent, String title, SnapFileFilter[] fileFilters, PropertyMap preferences)
static DiagramGraph[]
readGraphs(Reader reader)
static double[]
toDoubles(String[] textRecord)
static void
writeGraphs(Component parentComponent, String title, SnapFileFilter[] fileFilters, PropertyMap preferences, DiagramGraph[] graphs)
static void
writeGraphs(DiagramGraph[] graphs, Writer writer)
-
-
-
Field Detail
-
CSV_FILE_FILTER
public static final SnapFileFilter CSV_FILE_FILTER
-
SPECTRA_CSV_FILE_FILTER
public static final SnapFileFilter SPECTRA_CSV_FILE_FILTER
-
DIAGRAM_GRAPH_IO_LAST_DIR_KEY
public static final String DIAGRAM_GRAPH_IO_LAST_DIR_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
readGraphs
public static DiagramGraph[] readGraphs(Reader reader) throws IOException
- Throws:
IOException
-
writeGraphs
public static void writeGraphs(DiagramGraph[] graphs, Writer writer) throws IOException
- Throws:
IOException
-
toDoubles
public static double[] toDoubles(String[] textRecord) throws IOException
- Throws:
IOException
-
equalXValues
public static boolean equalXValues(DiagramGraph g1, DiagramGraph g2)
-
readGraphs
public static DiagramGraph[] readGraphs(Component parentComponent, String title, SnapFileFilter[] fileFilters, PropertyMap preferences)
-
writeGraphs
public static void writeGraphs(Component parentComponent, String title, SnapFileFilter[] fileFilters, PropertyMap preferences, DiagramGraph[] graphs)
-
-