Globals
Class GS

java.lang.Object
  extended by Globals.GS

public class GS
extends java.lang.Object

Collection of static methods and fields. Be aware, con() methods can be slow.


Field Summary
static boolean deb
           
static java.lang.String defaultFontName
           
static java.lang.String defaultMonospacedFontName
           
static java.lang.String[] mainLog
          Cyclic log for program main events
static boolean mainLogFilled
           
static int mainLogPos
           
 
Constructor Summary
GS()
           
 
Method Summary
static void com(java.lang.String s)
          Console multistring.
static void con(java.lang.String s)
          Wrapper to system console
static void con(java.lang.String[] s)
          Wrapper to system console The same as con but input is string's array
static void con(java.lang.String[] s, int lastIndexToPrint)
          Wrapper to system console The same as con but input is string's array and resticted by lastIndexToPrint.
static void dcon(java.lang.String s)
          Debug string s to console
static void dcon(java.lang.String[] s)
          Debug array of strings s to console
static void logToMain(java.lang.String s)
           
static java.lang.String scF(double d, int len)
          Outputs len-significant mantissa digits.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

deb

public static boolean deb

defaultFontName

public static java.lang.String defaultFontName

defaultMonospacedFontName

public static java.lang.String defaultMonospacedFontName

mainLog

public static java.lang.String[] mainLog
Cyclic log for program main events


mainLogPos

public static int mainLogPos

mainLogFilled

public static boolean mainLogFilled
Constructor Detail

GS

public GS()
Method Detail

logToMain

public static void logToMain(java.lang.String s)

con

public static void con(java.lang.String s)
Wrapper to system console


con

public static void con(java.lang.String[] s)
Wrapper to system console The same as con but input is string's array


con

public static void con(java.lang.String[] s,
                       int lastIndexToPrint)
Wrapper to system console The same as con but input is string's array and resticted by lastIndexToPrint.


com

public static void com(java.lang.String s)
Console multistring. String s can have \n inside. It will be tokenized by \n and printed line by line.


dcon

public static void dcon(java.lang.String s)
Debug string s to console


dcon

public static void dcon(java.lang.String[] s)
Debug array of strings s to console


scF

public static java.lang.String scF(double d,
                                   int len)
Outputs len-significant mantissa digits. This proc is horrible. But I don't have time to search Java docs.