org.rosuda.util
Class Global

java.lang.Object
  extended by org.rosuda.util.Global

public class Global
extends java.lang.Object

Global is a "static" class for general global-scope flags, such as DEBUG


Field Summary
static int AppType
          application type. so far 0=stand-alone, other types are set by wrappers.
static int AT_applet
          AppType contstant: applet (set by applet wrapper)
static int AT_standalone
          AppType contstant: stand-alone application
static int DEBUG
          global debug level
static boolean forceAntiAliasing
          if set to true all graphic routines should set the anti-aliasing hint
static boolean informLoader
          global loader verbosity flag
static boolean printWarnings
          global warning flag
static int PROFILE
          global profiling level
static boolean useAquaBg
          use Aqua-style background parameter equivalent: --with-aqua
 
Constructor Summary
Global()
           
 
Method Summary
static java.lang.String[] parseArguments(java.lang.String[] argv)
          parse command line arguments and set global flags correspondingly
static int runtimeWarning(java.lang.String w)
          display run-time warning (if --warn flag is enabled)
static void setDebugLevel(int level)
           
static void setProfilingLevel(int level)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static int DEBUG
global debug level


PROFILE

public static int PROFILE
global profiling level


printWarnings

public static boolean printWarnings
global warning flag


informLoader

public static boolean informLoader
global loader verbosity flag


useAquaBg

public static boolean useAquaBg
use Aqua-style background parameter equivalent: --with-aqua


forceAntiAliasing

public static boolean forceAntiAliasing
if set to true all graphic routines should set the anti-aliasing hint


AT_standalone

public static final int AT_standalone
AppType contstant: stand-alone application

See Also:
Constant Field Values

AT_applet

public static final int AT_applet
AppType contstant: applet (set by applet wrapper)

See Also:
Constant Field Values

AppType

public static int AppType
application type. so far 0=stand-alone, other types are set by wrappers. See AT_xxx

Constructor Detail

Global

public Global()
Method Detail

runtimeWarning

public static int runtimeWarning(java.lang.String w)
display run-time warning (if --warn flag is enabled)

Parameters:
w - warning to display
Returns:
unused so far (returns -1)

parseArguments

public static java.lang.String[] parseArguments(java.lang.String[] argv)
parse command line arguments and set global flags correspondingly

Parameters:
argv - arguments as supplied by the main() method
Returns:
remaining arguments which were not recognized

setDebugLevel

public static void setDebugLevel(int level)

setProfilingLevel

public static void setProfilingLevel(int level)