JEphem site
tig API
Build classes

jephem
Class GlobalVar

java.lang.Object
  |
  +--jephem.GlobalVar
All Implemented Interfaces:
GeneralConstants

public class GlobalVar
extends java.lang.Object
implements GeneralConstants

Contains static methods to get / set the global variables of JEphem application.
'Global variables' are variables that can be needed by several classes, and loaded once for all.


Field Summary
static int BUNDLE_ASTRO
          Constant designating the bundle where the astronomy internationalized strings are stored.
static int BUNDLE_GENERAL
          Constant designating the bundle where the general internationalized strings are stored.
static int BUNDLE_MENUS
          Constant designating the bundle where the menu internationalized strings are stored.
static int DIR_APP
          Constant designating the application directory (myPath/JEphem).
static int DIR_DATA
          Constant designating the directory where application data are stored (myPath/JEphem/data).
static int DIR_LANG
          Constant designating the directory where internationalized strings are stored (myPath/JEphem/data/lang).
static int DIR_PREFS
          Constant designating the directory where user preferences are stored (myPath/JEphem/data/prefs).
static int DIR_SRC
          Constant designating the directory where sources are stored (myPath/JEphem/java/src).
 
Fields inherited from interface tig.GeneralConstants
BLANK, FS, LS, NO_SPECIF, SPACE
 
Constructor Summary
GlobalVar()
           
 
Method Summary
static java.lang.String getAstroEngine()
          Returns the implementation used to perform the astronomical computations.
static AstroPrefs getAstroPrefs()
          Returns the astronomical preferences of JEphem.
static TigBundle getBundle(int whichBundle)
          Returns the Bundle containing internationalized general astronomical terms.
static java.lang.String getDirectory(int whichDir)
          Returns one of the application directories.
static javax.swing.JEditorPane getHTMLPane()
          Returns the HTML display area of the application.
static JEphemPrefs getJEphemPrefs()
          Returns the general preferences of JEphem.
static java.lang.String getLang()
          Returns the current language, using ISO-639 language code (lower case two-letter code).
static java.util.Locale getLocale()
          Returns the current Locale.
static MainFrame getMainFrame()
          Returns the top-level frame of the Application.
static javax.swing.JLabel getStatus()
          Returns the status bar (generally on bottom of main window).
static java.lang.String getStatusText()
          Returns the text of the status bar (generally on bottom of main window).
static void reloadData()
          Reloads global variables depending on the properties.
static void setHTMLPane(javax.swing.JEditorPane htmlPane)
          This method is public as a implementation side effect.
static void setStatusText(java.lang.String newStatusText)
          Permits to modify the text of the status bar (generally on bottom of main window).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUNDLE_ASTRO

public static final int BUNDLE_ASTRO
Constant designating the bundle where the astronomy internationalized strings are stored.

See Also:
Constant Field Values

BUNDLE_GENERAL

public static final int BUNDLE_GENERAL
Constant designating the bundle where the general internationalized strings are stored.

See Also:
Constant Field Values

BUNDLE_MENUS

public static final int BUNDLE_MENUS
Constant designating the bundle where the menu internationalized strings are stored.

See Also:
Constant Field Values

DIR_APP

public static final int DIR_APP
Constant designating the application directory (myPath/JEphem).

See Also:
Constant Field Values

DIR_DATA

public static final int DIR_DATA
Constant designating the directory where application data are stored (myPath/JEphem/data).

See Also:
Constant Field Values

DIR_LANG

public static final int DIR_LANG
Constant designating the directory where internationalized strings are stored (myPath/JEphem/data/lang).

See Also:
Constant Field Values

DIR_PREFS

public static final int DIR_PREFS
Constant designating the directory where user preferences are stored (myPath/JEphem/data/prefs).

See Also:
Constant Field Values

DIR_SRC

public static final int DIR_SRC
Constant designating the directory where sources are stored (myPath/JEphem/java/src).

See Also:
Constant Field Values
Constructor Detail

GlobalVar

public GlobalVar()
Method Detail

getAstroEngine

public static java.lang.String getAstroEngine()
Returns the implementation used to perform the astronomical computations.


getAstroPrefs

public static AstroPrefs getAstroPrefs()
Returns the astronomical preferences of JEphem.


getBundle

public static TigBundle getBundle(int whichBundle)
Returns the Bundle containing internationalized general astronomical terms.

Parameters:
whichBundle - One of the available ressource bundle, expressed with one of the BUNDLE_XXX constants.

getDirectory

public static java.lang.String getDirectory(int whichDir)
Returns one of the application directories.
Warning : directory names are returned WITHOUT the trailing path separator.

Parameters:
whichDir - One of the available directories, expressed with one of the DIR_XXX constants.

getHTMLPane

public static javax.swing.JEditorPane getHTMLPane()
Returns the HTML display area of the application.


getJEphemPrefs

public static JEphemPrefs getJEphemPrefs()
Returns the general preferences of JEphem.


getLang

public static java.lang.String getLang()
Returns the current language, using ISO-639 language code (lower case two-letter code).
Facility method (current language can be accessed through getJEphemPrefs()).


getLocale

public static java.util.Locale getLocale()
Returns the current Locale.
Facility method (current Locale can be accessed through getJEphemPrefs()).


getMainFrame

public static MainFrame getMainFrame()
Returns the top-level frame of the Application.


getStatus

public static javax.swing.JLabel getStatus()
Returns the status bar (generally on bottom of main window).


getStatusText

public static java.lang.String getStatusText()
Returns the text of the status bar (generally on bottom of main window).


reloadData

public static void reloadData()
Reloads global variables depending on the properties.


setHTMLPane

public static void setHTMLPane(javax.swing.JEditorPane htmlPane)
This method is public as a implementation side effect. Sets the HTML display area of the application.


setStatusText

public static void setStatusText(java.lang.String newStatusText)
Permits to modify the text of the status bar (generally on bottom of main window).


JEphem site
tig API
Build classes