|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfrog.Log
public final class Log
Special class for logging all data to the command prompt, JTextAreas in a GUI, and a chosen plain-text log file.
| Field Summary | |
|---|---|
static boolean |
logClassifier
Specifies whether to log any out requests from a Classifier object |
static boolean |
logDevices
Specifies whether to log any out requests from a Device object |
static boolean |
logFilters
Specifies whether to log any out requests from a Filter object |
static boolean |
logFROG
Specifies whether to log any out requests from the FROG class |
static boolean |
logModel
Specifies whether to log any out requests from an GestureModel object |
static boolean |
logQuantizer
Specifies whether to log any out requests from a Quantizer object |
static boolean |
logSession
Specifies whether to log any out requests from the Session class |
static boolean |
logSystemOut
Specifies whether messages should be logged to System.out.println |
static boolean |
logXYZ
Specifies whether the raw accelerations going through Devices should be logged |
| Method Summary | |
|---|---|
static void |
addTextArea(JTextArea txtArea)
Gives the Log a JTextArea to append messages to |
static void |
close()
Free all system resources currently held by Log |
static String |
getTimestamp()
The current time as a String for the file writes |
static void |
out(Classifier source,
String message)
Attempts to log data to the text file and/or the JTextArea associated with this Log. |
static void |
out(Device source,
String message)
Attempts to log data to the text file and/or the JTextArea associated with this Log. |
static void |
out(Filter source,
String message)
Attempts to log data to the text file and/or the JTextArea associated with this Log. |
static void |
out(Frog source,
String message)
Attempts to log data to the text file and/or the JTextArea associated with this Log. |
static void |
out(GestureModel source,
String message)
Attempts to log data to the text file and/or the JTextArea associated with this Log. |
static void |
out(Object source,
String message)
Attempts to log data to the text file and/or the JTextArea associated with this Log. |
static void |
out(Quantizer source,
String message)
Attempts to log data to the text file and/or the JTextArea associated with this Log. |
static void |
out(Session source,
String message)
Attempts to log data to the text file and/or the JTextArea associated with this Log. |
static void |
resetConsoles()
Resets all JTextAreas associated with this log to be completely empty. |
static void |
setLogFile(File file)
Attempts to create and then write to the file specified. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean logModel
public static boolean logClassifier
public static boolean logQuantizer
public static boolean logFilters
public static boolean logDevices
public static boolean logFROG
public static boolean logSession
public static boolean logSystemOut
public static boolean logXYZ
| Method Detail |
|---|
public static void close()
throws IOException
IOException
public static void out(Quantizer source,
String message)
source - the Quantizer object calling this methodmessage - the message to show the user
public static void out(GestureModel source,
String message)
source - the GestureModel object calling this methodmessage - the message to show the user
public static void out(Classifier source,
String message)
source - the Classifier object calling this methodmessage - the message to show the user
public static void out(Filter source,
String message)
source - the Filter object calling this methodmessage - the message to show the user
public static void out(Frog source,
String message)
source - the Filter object calling this methodmessage - the message to show the user
public static void out(Session source,
String message)
source - the Filter object calling this methodmessage - the message to show the user
public static void out(Device source,
String message)
source - the Device object calling this methodmessage - the message to show the user
public static void out(Object source,
String message)
source - the object calling this methodmessage - the message to show the user
public static void setLogFile(File file)
throws IOException
file - the file to write log data to
IOException - If the file cannot be created or written topublic static void addTextArea(JTextArea txtArea)
txtArea - text area in your GUI that you want log messages sent topublic static String getTimestamp()
public static void resetConsoles()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||