|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.ece.iacl.jist.pipeline.JistPreferences
public class JistPreferences
MAPS preferences.
Nested Class Summary | |
---|---|
static class |
JistPreferences.NamingConvention
The Enum NamingConvention. |
static interface |
JistPreferences.PreferenceListener
Listens for changes in preferences. |
Field Summary | |
---|---|
protected int |
debugLevel
Debug Level |
static java.lang.String[] |
debugLevels
The debug level location. |
protected int |
defaultMaxProcesses
Default maximum number of simultaneous processes. |
protected int |
defaultMemory
Default maximum heap size. |
protected java.util.Vector<java.io.File> |
fileHistory
history of recent layout files. |
static float |
JIST_VERSION_ID
Numeric revision for algorithm compatibility |
protected java.lang.String |
jre
location of java executable. |
protected java.io.File |
lastDirectory
last directory inspected. |
static int |
lgFontSize
|
protected java.util.LinkedList<JistPreferences.PreferenceListener> |
listeners
Listeners that react to changes in preferences. |
protected int |
maxHistorySize
maximum number of files to display in history. |
static int |
mdFontSize
|
protected JistPreferences.NamingConvention |
namingConvention
namingConvention. |
protected java.lang.String |
preferredextension
Preferred output extension for CubicVolumeReaderWriter. |
static int |
smFontSize
|
protected boolean |
useGridEngine
Use Grid Engine. |
Constructor Summary | |
---|---|
JistPreferences()
Default constructor. |
Method Summary | |
---|---|
void |
addFileToHistory(java.io.File f)
Add file to history. |
void |
addListener(JistPreferences.PreferenceListener listener)
Add listener. |
static java.io.File |
askForJavaExecutable(java.io.File oldDir)
Open file chooser to select directory. |
static JistPreferences |
fromXML(java.lang.String str)
Reconstruct algorithm from string. |
int |
getDebugLevel()
Gets the preferred level for debug output: 0 = Error messages only 1 = Major events and warnings ... |
static java.lang.String |
getDefaultLayoutExtension()
Gets the default layout extension. |
int |
getDefaultMaxProcesses()
Get default maximum number of processes. |
int |
getDefaultMemory()
Get default maximum heap size. |
static java.lang.String |
getDefaultModuleExtension()
Gets the default module extension. |
static java.lang.String |
getDefaultPreferencesFileName()
Gets the default preferences file name. |
java.util.Vector<java.io.File> |
getFileHistory()
Get list of recently accessed files. |
java.lang.String |
getJre()
Get JRE executable. |
java.io.File |
getLastDirectory()
Get last directory entered. |
int |
getLgFontSize()
|
int |
getMaxHistorySize()
Get maximum history size. |
int |
getMdFontSize()
|
JistPreferences.NamingConvention |
getNamingConvention()
Gets the naming convention. |
static JistPreferences |
getPreferences()
Singleton method to get User Interface. |
java.lang.String |
getPreferredExtension()
Get preferred extension (for CubicVolumeReaderWriter). |
int |
getSmFontSize()
|
static boolean |
hasPreferences()
Returns true if MAPS has preferences already. |
boolean |
isUseGridEngine()
Checks if is use grid engine. |
static void |
loadPreferences()
Load existing modules and add them to the tree. |
static void |
loadPreferences(boolean silentFailure)
Load existing modules and add them to the tree. |
static JistPreferences |
read(java.io.File f)
Read preferences from file. |
void |
removeListener(JistPreferences.PreferenceListener listener)
Remove listener. |
static boolean |
savePreferences()
Save preferences along library path as getDefaultPreferencesFileName(). |
void |
setDebugLevel(int selected)
|
void |
setDefaultMaxProcesses(int defaultMaxProcesses)
Set default maximum number of processes. |
void |
setDefaultMemory(int defaultMemory)
Set default maximum heap size. |
void |
setJre(java.lang.String jre)
Set JRE executable. |
void |
setLastDirectory(java.io.File lastDirectory)
Set last directory entered. |
void |
setLgFontSize(int selected)
|
void |
setMdFontSize(int selected)
|
void |
setNamingConvention(JistPreferences.NamingConvention namingConvention)
Sets the naming convention. |
static void |
setPreferences(JistPreferences prefs)
Set singleton reference to preferences. |
void |
setPreferredExtension(java.lang.String prefext)
Set the preferred extension (for CubicVolumeReaderWriter). |
void |
setSmFontSize(int selected)
|
void |
setUseGridEngine(boolean useGridEngine)
Sets the use grid engine. |
java.lang.String |
toXML()
Serialize class as XML. |
boolean |
write(java.io.File f)
Write algorithm to file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final float JIST_VERSION_ID
protected int defaultMemory
protected int defaultMaxProcesses
protected java.util.Vector<java.io.File> fileHistory
protected java.io.File lastDirectory
protected int maxHistorySize
protected java.lang.String jre
protected java.lang.String preferredextension
protected boolean useGridEngine
protected JistPreferences.NamingConvention namingConvention
protected int debugLevel
public static int smFontSize
public static int mdFontSize
public static int lgFontSize
protected transient java.util.LinkedList<JistPreferences.PreferenceListener> listeners
public static final java.lang.String[] debugLevels
Constructor Detail |
---|
public JistPreferences()
Method Detail |
---|
public static java.lang.String getDefaultLayoutExtension()
public static java.lang.String getDefaultModuleExtension()
public static java.lang.String getDefaultPreferencesFileName()
public static java.io.File askForJavaExecutable(java.io.File oldDir)
oldDir
- the old directory
public static JistPreferences fromXML(java.lang.String str)
str
- the string
public static JistPreferences getPreferences()
public static boolean hasPreferences()
public static void loadPreferences()
public static void loadPreferences(boolean silentFailure)
public static JistPreferences read(java.io.File f)
f
- the file
public static boolean savePreferences()
public static void setPreferences(JistPreferences prefs)
prefs
- preferencespublic JistPreferences.NamingConvention getNamingConvention()
public void setNamingConvention(JistPreferences.NamingConvention namingConvention)
namingConvention
- the new naming conventionpublic boolean isUseGridEngine()
public void setUseGridEngine(boolean useGridEngine)
useGridEngine
- the new use grid enginepublic void addFileToHistory(java.io.File f)
f
- filepublic void addListener(JistPreferences.PreferenceListener listener)
listener
- the listenerpublic int getDefaultMaxProcesses()
public int getDefaultMemory()
public java.util.Vector<java.io.File> getFileHistory()
public java.lang.String getJre()
public java.lang.String getPreferredExtension()
public java.io.File getLastDirectory()
public int getMaxHistorySize()
public void removeListener(JistPreferences.PreferenceListener listener)
listener
- the listenerpublic void setDefaultMaxProcesses(int defaultMaxProcesses)
defaultMaxProcesses
- maximum number of processespublic void setDefaultMemory(int defaultMemory)
defaultMemory
- heap size in MBpublic void setJre(java.lang.String jre)
jre
- the jrepublic void setPreferredExtension(java.lang.String prefext)
prefext
- the preferred extensionpublic void setLastDirectory(java.io.File lastDirectory)
lastDirectory
- the last directorypublic java.lang.String toXML()
public boolean write(java.io.File f)
f
- output file
public int getDebugLevel()
public void setDebugLevel(int selected)
public int getSmFontSize()
public int getMdFontSize()
public int getLgFontSize()
public void setSmFontSize(int selected)
public void setMdFontSize(int selected)
public void setLgFontSize(int selected)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |