org.stellarium
Class Main

java.lang.Object
  extended by org.stellarium.Main

public class Main
extends java.lang.Object

Stellarium for Java main program.

Version:
0.8.2
Author:
Jérême Beau
See Also:
main.cpp

Field Summary
static java.lang.String APP_NAME
           
static java.lang.String[] BAD_COMMAND_MESSAGE
           
static java.lang.String[] USAGE_TEXT
           
static java.lang.String VERSION
           
 
Constructor Summary
Main()
           
 
Method Summary
private static void badCommandLine(java.lang.String[] argv)
           
(package private) static java.lang.Integer checkCommandLine(java.lang.String[] argv)
          Check command line arguments
(package private) static void drawIntro()
          Print a beautiful console logo !!
static void main(java.lang.String[] argv)
          Main stellarium procedure
(package private) static boolean setDirectories(java.util.List<java.lang.String> args)
          Set the data, textures, and config directories in core.global : test the default installation dir and try to find the files somewhere else if not found there This enable to launch stellarium from the local directory without installing it
(package private) static void usage(java.lang.String[] argv)
          Display stellarium usage in the console
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final java.lang.String VERSION
See Also:
Constant Field Values

APP_NAME

public static final java.lang.String APP_NAME
See Also:
Constant Field Values

USAGE_TEXT

public static final java.lang.String[] USAGE_TEXT

BAD_COMMAND_MESSAGE

public static final java.lang.String[] BAD_COMMAND_MESSAGE
Constructor Detail

Main

public Main()
Method Detail

drawIntro

static void drawIntro()
Print a beautiful console logo !!


usage

static void usage(java.lang.String[] argv)
Display stellarium usage in the console

Parameters:
argv -

checkCommandLine

static java.lang.Integer checkCommandLine(java.lang.String[] argv)
Check command line arguments

Parameters:
argv - The command lines arguments to check
Returns:
The code to exit with, if application termination is required, or null of no exit is required

badCommandLine

private static void badCommandLine(java.lang.String[] argv)

setDirectories

static boolean setDirectories(java.util.List<java.lang.String> args)
                       throws java.io.IOException
Set the data, textures, and config directories in core.global : test the default installation dir and try to find the files somewhere else if not found there This enable to launch stellarium from the local directory without installing it

Throws:
java.io.IOException

main

public static void main(java.lang.String[] argv)
Main stellarium procedure