« Quick Start » : différence entre les versions
Ligne 12 : | Ligne 12 : | ||
[[File:QuickStart2.png]] | [[File:QuickStart2.png]] | ||
[http://www.eclipse.org/ Eclipse] helps you to do it very quickly by clicking on the error sign: | [http://www.eclipse.org/ Eclipse] helps you to do it very quickly by clicking on the error sign: | ||
Ligne 18 : | Ligne 17 : | ||
[[File:QuickStart3.png]] | [[File:QuickStart3.png]] | ||
You obtain this: | |||
You will obtain this: | |||
[[File:QuickStart4.png]] | [[File:QuickStart4.png]] | ||
Then, create | == Create a GPOrbit object == | ||
Then, create a [{{PathCurrentJavaDoc}}/fr/cnes/genopus/orbits/GPOrbit.html GPOrbit] object and decide to display it using the <font color=#4169E1>put()</font> method: | |||
[[File:QuickStart5.png]] | [[File:QuickStart5.png]] | ||
Create a frame using the [http://genius.cnes.fr/index.php/GFrame_and_GPanel GFrame] class ... | == Create a Frame == | ||
Create a frame using the [http://genius.cnes.fr/index.php/GFrame_and_GPanel GFrame] class to put out test panel Inside ... | |||
[[File:QuickStart6.png]] | [[File:QuickStart6.png]] | ||
Do not forget to call to the PATRIUS_DATASET (to get for example information about time scales) | == Link with PATRIUS_DATASET == | ||
Do not forget to call to the PATRIUS_DATASET (to get for example information about time scales) else you will get eroor messages. | |||
[[File:QuickStart7.png]] | [[File:QuickStart7.png]] | ||
== See your widget ! == | |||
And when you will execute, you will obtain this: | And when you will execute, you will obtain this: | ||
[[File:QuickStart8.png]] | [[File:QuickStart8.png]] |
Version du 10 novembre 2018 à 18:26
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 ...
Adding display() and generic() methods
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 will obtain this:
Create a GPOrbit object
Then, create a GPOrbit object and decide to display it using the put() method:
Create a Frame
Create a frame using the GFrame class to put out test panel Inside ...
Link with PATRIUS_DATASET
Do not forget to call to the PATRIUS_DATASET (to get for example information about time scales) else you will get eroor messages.
See your widget !
And when you will execute, you will obtain this: