JEphem Presentation Ephemeris SkyMap Curve Informatic Library Download Glossary About | |
JEphem Informatic trail The non-astro classes | |
The non-astro classes |
GlobalVar.java
get
methods :
getXxxDir()
getXxxPrefs()
.getBundle(int whichBundle)
.data/prefs/
directory in '.pref
' files.
java.util.properties
. This class permits to easily retrieve valus from a property file.
myKey = myValue
load(new FileInputStream(new File("myFile.prefs")))
myValue
" can be retrieved through getProperty("myKey")
tig.TigProperties
, to add some functionalities :
get/setIntProperty()
, get/setDoubleProperty()
, get/setBooleanProperty()
, get/setIntArrayProperty()
, to retrieve properties of various types without having to convert from String
java.util.Properties
), the get
methods can be called with default values.
public static int getIntConstant(String value, String className)
, permits to write clearer property files.
jephem.astro.spacetime.SpaceConstants
to identify frames.
currentFrame=2
.
currentFrame=FRAME_ECLIPTIC
getIntConstant("currentFrame", jephem.astro.spacetime.SpaceConstants);
.
FRAME_ECLIPTIC
in SpaceConstants
without modifying the property file.
jephem.gui.NewEphemerisDialog
.
TigProperties
: _lastValues
. It contains the information that permit to rebuild the GUI class with the last values entered. A static boolean, _lastValuesLoaded
, indicates if _lastValues
have already been loaded.
_lastValues
is static, it is kept into memory during the program execution, so instances of the class can be deleted and instantiated, the same variable will keep the last values.
initFields()
is called. If _lastValuesLoaded == false
, the values are loaded from the file.
storeLastValues()
is then called. _lastValues
is then rebuilt from the contents of the GUI components, and stored in the file.
jephem.astro.vsop87.VSOP87.setDataPath()
permits to specify where the data are stored, without relying on jephem.astro.AstroPrefs
.getXXXEnglishName
methods, to be able to produce understandable results without the