|
JEphem site tig API Build classes |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jephem.GlobalVar
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 |
public static final int BUNDLE_ASTRO
public static final int BUNDLE_GENERAL
public static final int BUNDLE_MENUS
public static final int DIR_APP
public static final int DIR_DATA
public static final int DIR_LANG
public static final int DIR_PREFS
public static final int DIR_SRC
Constructor Detail |
public GlobalVar()
Method Detail |
public static java.lang.String getAstroEngine()
public static AstroPrefs getAstroPrefs()
public static TigBundle getBundle(int whichBundle)
whichBundle
- One of the available ressource bundle, expressed with one of the BUNDLE_XXX
constants.public static java.lang.String getDirectory(int whichDir)
whichDir
- One of the available directories, expressed with one of the DIR_XXX
constants.public static javax.swing.JEditorPane getHTMLPane()
public static JEphemPrefs getJEphemPrefs()
public static java.lang.String getLang()
getJEphemPrefs()
).
public static java.util.Locale getLocale()
Locale
.
getJEphemPrefs()
).
public static MainFrame getMainFrame()
public static javax.swing.JLabel getStatus()
public static java.lang.String getStatusText()
public static void reloadData()
public static void setHTMLPane(javax.swing.JEditorPane htmlPane)
public static void setStatusText(java.lang.String newStatusText)
|
JEphem site tig API Build classes |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |