« GPlotPanel » : différence entre les versions

De GENIUS
Aller à la navigation Aller à la recherche
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 2 : Ligne 2 :


Using this widget is very simple as you have just to instantiate and then display it. To instantiate it, you must give at least (for the "'''Madona'''" files):
Using this widget is very simple as you have just to instantiate and then display it. To instantiate it, you must give at least (for the "'''Madona'''" files):
* the prefix of the files you want to read
* the prefix of the files you want to read
* the suffix of the files you want to read
* the suffix of the files you want to read
* a comment giving a description of this kind of files
* a comment giving a description of this kind of files
* the maximum number of detached plot windows. If greater than 0 a "+" button wille be displayed in order to allow to display other plots in detached panels
* the maximum number of detached plot windows. If greater than 0 a "+" button wille be displayed in order to allow to display other plots in detached panels


Nevertheless, you have the possibility to specify which kind of files you will have to consider, adding an additionnal parameter:
Nevertheless, you have the possibility to specify which kind of files you will have to consider, adding an additionnal parameter:

Version du 26 octobre 2017 à 13:04

There is another higher level widget GPlotPanel] allowing to plot data stored in a file with the "Madona" or SQLite formats given format as described here.

Using this widget is very simple as you have just to instantiate and then display it. To instantiate it, you must give at least (for the "Madona" files):

  • the prefix of the files you want to read
  • the suffix of the files you want to read
  • a comment giving a description of this kind of files
  • the maximum number of detached plot windows. If greater than 0 a "+" button wille be displayed in order to allow to display other plots in detached panels

Nevertheless, you have the possibility to specify which kind of files you will have to consider, adding an additionnal parameter:

In the following example, we will check for EPH_* files (no specific suffix).

    GPlotPanel plots = new GPlotPanel("EPH", "", "Ephemeris file", 0, true);
    
    ...

    public void display() throws GException {
        put(plots);
    }
}

This panel will then appear ...

GPlotPanel1.jpg


After selecting a file ...

GPlotPanel2.jpg


We may have something like that ...

GPlotPanel3.jpg

Return to the introduction ↑ Go to the next page →