traceccgui
Class TraceccController

java.lang.Object
  extended by traceccgui.TraceccController

public class TraceccController
extends java.lang.Object


Field Summary
protected  dirk_krause.tools.DkTool dkt
          Application controller.
static java.lang.String[] kw
           
protected  boolean[] myBool
          Boolean settings.
protected  int[] myInt
          Integer settings.
static java.lang.String[] myPkBool
          Names to save boolean settings.
static java.lang.String[] myPkInt
          Names to save integer settings.
static java.lang.String[] myPkStr
          Names to save string settings.
protected  java.lang.String[] myStr
          String settings.
static java.lang.String[] outputSuffixes
           
static java.lang.String[] suffixesToHandle
          Suffixes the Tracecc GUI can handle.
 
Constructor Summary
TraceccController(dirk_krause.tools.DkTool new_dkt)
          Constructor.
 
Method Summary
 TraceccCommandSet createListOfCommands()
          Create command set which is run by the main window.
 boolean getBool(int i)
          Retrieve a boolean setting.
protected  void getData(boolean[] b, int[] i, java.lang.String[] s)
          Retrieve all settings bundled.
 java.lang.String getStr(int i)
          Retrieve string setting.
protected  void putData(boolean[] b, int[] i, java.lang.String[] s)
          Set bundled settings.
 void saveSettings()
          Save settings before the application exits.
 void setDirectory(java.lang.String dn)
          Set directory to process.
 void setStr(int i, java.lang.String v)
          Set a string setting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dkt

protected dirk_krause.tools.DkTool dkt
Application controller.


myBool

protected boolean[] myBool
Boolean settings.


myInt

protected int[] myInt
Integer settings.


myStr

protected java.lang.String[] myStr
String settings.


myPkBool

public static final java.lang.String[] myPkBool
Names to save boolean settings.


myPkInt

public static final java.lang.String[] myPkInt
Names to save integer settings.


myPkStr

public static final java.lang.String[] myPkStr
Names to save string settings.


suffixesToHandle

public static final java.lang.String[] suffixesToHandle
Suffixes the Tracecc GUI can handle.


outputSuffixes

public static final java.lang.String[] outputSuffixes

kw

public static final java.lang.String[] kw
Constructor Detail

TraceccController

public TraceccController(dirk_krause.tools.DkTool new_dkt)
Constructor.

Parameters:
new_dkt - New application controller.
Method Detail

saveSettings

public void saveSettings()
Save settings before the application exits.


setDirectory

public void setDirectory(java.lang.String dn)
Set directory to process.

Parameters:
dn - Directory name.

getBool

public boolean getBool(int i)
Retrieve a boolean setting.

Parameters:
i - Index of setting to retrieve.
Returns:
Setting value.

getStr

public java.lang.String getStr(int i)
Retrieve string setting.

Parameters:
i - Index of setting to retrieve.
Returns:
Setting value.

setStr

public void setStr(int i,
                   java.lang.String v)
Set a string setting.

Parameters:
i - Index.
v - New value.

getData

protected void getData(boolean[] b,
                       int[] i,
                       java.lang.String[] s)
Retrieve all settings bundled.

Parameters:
b - Boolean results array (may be null).
i - Integer results array (may be null).
s - String results array (may be null).

putData

protected void putData(boolean[] b,
                       int[] i,
                       java.lang.String[] s)
Set bundled settings.

Parameters:
b - Boolean settings (may be null).
i - Integer settings (may be null).
s - String settings (may be null).

createListOfCommands

public TraceccCommandSet createListOfCommands()
Create command set which is run by the main window.

Returns:
Command set (may be null).