|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Util
public class Util
Class Util contains utility methods used by Flicker.
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 Flicker Mozilla and Legal files are available on http://open2dprot.sourceforge.net/Flicker
Field Summary | |
---|---|
private static boolean |
doingAlertFlag
flag to enforce an atomic alerts |
private static Flicker |
flk
Instance of Flicker |
java.util.Hashtable |
flkStateHT
Hash table of .flk values read |
private java.awt.Color |
lastMsgColor
|
private java.lang.String |
lastMsgStr
|
int |
nEntries
# of hash table entries after call readNameValuesHashTableFromFile() |
int |
nStateEntries
# of .flk hash table entries |
Constructor Summary | |
---|---|
Util(Flicker flkS)
Util() - constructor for Class Util |
Method Summary | |
---|---|
boolean |
addUserDemoFilesDBbyURL(java.lang.String userDemoDBurl)
addUserDemoFilesDBbyURL() - Add user's demo images to DB by userURL. |
static void |
appendReportMsg(java.lang.String sMsg)
appendReportMsg() - append a report message to the report popup window |
static void |
appendReportMsg(java.lang.String sMsg,
java.awt.Color color)
appendReportMsg() - append a report message to the report popup window |
(package private) static java.lang.String[] |
bubbleSort(java.lang.String[] data,
int len)
bubbleSort() - Sort String array via bubble sort w/len |
(package private) static int[] |
bubbleSortIndex(float[] data,
int len,
boolean ascending)
bubbleSortIndex() - sort copy of float[0:len-1] data with bubble sort, return index[]. |
(package private) static int[] |
bubbleSortIndex(java.lang.String[] data,
int len,
boolean ascending)
bubbleSortIndex() - sort copy of String[0:len-1] data with bubble sort, return index[]. |
(package private) void |
clearReportMsg()
clearReportMsg() - clear text in report popup window |
boolean[][] |
computeCircularMaskList(int r)
computeCircularMaskList() - create a list of (x,y) point offsets for use later in convolution types of operations. |
boolean |
copyFile(java.lang.String srcName,
java.lang.String dstName,
java.lang.String optUpdateMsg,
int optEstInputFileLth)
copyFile() - binary copy of one file or URL toa local file |
private char |
cvByteToChar(byte b)
cvByteToChar() - convert signed byte [-128:+127] to unsigned char in range [0:255] |
private int |
cvByteToInt(byte b)
cvByteToInt() - convert signed byte [-128:+127] to unsigned int in range [0:255] |
int |
cvColor2ColorValue(java.awt.Color color)
cvColor2ColorValue() - convert Color.xxx to color code |
java.awt.Color |
cvColorValue2Color(int colorCode)
cvColorValue2Color() - convert color code to Color.xxx |
(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 exact precision # of digits. |
(package private) static java.lang.String |
cvf2sVariable(float v,
int precision)
cvf2sVariable() - convert float to string with precision # of digits. |
static java.lang.String |
cvi2hexs(int iVal)
cvi2hexs() - convert integer number to hex string |
static java.lang.String |
cvi2os(int iVal)
cvi2os() - convert integer number to octal string with leading 0. |
private byte |
cvIntToByte(int i)
cvIntToByte() - convert int in range [0:255] to signed byte in range of [-128:+127]. |
(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 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,
int defaultValue)
cvs2i() - convert String to int with default value |
(package private) static java.lang.String |
dateStr()
dateStr() - return a new Date string of the current day and time |
boolean |
deleteLocalFile(java.lang.String fileName)
deleteLocalFile() - delete local file. |
void |
fatalReportMsg(java.lang.String sMsg,
int timeoutMsec)
fatalReportMsg() - display a fatal report message to the report popup window, then wait for before return. |
static void |
forceReportWindowPopup()
forceReportWindowPopup() - force the append Report Window to popup |
void |
gcAndMemoryStats(java.lang.String msg)
gcAndMemoryStats() - String garbage collect & print memory statistics. |
boolean |
getAnnotationFromServer(ImageData iData,
Spot s)
getAnnotationFromServer() - get the gel iData spot s data from proteomic web server |
void |
getBaseFlkPropertiesStr(java.lang.StringBuffer sBuf)
getBaseFlkPropertiesStr() - add generate tab-delim base Flicker properties State string to the string buffer The format is tab-delimited (name \t value \n) with one entry/line. |
(package private) static java.lang.String |
getCurDateStr()
getCurDateStr() - return date string in the format of YYMMDDHHMMSS. |
java.lang.String |
getFileName(java.lang.String file)
getFileName() - get the file name after last '/' if any |
java.lang.String |
getFileNameFromPath(java.lang.String path)
getFileNameFromPath() - extract the filename from the path |
java.lang.String |
getFullCalFilePath(ImageData iData)
getFullCalFilePath() - compute the .cal file from the qualified imageFile If there is a subdirectory before the baseFile, then strip out the directory name and add it before the actual base file. |
java.awt.Color |
getLastMsgColor()
getLastMsgColor() - get the last message color |
java.lang.String |
getLastMsgStr()
getLastMsgStr() - get the last message string |
java.lang.String[] |
getProteinIDdataByXYurl(java.lang.String clickCGIbaseURL,
int x,
int y,
java.lang.String msg)
getProteinIDdataByXYurl() - read data from protein web site and parse {Swiss-Prot-id, protein-name} if found. |
java.lang.String |
getScrollerValuesStateStr()
getScrollerValuesStateStr() - "Report scroller values" button |
java.lang.String |
getStateStr()
getStateStr() - generate a tab-delim Flicker State string for when we write out the .flk state. |
boolean |
getStateValue(java.lang.String key,
boolean def)
getStateValue() - get boolean PARAM and use default if not found. |
float |
getStateValue(java.lang.String key,
float def)
getStateValue() - get float PARAM and use default if not found. |
int |
getStateValue(java.lang.String key,
int def)
getStateValue() - get int PARAM and use default if not found. |
long |
getStateValue(java.lang.String key,
long def)
getStateValue() - get float PARAM and use default if not found. |
java.lang.String |
getStateValue(java.lang.String key,
java.lang.String def)
getStateValue() - get PARAM and use default if not found. |
static java.lang.String |
leftFillWithSpaces(java.lang.String str,
int n)
leftFillWithSpaces() - left fill the string with spaces to size n. |
boolean |
parseBaseFlkProperties()
parseBaseFlkProperties() - parse the base Flicker State properties in the current hash table. |
static void |
popupAlertMsg(java.lang.String msg)
popupAlertMsg() - display the msg in msg1 and popup up an Alert message. |
static void |
popupAlertMsg(java.lang.String msg,
java.awt.Color bgColor)
popupAlertMsg() - display the msg in msg1 and popup up an Alert message |
(package private) static java.lang.String |
prettyPrintDateStr(java.lang.String ds)
prettyPrintDateStr() - pretty-print date string. |
static void |
printCurrentMemoryUsage(java.lang.String msg)
printCurrentMemoryUsage() - print: %free, total memory usage and time of day to stdout. |
(package private) static void |
quickSort(int[] a,
int lo0,
int hi0)
quickSort() - sort the int[] array. |
boolean |
readBaseFlkPropertiesFile(java.lang.String fileName)
readBaseFlkPropertiesFile() - read the base "Flicker.properties" file if it exists. |
byte[] |
readBytesFromURL(java.lang.String srcName,
java.lang.String optUpdateMsg)
readBytesFromURL() - read binary data from URL |
boolean |
readCalibrationFile(ImageData iData)
readCalibrationFile() - read the image calibration from the "cal/{image file base}.cal" file or "cal/{image subdirectory}-DIR-{image file base}.cal" file. |
java.util.Hashtable |
readFlkState(java.lang.String stateFile,
boolean readSpotListFilesFlag)
readFlkState() - read the Flicker State file stateFile with a .flk file extension. |
boolean |
readFlkStateFile(java.lang.String flkStateFile,
boolean reportErrorMsgsFlag)
readFlkStateFile() - read a .flk state file and change the state |
java.util.Hashtable |
readNameValuesHashTableFromFile(java.lang.String fileName,
java.lang.String sMsg,
int hashTableSize)
readNameValuesHashTableFromFile() - read a hashtable of tab-delimited name-value pairs from a file. |
java.util.Hashtable |
readNameValuesHashTableFromFile(java.lang.String fileName,
java.lang.String sMsg,
int hashTableSize,
boolean usePopupAlertsFlag)
readNameValuesHashTableFromFile() - read a hashtable of tab-delimited name-value pairs from a file. |
(package private) int |
resizeLAXfileData()
resizeLAXfileData() - resize Flicker.lax file data for Flicker. |
java.lang.String |
rmvFileExtension(java.lang.String fileName)
rmvFileExtension() - remove ".tif", ".jpg", ".gif", ".ppx" from file name and ignore the case. |
(package private) static java.lang.String |
rmvRtnChars(java.lang.String str)
rmvRtnChars() - remove return chars. |
static java.lang.String |
rmvSpecifiedChar(java.lang.String str,
char rmvChar)
rmvSpecifiedChar() - remove specified chararcter |
void |
setFlickerGUI(boolean flkFlag)
setFlickerGUI() - set the Flicker GUI state |
void |
setFlickerState(boolean enableFlag)
setFlickerState() - enable/disable flicker and the checkbox and save the flickerFlag while doing Xform. |
void |
setLastMsgColor(java.awt.Color c)
setLastMsgColor() - set the last message color |
void |
setReportMsg(java.lang.String sMsg)
setReportMsg() - set a report message to the report popup window |
void |
setStateHashtableForGetValue(java.util.Hashtable ht)
setStateHashtableForGetValue() - set working hash table for next getStateValue calls |
void |
setStateHashtableForGetValue(java.util.Hashtable ht,
int nEntriesVal)
setStateHashtableForGetValue() - set working hash table for next getStateValue calls |
void |
showMsg(java.lang.String msg,
java.awt.Color c)
showMsg() - show msg in GUI area 1, set the status-line & set color. |
void |
showMsg1(java.lang.String msg,
java.awt.Color c)
showMsg1() - show msg in GUI area 1, set the status-line & set color. |
void |
showMsg2(java.lang.String msg,
java.awt.Color c)
showMsg2() - show msg in GUI text area 2, status line and set color. |
void |
showStatus(java.lang.String msg,
java.awt.Color c)
showStatus() - show msg in GUI area 1, set the status-line & set color. |
static void |
sleepMsec(int mSec)
sleepMsec() - sleep for mSec. |
(package private) static java.lang.String |
timeStr()
timeStr() - return a new daytime HH:MM:SS string of the current time. |
(package private) boolean |
updateDemoDBfiles()
updateDemoDBfiles() - update DB/FlkDemoDB.txt into program install area. |
(package private) boolean |
updateFlickerJarFile()
updateFlickerJarFile() - update Flicker.jar into program install area. |
(package private) boolean |
updateFlkDBfiles(java.lang.String[] dbFile)
updateFlkDBfiles() - update DB/ |
void |
updateLMSvaluesInImages()
updateLMSvaluesInImages() - redraw landmarks in images if needed. |
(package private) static java.lang.String |
useFileSeparatorChar(java.lang.String str,
java.lang.String newSeparatorStr)
useFileSeparatorChar() - use specified file separator chararcter Eg. |
boolean |
writeBaseFlkPropertiesFile(java.lang.String fileName)
writeBaseFlkPropertiesFile() - write out "Flicker.properties" file to save user preferences. |
boolean |
writeCalibrationFile(ImageData iData)
writeCalibrationFile() - write the image calibration into the "cal/{{demo image file base}.cal" file. |
(package private) boolean |
writeFlkState(java.lang.String flkStateFile)
writeFlkState() - write a .flk state file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static Flicker flk
private java.lang.String lastMsgStr
private java.awt.Color lastMsgColor
private static boolean doingAlertFlag
public java.util.Hashtable flkStateHT
public int nStateEntries
public int nEntries
Constructor Detail |
---|
public Util(Flicker flkS)
flk
- instance of FlickerMethod Detail |
---|
public final void updateLMSvaluesInImages()
public void setFlickerGUI(boolean flkFlag)
public void setFlickerState(boolean enableFlag)
enableFlag
- to enable or disable flickerpublic static void sleepMsec(int mSec)
public static final java.lang.String leftFillWithSpaces(java.lang.String str, int n)
str
- to filln
- max width
public static final java.lang.String cvi2os(int iVal)
iVal
- to convert
public static final java.lang.String cvi2hexs(int iVal)
iVal
- to convert
static java.lang.String cvf2s(float v, int precision)
v
- is value to converti
- is the # of digits precision in the mantissa
static java.lang.String cvf2sVariable(float v, int precision)
v
- is value to converti
- is the # of digits precision in the mantissa
static java.lang.String cvd2s(double v, int precision)
v
- is value to converti
- is the # of digits precision in the mantissa
public java.lang.String getFileName(java.lang.String file)
public java.lang.String getLastMsgStr()
public java.awt.Color getLastMsgColor()
public void setLastMsgColor(java.awt.Color c)
c
- is color to setpublic void showMsg(java.lang.String msg, java.awt.Color c)
Default colors are: ERROR = Color.red, OK = Color.black evt debug= Color.blue. info = Color.yellow % done = Color.magenta
msg
- is status message to displayc
- is color to display itpublic void showMsg1(java.lang.String msg, java.awt.Color c)
Default colors are: ERROR = Color.red, OK = Color.black evt debug= Color.blue. info = Color.yellow % done = Color.magenta
msg
- is status message to displayc
- is color to display itpublic void showStatus(java.lang.String msg, java.awt.Color c)
Default colors are: ERROR = Color.red, OK = Color.black evt debug= Color.blue. info = Color.yellow % done = Color.magenta
msg
- is status message to displayc
- is color to display itpublic void showMsg2(java.lang.String msg, java.awt.Color c)
Default colors are: ERROR = Color.red, OK = Color.black evt debug= Color.blue. info = Color.yellow % done = Color.magenta
msg
- is status message to displayc
- is color to display itvoid clearReportMsg()
public void setReportMsg(java.lang.String sMsg)
sMsg
- to assignpublic static void popupAlertMsg(java.lang.String msg)
msg
- to displaypublic static void popupAlertMsg(java.lang.String msg, java.awt.Color bgColor)
msg
- to displaybgColor
- is the background color to usepublic void fatalReportMsg(java.lang.String sMsg, int timeoutMsec)
sMsg
- to displaytimeoutMsec
- if != 0 then wait that time. If it is <0 then exit
the program after the timeout.public static void appendReportMsg(java.lang.String sMsg)
sMsg
- to appendpublic static void appendReportMsg(java.lang.String sMsg, java.awt.Color color)
sMsg
- to appendcolor
- if the color is Color.red, then force it to pop up
if it is not visible.public static void forceReportWindowPopup()
public java.lang.String getScrollerValuesStateStr()
public boolean readFlkStateFile(java.lang.String flkStateFile, boolean reportErrorMsgsFlag)
flkStateFile
- to readreportErrorMsgsFlag
- to report error messages when loads.
public java.lang.String getFullCalFilePath(ImageData iData)
iData
- to use in computing the .cal file path
public boolean readCalibrationFile(ImageData iData)
iData
- is the Image Data to read the calibration
public java.awt.Color cvColorValue2Color(int colorCode)
colorCode
-
public int cvColor2ColorValue(java.awt.Color color)
color
-
public java.util.Hashtable readNameValuesHashTableFromFile(java.lang.String fileName, java.lang.String sMsg, int hashTableSize)
fileName
- is the name of the file to readsMsg
- to print when reading the file.
public java.util.Hashtable readNameValuesHashTableFromFile(java.lang.String fileName, java.lang.String sMsg, int hashTableSize, boolean usePopupAlertsFlag)
fileName
- is the name of the file to readsMsg
- to print when reading the file.usePopupAlertsFlag
- if allow popup error messages
public void setStateHashtableForGetValue(java.util.Hashtable ht, int nEntriesVal)
ht
- is hashtable to usenEntriesVal
- is the number of elements used in the hash table.public void setStateHashtableForGetValue(java.util.Hashtable ht)
ht
- is hashtable to usepublic boolean readBaseFlkPropertiesFile(java.lang.String fileName)
fileName
- to read (e.g., "Flicker.properties")
public boolean writeBaseFlkPropertiesFile(java.lang.String fileName)
fileName
- to read (e.g., "Flicker.properties")
public boolean getAnnotationFromServer(ImageData iData, Spot s)
iData
- is the gel images
- is the spot (it contains the x,y) coordinates
public java.lang.String[] getProteinIDdataByXYurl(java.lang.String clickCGIbaseURL, int x, int y, java.lang.String msg)
clickCGIbaseURL
- is web site to get protein datax
- is x coordinate in active gel imagey
- is y coordinate in active gel imagemsg
- is msg coordinate in active gel image
public java.util.Hashtable readFlkState(java.lang.String stateFile, boolean readSpotListFilesFlag)
stateFile
- is the name of the Flicker state filereadSpotListFilesFlag
- read the spt/*.spt files
public boolean parseBaseFlkProperties()
boolean writeFlkState(java.lang.String flkStateFile)
flkStateFile
- to write
public boolean writeCalibrationFile(ImageData iData)
iData
- is the Image Data to write the calibration
public java.lang.String getStateStr()
public void getBaseFlkPropertiesStr(java.lang.StringBuffer sBuf)
sBuf
- is the string buffer to add data topublic java.lang.String getStateValue(java.lang.String key, java.lang.String def)
public int getStateValue(java.lang.String key, int def)
public long getStateValue(java.lang.String key, long def)
public float getStateValue(java.lang.String key, float def)
public boolean getStateValue(java.lang.String key, boolean def)
public boolean copyFile(java.lang.String srcName, java.lang.String dstName, java.lang.String optUpdateMsg, int optEstInputFileLth)
srcName
- is either a full path local file name or
a http:// prefixed URL string of the source file.dstName
- is the full path of the local destination file nameoptUpdateMsg
- (opt) will display message in showMsg() and
increasing ... in showMsg2(). One '.' for every 10K bytes read.
This only is used when reading a URL. Set to null if not used.optEstInputFileLth
- is the estimate size of the input file if
known else 0. Used in progress bar.
public byte[] readBytesFromURL(java.lang.String srcName, java.lang.String optUpdateMsg)
srcName
- is either a full path local file name or
a http:// prefixed URL string of the source file.optUpdateMsg
- (opt) will display message in showMsg() and
increasing ... in showMsg2(). One '.' for every 10K bytes read.
This only is used when reading a URL. Set to null if not used.
public boolean deleteLocalFile(java.lang.String fileName)
final boolean updateFlickerJarFile()
[1] Define directory for Flicker.jar path and other file and URL names. [2] Backup the old Flicker.jar as Flicker.jar.bkup [3] Open the url: from flkJarURL. This is hardwired to be "http://www.lecb.ncifcrf.gov/Flicker/Flicker.jar" and read the file from the Web into local file "Flicker.jar.tmp" [4] Move the "Flicker.jar.tmp" file into "Flicker.jar" in the program directory Since changing the Flicker.jar file is a potential security risk, we make this procedure final and hardwire the flkJarURL!
copyFile(java.lang.String, java.lang.String, java.lang.String, int)
,
deleteLocalFile(java.lang.String)
final boolean updateFlkDBfiles(java.lang.String[] dbFile)
[1] Define directory for DB/Flk*DB.txt path and other file and URL names. [2] Backup the old DB/as FlkMapDB.txt.bkup [3] Open the url: from flkMapDBURL. This is hardwired to be "http://www.lecb.ncifcrf.gov/Flicker/DB/< dbList>" and read the file from the Web into local file "< dbList >.tmp" [4] Move the "< dbList >.tmp" file into "DB/ .txt" in the program directory Since changing the DB/ file is a potential security risk, we make this procedure final and hardwire the flk*DBURL!
dbFile
- is a list of DB/copyFile(java.lang.String, java.lang.String, java.lang.String, int)
,
deleteLocalFile(java.lang.String)
final boolean updateDemoDBfiles()
[1] Get the list of files in DB/FlkDemoDB.dir into < imgList > [2] For each iFile in imgList[1:nFiles], [2.1] Backup the old Image/imgList[i] as imgList[i].bkup [2.2] Open the url: from flkDemoDBURL. This is hardwired to be "http://www.lecb.ncifcrf.gov/Flicker/Image/"+imgList[i] and read the file from the Web into local file imgList[i]+".tmp" [2.3] Move the imgList[i]+".tmp" file into "Images/"+imgList[i] in the program directory [3] Copy the "http://www.lecb.ncifcrf.gov/Flicker/Images/*" files to "/Images". Since changing the DB/FlkDemoDB.txt file is a potential security risk, we make this procedure final and hardwire the flkDemoDBURL!
copyFile(java.lang.String, java.lang.String, java.lang.String, int)
,
deleteLocalFile(java.lang.String)
public boolean addUserDemoFilesDBbyURL(java.lang.String userDemoDBurl)
[1] This assumes that the DB/FlkDemoDB.txt has been read into the FlkDemo database in memory on when Flicker was started. [1.1] Copy DB/FlkDemo.txt to DB/FlkDemo.txt.bkup [2] Read the URL file < userURL >/DB/FlkDemoDB.dir into < userImgList > [3] Read the URL file < userURL >/DB/FlkDemoDB.txt into another instance of FlkDemo. [4] Using < userImgList >, read each iFile in userImgList[1:nFiles], [4.1] Open the url: from userDemoDBurl. This URL compute as ( userDemoDBurl + "Images/" + userImgList[i] ) and read the file from the Web into local file ( "Images/" + ( userImgList[i]) [4.2] Append an the entry for userImgList[i] into the in-core FlkDemo data structure. [5] If successful, write out the DB/FlkDemo.txt file with the new data. [6] Give user message that they need to restart Flicker to see the changes. Since changing the DB/FlkDemoDB.txt file is a potential security risk, we make this procedure final and hardwire the flkDemoDBURL!
userDemoDBurl
- is the base address for the user's demo data
this Web directory will contain subdirectories Images/ and DB/
and DB/ contains FlkDemoDB.dir and FlkDemoDB.txt with the entries
for the corresponding images.
copyFile(java.lang.String, java.lang.String, java.lang.String, int)
,
deleteLocalFile(java.lang.String)
static java.lang.String dateStr()
static java.lang.String getCurDateStr()
static java.lang.String prettyPrintDateStr(java.lang.String ds)
ds
- is the date string in the format of YYMMDDHHMMSS.
static 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 used with "," the default
static float cvs2f(java.lang.String str, float defaultValue)
str
- to convertdefaultValue
- if bad numeric string
static int cvs2i(java.lang.String str, int defaultValue)
str
- to convertdefaultValue
- if bad numeric string
private final int cvByteToInt(byte b)
b
- is byte to convert
private final char cvByteToChar(byte b)
b
- is byte to convert
private final byte cvIntToByte(int i)
i
- is integer to convert
static void quickSort(int[] a, int lo0, int hi0)
a
- array of data to sortlo0
- lower bound of arrayhi0
- uppper bound of arraystatic java.lang.String[] bubbleSort(java.lang.String[] data, int len)
data
- array of data to be sortedlen
- size of subarray array of data to be sorted [0:len-1]
static int[] bubbleSortIndex(java.lang.String[] data, int len, boolean ascending)
data
- array of data to be sortedlen
- size of subarray array of data to be sorted [0:len-1]ascending
- sort if true
static int[] bubbleSortIndex(float[] data, int len, boolean ascending)
data
- array of data to be sortedlen
- size of subarray array of data to be sorted [0:len-1]ascending
- sort if true
public java.lang.String getFileNameFromPath(java.lang.String path)
path
-
public java.lang.String rmvFileExtension(java.lang.String fileName)
fileName
-
static java.lang.String rmvRtnChars(java.lang.String str)
String
- str to process
public static java.lang.String rmvSpecifiedChar(java.lang.String str, char rmvChar)
str
- to processrmvChar
- to remove
static java.lang.String useFileSeparatorChar(java.lang.String str, java.lang.String newSeparatorStr)
str
- to processnewSeparatorStr
- to use
static java.lang.String timeStr()
public static void printCurrentMemoryUsage(java.lang.String msg)
**** Memory[ BCF:setBrCt() end]: 28% free, tot=24.36Mb [9:30:0] **** ,/PRE>
msg
- to display with this memory snapshotFileIO#logMsgln
,
cvd2s(double, int)
,
timeStr()
public void gcAndMemoryStats(java.lang.String msg)
public boolean[][] computeCircularMaskList(int r)
r
- - radius of circle inside the region
int resizeLAXfileData()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |