jgnash
Class Main

java.lang.Object
  extended by jgnash.Main

public final class Main
extends java.lang.Object

This is the main entry point for the jGnash application.

Version:
$Id$
Author:
Craig Cavanaugh

Nested Class Summary
private  class Main.ExportPreferencesThread
           
 
Field Summary
private static int DEFAULT_PORT
           
private static boolean enableEDT
           
private  java.io.File file
           
private  java.lang.String host
           
private  boolean opengl
           
private  java.lang.String password
           
private  int port
           
private  boolean portable
           
private  java.lang.String portableFile
           
private  java.io.File server
           
private  boolean uninstall
           
private  java.lang.String user
           
static java.lang.String VERSION
           
 
Constructor Summary
private Main(java.lang.String[] args)
           
 
Method Summary
static boolean checkEDT()
           
private static boolean checkJVMVersion()
           
private static void configureLogging()
           
private static void deleteUserPreferences()
           
private static void enableAntialiasing()
           
private static float getJVMVersion()
           
private  java.io.File getPreferenceFile()
           
private  void importPreferences()
          Import jGnash preferences from the file system
static boolean isSystemOSX()
          Determines if running on OSX
static boolean isSystemWindows()
           
static void main(java.lang.String[] args)
          main method
private static void setupNetworking()
          Setup the networking to handle authentication requests and work http proxies correctly
static void shutDown()
           
 
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

opengl

private boolean opengl

uninstall

private boolean uninstall

portable

private boolean portable

portableFile

private java.lang.String portableFile

port

private int port

host

private java.lang.String host

file

private java.io.File file

server

private java.io.File server

user

private java.lang.String user

password

private java.lang.String password

enableEDT

private static boolean enableEDT

DEFAULT_PORT

private static final int DEFAULT_PORT
See Also:
Constant Field Values
Constructor Detail

Main

private Main(java.lang.String[] args)
Method Detail

checkEDT

public static boolean checkEDT()

checkJVMVersion

private static boolean checkJVMVersion()

getJVMVersion

private static float getJVMVersion()

shutDown

public static void shutDown()

isSystemOSX

public static boolean isSystemOSX()
Determines if running on OSX

Returns:
true if running on OSX

isSystemWindows

public static boolean isSystemWindows()

configureLogging

private static void configureLogging()

enableAntialiasing

private static void enableAntialiasing()

main

public static void main(java.lang.String[] args)
main method

Parameters:
args - command line arguments

setupNetworking

private static void setupNetworking()
Setup the networking to handle authentication requests and work http proxies correctly


deleteUserPreferences

private static void deleteUserPreferences()

getPreferenceFile

private java.io.File getPreferenceFile()

importPreferences

private void importPreferences()
                        throws java.io.FileNotFoundException
Import jGnash preferences from the file system

Throws:
java.io.FileNotFoundException - thrown if defined preferences file cannot be found