org.rosuda.util
Class Tools
java.lang.Object
org.rosuda.util.Tools
public class Tools
- extends Object
tools to be used by all other classes
- Version:
- $Id: Tools.java,v 1.20 2006/05/18 13:13:14 wichtreyt Exp $
|
Constructor Summary |
Tools()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Tools
public Tools()
getNewOutputStreamDlg
public static PrintStream getNewOutputStreamDlg(Frame par,
String title,
String deffn)
- displays a dialog box to save a file and returns the
corresponding printstream for the newly created file
- Returns:
null if create failed or user canceled operation, the PrintStream otherwise.
nlogn
public static double nlogn(double n)
nlogn
public static double nlogn(int n)
sortDoublesIndex
public static int[] sortDoublesIndex(double[] da)
sortIntegersIndex
public static int[] sortIntegersIndex(int[] da)
getDisplayableValue
public static String getDisplayableValue(double val)
getDisplayableValue
public static String getDisplayableValue(double val,
double range)
getDisplayableValue
public static String getDisplayableValue(double val,
int dac)
parseDouble
public static double parseDouble(String s)
parseInt
public static int parseInt(String s)
parseHexInt
public static int parseHexInt(String s)
parseHexLong
public static long parseHexLong(String s)
color2hrgb
public static String color2hrgb(Color c)
hrgb2color
public static Color hrgb2color(String s)