|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJTP.Main
public class Main
Class from which JTP
is launched.
Field Summary | |
---|---|
protected static String |
cpMessage
Copyright message |
protected static Color |
progressColor
Colour for loading progress overlay on splash screen |
protected static int |
progressHeight
How much of the loading screen (height wise) should be filled with the overlay colour |
protected static String |
version
Version string |
Constructor Summary | |
---|---|
Main()
|
Method Summary | |
---|---|
protected static boolean |
centered(JFrame frame)
Tries to center the frame is possible. |
static boolean |
develModeOn()
Indicates whether development mode has been turned on. |
static boolean |
inAppletMode()
Queries whether the game is running as an applet. |
static void |
main(String[] args)
Launch method. |
static void |
setAppletMode()
Used by MainApplet class to indicate the game is running
in applet mode. |
protected static void |
setCustomLookAndFeel()
Tries to apply custom look and feel. |
protected static boolean |
setProperty(String name,
String value)
Sets a system property gracefully. |
protected static String |
stackTraceToString(Exception e)
Formats traceback stack by inserting line breaks. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String version
protected static final String cpMessage
protected static final Color progressColor
protected static final int progressHeight
Constructor Detail |
---|
public Main()
Method Detail |
---|
public static void main(String[] args)
-q
/--quality
- Use antialiasing and high
quality rendering everywhere-f
/--fast
- Use no antialiasing and low
quality rendering for maximum performanceJTP.Development
flag
set to true
.
protected static void setCustomLookAndFeel()
protected static String stackTraceToString(Exception e)
protected static boolean setProperty(String name, String value)
name
- name of the property to setvalue
- value of the property to set
true
if the property was successfully set,
false
otherwise.protected static boolean centered(JFrame frame)
public static boolean develModeOn()
JTP.Development=true
.
true
if development mode is on.public static void setAppletMode()
MainApplet
class to indicate the game is running
in applet mode. (So e.g. Exit button is not shown in the main menu and
the progress file is saved to a meaningful location given the game is
running through a browser plugin
public static boolean inAppletMode()
setAppletMode
.)
true
if the game is running in applet mode,
false
otherwise.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |