« Quick Start » : différence entre les versions
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
In this Quick Start page, we assume that the user has already used the [http://genius.cnes.fr GENIUS] library. Thus, he can refer to its own [http://genius.cnes.fr/index.php/Quick_Start Quick start] page. Of course, we also assume that he is familiar with the <font color=#FF8C00>Java</font> language as well as the [http://www.eclipse.org/ Eclipse] environment. | In this Quick Start page, we assume that the user has already used the [http://genius.cnes.fr GENIUS] library. Thus, he can refer to its own [http://genius.cnes.fr/index.php/Quick_Start Quick start] page. Of course, we also assume that he is familiar with the <font color=#FF8C00>Java</font> language as well as the [http://www.eclipse.org/ Eclipse] environment. | ||
== Create the test class == | |||
So, first, we have to create a class extending from the [http://genius.cnes.fr/index.php/GFrame_and_GPanel GPanel] one with a main method ... | So, first, we have to create a class extending from the [http://genius.cnes.fr/index.php/GFrame_and_GPanel GPanel] one with a main method ... |
Version du 10 novembre 2018 à 18:21
In this Quick Start page, we assume that the user has already used the GENIUS library. Thus, he can refer to its own Quick start page. Of course, we also assume that he is familiar with the Java language as well as the Eclipse environment.
Create the test class
So, first, we have to create a class extending from the GPanel one with a main method ...
Then, you will have to add unimplemented methods display() and generic()...
Eclipse helps you to do it very quickly by clicking on the error sign:
You obtain this:
Then, create an GPOrbit object and decide to display it using the put() method:
Create a frame using the GFrame class ...
Do not forget to call to the PATRIUS_DATASET (to get for example information about time scales)
And when you will execute, you will obtain this: