|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Util
The Util class contains common utility functions used by the rest of MAExplorer. These include, several string-numeric converters, messages to the three message lines in the top page as well as special string array parsing, font string name to int size, ratio color setting, zoom toggle mapping, etc.
This work was produced by Peter Lemkin of the National Cancer Institute, an agency of the United States Government. As a work of the United States Government there is no associated copyright. It is offered as open source software under the Mozilla Public License (version 1.1) subject to the limitations noted in the accompanying LEGAL file. This notice must be included with the code. The MAExplorer Mozilla and Legal files are available on http://maexplorer.sourceforge.net/.
Field Summary | |
private static boolean |
appendHistoryFlag
Flag: set if appending command history to historyFile |
private static boolean |
appendMsgFlag
Flag: set if appending msg to historyFile |
(package private) static int |
cmdHistoryNbr
Command history number gets incremented each time a command is logged. |
(package private) static float |
defaultFloat
default float value for conversions |
(package private) static int |
defaultInt
default int value for conversions |
private static FileIO |
fio
link to global FileIO instance |
private static java.lang.String |
historyFileName
Full path name of history file if enabled. |
(package private) static boolean |
historyIsVisibleFlag
History window visibility flag |
(package private) static LogTextFrame |
historyTextFrame
Log History text frame. |
(package private) static MAExplorer |
mae
link to global MAExplorer instance |
private static java.lang.String |
msgFileName
Full path name of msg file if enabled. |
(package private) static boolean |
msgIsVisibleFlag
Message window visibility flag |
(package private) static LogTextFrame |
msgTextFrame
Log msg text frames. |
(package private) static java.lang.String |
mStatus
Copy of last ShowMsg() printed |
Constructor Summary | |
(package private) |
Util(MAExplorer mae)
Util() - constructor for Utility package |
Method Summary | |
(package private) static java.lang.String |
addQuotesIfSpace(java.lang.String str)
addQuotesIfSpace() - add "..." around string if it contains a space but don't add quotes if it already has a leading ". |
(package private) static boolean |
checkImagesDirExists()
checkImagesDirExists() - check if images directory exists |
(package private) static java.lang.String |
chkDirFinalSeparator(java.lang.String sPath,
java.lang.String fS)
chkDirFinalSeparator() - make dir path end in fileSeparator. |
(package private) void |
cleanup()
cleanup() - cleanup global static allocated variables in this class If statics are added later to this class, then set them to null here. |
(package private) static java.lang.String |
cvd2s(double v,
int precision)
cvd2s() - convert double to string with precision # of digits If precision > 0 then limit # of digits in fraction |
(package private) static java.lang.String |
cvf2s(float v,
int precision)
cvf2s() - convert float to string with precision # of digits. |
(package private) static java.lang.String |
cvFileNameWithMod(java.lang.String fileName,
java.lang.String mod)
cvFileNameWithMod() - insert modifier string before file extension |
(package private) static int |
cvFontS2I(java.lang.String fontSizeStr)
cvFontS2I() - convert font size "8Ppt", "10pt", "12pt", or "14pt" to int |
(package private) static java.lang.String |
cvLongToHex(long data)
cvLongToHex() - convert long to hex string |
(package private) static java.lang.String[] |
cvs2Array(java.lang.String str,
int maxExpected,
java.lang.String delimiterChr)
cvs2Array() - cvt arg list "1,4,3,6,..." to "," - delim String[]. |
(package private) static double |
cvs2d(java.lang.String str)
cvs2d() - convert String to double |
(package private) static double |
cvs2d(java.lang.String str,
double defaultValue)
cvs2d() - convert String to double with default value |
(package private) static float |
cvs2f(java.lang.String str)
cvs2f() - convert String to float |
(package private) static float |
cvs2f(java.lang.String str,
float defaultValue)
cvs2f() - convert String to float with default value |
(package private) static int |
cvs2i(java.lang.String str)
cvs2i() - convert String to int |
(package private) static int |
cvs2i(java.lang.String str,
int defaultValue)
cvs2i() - convert String to int with default value |
(package private) static int[] |
cvs2iArray(java.lang.String str,
int maxExpected,
java.lang.String delimChr)
cvs2iArray() - convert String arg list "1,4,3,6,..." to int[] |
(package private) static java.lang.String |
cvtBackslash2Fwdslash(java.lang.String sInput)
cvtBackslash2Fwdslash() - convert '\\' to '/' in the string |
(package private) static boolean |
cvtEnvPaths2Properties()
cvtEnvPaths2Properties() - get all system ENV variables and set them as separate Java properties so we can get them individually from System.getProperty(var) calls. |
(package private) static java.lang.String |
cvtSpacesToUnderscores(java.lang.String str)
cvtSpacesToUnderscores() - replace spaces and other illegal file name characters with '_' chars to make file names highly portable. |
(package private) static java.lang.String |
cvtStrArrayToStr(java.lang.String[] strData)
cvtStrArrayToStr() - create(String) from String[] array with "\n" |
(package private) static java.lang.String |
cvtStrArrayToStr(java.lang.String[] strData,
int len)
cvtStrArrayToStr() - create(String) from String[] array with "\n" w/len Fast method creates a tmp Character [] of required size and stuffs it, then converts it to a string at one time instead of repeatedly using concat(i.e. |
(package private) static java.lang.String |
cvtStrArrayToStr(java.lang.String[] strData,
java.lang.String delim,
java.lang.String terminator)
cvtStrArrayToDelimStr() - create delimited(String) from String[] array with terminator as last character. |
(package private) static java.lang.String |
cvtValueToStars(float val,
float valMax,
int maxStars,
boolean rightFillFlag)
cvtValueToStars() - cvt val in[0:valMax] to "****"+" " string where the maximum # of stars for v==vMax is specified. |
(package private) static java.lang.String |
dateStr()
dateStr() - return a new Date string of the current day and time |
(package private) boolean |
displayPDF(java.lang.String pdfFile)
displayPDF() - Display PDF file in adobe, for use in stand-alone. |
(package private) boolean |
displayURL(java.lang.String url)
displayURL() - Display URL file in system Web browser, for use in stand-alone mode. |
(package private) static int |
findIndexForKey(java.lang.String[] data,
java.lang.String key)
findIndexForKey() - lookup index of key in data[]. |
(package private) static java.lang.String |
getCurDateStr()
getCurDateStr() - return date string in the format of YYMMDDHHMMSS. |
(package private) static java.lang.String |
getRatioStr()
getRatioStr() - get "F1/F2", "Cy3/Cy5" or "Cy5/Cy3", etc. |
(package private) static int |
nextZoomMag(int val,
int maxVal)
nextZoomMag() - modulo 1X, 2X, 5X, 10X, 20X, 50X, 100X, 200X, 500X, 1000X |
(package private) static void |
popupAlertMsg(java.lang.String title,
java.lang.String msg,
int nRows,
int nCols)
popupAlertMsg() - popup alert message in a scrollable text area. |
(package private) static void |
popupAlertMsgLine(java.lang.String msg)
popupAlertMsgLine) - popup ALERT message line and then timeout. |
(package private) static boolean |
popupDryrotMsgsAndQuit()
popupDryrotMsgsAndQuit() - if any dryrot, tell us and die... |
(package private) boolean |
popupImageOfHPsample(MaHybridSample ms)
popupImageOfHPsample() - popup image of current gene in Web browser. |
(package private) void |
popupViewer(java.net.URL urlBase,
java.lang.String fileIn,
java.lang.String windowName)
popupViewer() - popup a web browser for the help HTML file. |
(package private) static java.lang.String |
prepForFileURL(java.lang.String str)
prepForFileURL() - map "\" to "/" chars in string to use for URL |
(package private) static void |
printCurrentMemoryUsage(java.lang.String msg)
printCurrentMemoryUsage() - print: %free, total memory usage and timeOfday |
(package private) java.lang.String |
rmvDupIMAGEstr(java.lang.String str)
rmvDupIMAGEstr() - remove duplicate "IMAGE:xxxx:" prefix from string. |
static java.lang.String |
rmvFinalSubDirectory(java.lang.String dirStr,
java.lang.String optDir,
boolean chkMAEtreeFlag)
rmvFinalSubDirectory() - remove trailing ".../dir/" if it exists otherwise return original string. |
(package private) java.lang.String |
rmvIMAGEstr(java.lang.String str)
rmvIMAGEstr() - - remove "IMAGE:" prefix from string. |
(package private) static java.lang.String |
rmvRtnChars(java.lang.String str)
rmvRtnChars() - remove return chars. |
(package private) static void |
saveCmdHistory(java.lang.String msg)
saveCmdHistory() - print msg to showMsg1() and also save in command history and message logs if logging is enabled as well. |
(package private) static void |
saveCmdHistory(java.lang.String msg,
boolean doShowMsgFlag)
saveCmdHistory() - save msg in command history and message logs if logging is enabled. |
(package private) static void |
saveMsgHistory(java.lang.String msg,
boolean doShowMsgFlag)
saveMsgHistory() - save msg in message logs if logging is enabled. |
(package private) static boolean |
setHistoryFileLogging(java.lang.String histFileName,
boolean isVisibleFlag,
boolean appendLogDataFlag)
setHistoryFileLogging() - set up history file logging. |
(package private) boolean |
setHistoryLoggingState(boolean isVisibleFlag,
boolean appendHistFlag)
setHistoryLoggingState() - set the history logging state on/off. |
(package private) static void |
setLogHistoryWindowVisible(boolean isVisibleFlag)
setLogHistoryWindowVisible() - make the popup window visible or invisible |
(package private) static void |
setLogMsgWindowVisible(boolean isVisibleFlag)
setLogMsgWindowVisible() - make the popup window visible or invisible |
(package private) static boolean |
setMsgFileLogging(java.lang.String msgFileName,
boolean isVisibleFlag,
boolean appendMsgDataFlag)
setMsgFileLogging() - set up message file logging. |
(package private) boolean |
setMsgLoggingState(boolean isVisibleFlag,
boolean appndMsgFlag)
setMsgLoggingState() - set the messages logging state on/off. |
(package private) static boolean |
setPseudoArrayColorSpectrumMap(java.awt.Color[] spectrumColor,
float[] spectrumRange)
setPseudoArrayColorSpectrumMap() - set pseudoarray color map spectrum data. |
(package private) static boolean |
setPseudoArrayRatioColorMap(java.awt.Color[] ratioColor,
float[] ratioRange,
int maxColors)
setPseudoArrayRatioColorMap() - set pseudoarray ratios color map data. |
(package private) static java.awt.Color |
setRatioColor(float ratio,
java.awt.Color[] ratioColor,
float[] ratioRange,
int maxColors)
setRatioColor() - map data ratio to color in current color scheme Color is in(ratioMin : ratioMax]. |
(package private) static boolean |
setupColorRatioRange(float delta,
java.awt.Color[] ratioColor,
float[] ratioRange,
int maxColors,
boolean useNegRangeFlag)
setupColorRatioRange() - setup ratio color map iteratively w/spacing delta. |
(package private) static boolean |
setupColorSpectrumRange(java.awt.Color[] ratioColor,
float[] ratioRange,
int maxColors,
boolean redIsZeroFlag)
setupColorSpectrumRange() - setup spectrumcolor map data range [0.0:1.0]. |
(package private) static void |
showFeatures(java.lang.String genbankData,
java.lang.String genomicData)
showFeatures() - print features to txtField2 and txtField3 |
(package private) static void |
showMsg(java.lang.String msg)
showMsg() - print msg to showStatus() and to txtField1 |
(package private) static void |
showMsg1(java.lang.String msg,
boolean saveTitleFlag,
java.awt.Color fg,
java.awt.Color bg)
showMsg1() - print msg to showStatus() and to txtField1 and change color |
(package private) static void |
showMsg1(java.lang.String msg,
java.awt.Color fg,
java.awt.Color bg)
showMsg1() - print msg to showStatus() and to txtField1 and change color |
(package private) static void |
showMsg2(java.lang.String msg2)
showMsg2() - print msg2 to txtField2 |
(package private) static void |
showMsg2(java.lang.String msg2,
java.awt.Color fg,
java.awt.Color bg)
showMsg2() - print msg2 to txtField2 and change color |
(package private) static void |
showMsg3(java.lang.String msg3)
showMsg3() - print msg3 to txtField3 |
(package private) static void |
showMsg3(java.lang.String msg3,
java.awt.Color fg,
java.awt.Color bg)
showMsg3() - print msg3 to txtField3 ALSO: side effect of setting cursor to WAIT_CURSOR if the(fg,bg) is not(black,white). |
(package private) static void |
sleepMsec(int sleepMsec)
sleepMsec() - sleep nMsec where nMsec must be >= 0 milliseconds. |
(package private) static java.lang.String |
timeStr()
timeStr() - return a new daytime HH:MM:SS string of the current time. |
Methods inherited from class java.lang.Object |
|
Field Detail |
static MAExplorer mae
private static FileIO fio
static java.lang.String mStatus
static int defaultInt
static float defaultFloat
static LogTextFrame msgTextFrame
static boolean msgIsVisibleFlag
private static java.lang.String msgFileName
private static boolean appendMsgFlag
static int cmdHistoryNbr
static LogTextFrame historyTextFrame
static boolean historyIsVisibleFlag
private static java.lang.String historyFileName
private static boolean appendHistoryFlag
Constructor Detail |
Util(MAExplorer mae)
mae
- is MAExplorer instanceMethod Detail |
static boolean setMsgFileLogging(java.lang.String msgFileName, boolean isVisibleFlag, boolean appendMsgDataFlag)
historyFileName
- is the name of the history file excluding the pathappendLogDataFlag
- indicates that history accumulates between viewing sessions.LogTextFrame
static boolean setHistoryFileLogging(java.lang.String histFileName, boolean isVisibleFlag, boolean appendLogDataFlag)
historyFileName
- is the name of the history file excluding the pathisVisibleFlag
- makes the history window visible.appendLogDataFlag
- indicates that history accumulates between viewing sessions.LogTextFrame
boolean setMsgLoggingState(boolean isVisibleFlag, boolean appndMsgFlag)
isVisibleFlag
- makes the message logging window visible.appndMsgFlag
- indicates that message logging accumulates between viewing sessions.setLogMsgWindowVisible(boolean)
boolean setHistoryLoggingState(boolean isVisibleFlag, boolean appendHistFlag)
isVisibleFlag
- makes the history window visible.appendLogDataFlag
- indicates that history accumulates between viewing sessions.setLogHistoryWindowVisible(boolean)
static void setLogMsgWindowVisible(boolean isVisibleFlag)
isVisibleFlag
- makes the history window visible.LogTextFrame.setLogWindowVisible(boolean)
,
setMsgFileLogging(java.lang.String, boolean, boolean)
static void setLogHistoryWindowVisible(boolean isVisibleFlag)
isVisibleFlag
- makes the message logging window visible.LogTextFrame.setLogWindowVisible(boolean)
,
setHistoryFileLogging(java.lang.String, boolean, boolean)
static void saveCmdHistory(java.lang.String msg)
msg
- is the command message to logsaveCmdHistory(java.lang.String)
static void saveCmdHistory(java.lang.String msg, boolean doShowMsgFlag)
msg
- is the command message to logdoShowMsgFlag
- if set is set, then print msg to showMsg1() as well.LogTextFrame.appendLogLn(java.lang.String)
,
showMsg(java.lang.String)
static void saveMsgHistory(java.lang.String msg, boolean doShowMsgFlag)
msg
- is the command message to logisVisibleFlag
- makes the message logging window visible.LogTextFrame.appendLogLn(java.lang.String)
,
showMsg(java.lang.String)
static void showMsg(java.lang.String msg)
msg
- is the command message to showApplet.showStatus(java.lang.String)
,
showMsg1(java.lang.String, java.awt.Color, java.awt.Color)
static void showMsg1(java.lang.String msg, java.awt.Color fg, java.awt.Color bg)
msg
- is the command message to showfg
- is foreground colorbg
- is background colorApplet.showStatus(java.lang.String)
,
showMsg1(java.lang.String, java.awt.Color, java.awt.Color)
static void showMsg1(java.lang.String msg, boolean saveTitleFlag, java.awt.Color fg, java.awt.Color bg)
msg
- is the command message to showsaveTitleFlag
- to save the title(not used)fg
- is foreground colorbg
- is background colorLogTextFrame.appendLogLn(java.lang.String)
,
Applet.showStatus(java.lang.String)
,
showMsg1(java.lang.String, java.awt.Color, java.awt.Color)
static void showFeatures(java.lang.String genbankData, java.lang.String genomicData)
genbankData
- is the msg2 data to showgenomicData
- is the msg3 data to showshowMsg2(java.lang.String)
,
showMsg3(java.lang.String)
static void showMsg2(java.lang.String msg2)
msg2
- is the msg2 data to showshowMsg2(java.lang.String)
static void showMsg2(java.lang.String msg2, java.awt.Color fg, java.awt.Color bg)
msg2
- is the command message to showfg
- is foreground colorbg
- is background colorLogTextFrame.appendLogLn(java.lang.String)
static void showMsg3(java.lang.String msg3)
msg3
- is the command message to showshowMsg3(java.lang.String)
static void showMsg3(java.lang.String msg3, java.awt.Color fg, java.awt.Color bg)
msg3
- is the command message to showfg
- is foreground colorbg
- is background colorLogTextFrame.appendLogLn(java.lang.String)
static void popupAlertMsgLine(java.lang.String msg)
msg
- is the command message to showPopupDialogQuery
,
PopupDialogQuery.alertTimeout(java.lang.String)
,
showMsg(java.lang.String)
static void popupAlertMsg(java.lang.String title, java.lang.String msg, int nRows, int nCols)
title
- is the optional title for the popup windowmsg
- is the message for the popup windownRows
- is the # of rows for the popup window, 20 if specify 0nCols
- is the # of columns for the popup window, 80 if specify 0ShowStringPopup
,
ShowStringPopup.updateText(java.lang.String)
,
sleepMsec(int)
static boolean popupDryrotMsgsAndQuit()
MAExplorer.quit()
,
ShowStringPopup
,
ShowStringPopup.updateText(java.lang.String)
,
UserState.createMAEstartupFileStr(boolean)
,
sleepMsec(int)
,
showMsg2(java.lang.String)
java.lang.String rmvDupIMAGEstr(java.lang.String str)
str
- I.M.A.G.E. id that may have extra "IMAGE:" stringjava.lang.String rmvIMAGEstr(java.lang.String str)
str
- I.M.A.G.E. id that may have "IMAGE:" or "ATCC:"void popupViewer(java.net.URL urlBase, java.lang.String fileIn, java.lang.String windowName)
urlBase
- is the base URLfileIn
- is the file to displaywindowName
- is the window to use if not nullFileIO.logMsgln(java.lang.String)
,
MAExplorer.logDRYROTerr(java.lang.String)
,
showMsg(java.lang.String)
,
showMsg2(java.lang.String)
,
showMsg3(java.lang.String)
,
displayURL(java.lang.String)
,
rmvDupIMAGEstr(java.lang.String)
boolean displayURL(java.lang.String url)
Examples: displayURL("http://www.javaworld.com") displayURL("file://c:\\docs\\index.html") displayURL("file:///user/joe/index.html"); displayURL("file:///user/joe/image.gif"); displayURL("file:///user/joe/image.pdf"); displayURL("file:///user/joe/image.xml"); displayURL("file:///user/joe/iimage.svg");Under Unix, the system browser is hard-coded to be 'netscape'. Netscape must be in your PATH for this to work.
url
- to display in popup browserMAExplorer.logDRYROTerr(java.lang.String)
,
showMsg2(java.lang.String)
,
showMsg3(java.lang.String)
boolean displayPDF(java.lang.String pdfFile)
pdfFile
- file to display in Adobe AcrobatMAExplorer.logDRYROTerr(java.lang.String)
,
showMsg2(java.lang.String)
,
showMsg3(java.lang.String)
static boolean checkImagesDirExists()
boolean popupImageOfHPsample(MaHybridSample ms)
Verify data exists before process: 1) has Database_ID data corresponding to xxxx in images 2) has maeDir/Images/xxxx.jpg,
ms
- is the sample to displayMAExplorer.logDRYROTerr(java.lang.String)
,
showMsg(java.lang.String)
,
checkImagesDirExists()
,
displayURL(java.lang.String)
,
popupViewer(java.net.URL, java.lang.String, java.lang.String)
,
prepForFileURL(java.lang.String)
static java.lang.String getCurDateStr()
static java.lang.String cvf2s(float v, int precision)
v
- is value to converti
- is the # of digits precision in the mantissastatic java.lang.String cvd2s(double v, int precision)
v
- is value to converti
- is the # of digits precision in the mantissastatic double cvs2d(java.lang.String str)
str
- to convertstatic double cvs2d(java.lang.String str, double defaultValue)
str
- to convertdefaultValue
- if bad numeric stringstatic float cvs2f(java.lang.String str)
str
- to convertstatic float cvs2f(java.lang.String str, float defaultValue)
str
- to convertdefaultValue
- if bad numeric stringstatic int cvs2i(java.lang.String str)
str
- to convertstatic int cvs2i(java.lang.String str, int defaultValue)
str
- to convertdefaultValue
- if bad numeric stringstatic int[] cvs2iArray(java.lang.String str, int maxExpected, java.lang.String delimChr)
str
- string containt a list of StringsmaxExpected
- # of numbers to be parseddelimChr
- delimiter to be usedstatic java.lang.String[] cvs2Array(java.lang.String str, int maxExpected, java.lang.String delimiterChr)
str
- string containt a list of StringsmaxExpected
- # of numbers to be parsed [DEPRICATED and ignored]delimChr
- delimiter to be usedstatic java.lang.String cvtBackslash2Fwdslash(java.lang.String sInput)
sInput
- is input stringreturn
- converted stringstatic java.lang.String addQuotesIfSpace(java.lang.String str)
str
- to convertstatic java.lang.String dateStr()
static java.lang.String timeStr()
static void printCurrentMemoryUsage(java.lang.String msg)
msg
- to display with this memory snapshotFileIO.logMsgln(java.lang.String)
,
cvd2s(double, int)
,
timeStr()
static java.lang.String prepForFileURL(java.lang.String str)
string
- to prepstatic int findIndexForKey(java.lang.String[] data, java.lang.String key)
data
- is data to searchkey
- is key to use in searching datastatic java.lang.String cvLongToHex(long data)
static int nextZoomMag(int val, int maxVal)
val
- is the value to use in computing next zoom value mod maxValmaxVal
- is the maximum value to useis
- the next zoom value, else 1 if failedstatic boolean setupColorSpectrumRange(java.awt.Color[] ratioColor, float[] ratioRange, int maxColors, boolean redIsZeroFlag)
ratioColor[is
- the color mappingratioRange
- is the color valuesmaxColors
- is the size of arraysredIsZeroFlag
- set red as zero else red is 1.0static boolean setPseudoArrayRatioColorMap(java.awt.Color[] ratioColor, float[] ratioRange, int maxColors)
ratioColor[is
- the color mapping [0:MAX_COLORS-1]ratioRange
- is the ratio range values [0:MAX_COLORS-1]static boolean setPseudoArrayColorSpectrumMap(java.awt.Color[] spectrumColor, float[] spectrumRange)
spectrumColor
- is the color mapping [0:MAX_COLORS-1]spectrumRange
- is the range value [0:MAX_COLORS-1].maxColors
- is the size of arraysstatic boolean setupColorRatioRange(float delta, java.awt.Color[] ratioColor, float[] ratioRange, int maxColors, boolean useNegRangeFlag)
delta
- is the difference between color values computedratioColor
- is the color mappingratioRange
- is the color valuesmaxColors
- is the size of arraysuseNegRangeFlag
- allow negative range valuesstatic java.awt.Color setRatioColor(float ratio, java.awt.Color[] ratioColor, float[] ratioRange, int maxColors)
ratio
- is the value to mapratioColor
- is the color mappingratioRange
- is the color valuesmaxColors
- is the size of arraysstatic int cvFontS2I(java.lang.String fontSizeStr)
fontSizeStr
- is the string name of the font sizestatic java.lang.String cvtStrArrayToStr(java.lang.String[] strData, int len)
strData
- is array of stringslen
- is size of array of string(could be less thatn strData.length)static java.lang.String cvtStrArrayToStr(java.lang.String[] strData)
strData
- is array of stringscvtStrArrayToStr(java.lang.String[], int)
static java.lang.String cvtStrArrayToStr(java.lang.String[] strData, java.lang.String delim, java.lang.String terminator)
strData
- is array of stringsdelim
- is the delimiter to useterminator
- is the end of string terminator to usestatic java.lang.String cvtValueToStars(float val, float valMax, int maxStars, boolean rightFillFlag)
val
- is value to be converted to startsvalMax
- is maximum value expectedmaxStars
- is max # of stars to use for largest valuerightFillFlag
- if true will right fill the string with spacesstatic java.lang.String cvtSpacesToUnderscores(java.lang.String str)
: space( ) ; " { } < > = , ? \ / % * ! @ & | ' ` \t
str
- to be convertedstatic java.lang.String chkDirFinalSeparator(java.lang.String sPath, java.lang.String fS)
sPath
- is the path to chkfS
- is the file separatorstatic java.lang.String getRatioStr()
public static java.lang.String rmvFinalSubDirectory(java.lang.String dirStr, java.lang.String optDir, boolean chkMAEtreeFlag)
dirStr
- is path to editoptDir
- is optional directory to addchkMAEtreeFlag
- also check MAE tree validity and make it if neededstatic boolean cvtEnvPaths2Properties()
static java.lang.String cvFileNameWithMod(java.lang.String fileName, java.lang.String mod)
fileName
- (with file extension)mod
- to insert before file extensionstatic void sleepMsec(int sleepMsec)
sleepMsec
- # of milliseconds to sleepstatic java.lang.String rmvRtnChars(java.lang.String str)
String
- str to processvoid cleanup()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |