| Overview | Package | Class | Tree | Index | Help | NetCharts Pro (Applets) 7.0 | ||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||
java.lang.Object | +--netcharts.util.NFUtil
| Method Summary | |
| static void | busyCursor(java.awt.Component comp,
boolean onoff)
Change the frame cursor for the given component on or off. |
| static void | centerWindow(java.awt.Component comp1,
java.awt.Component comp2)
Center comp2 on comp1. |
| int | compare(java.lang.Object d1,
java.lang.Object d2)
Part of qsort, this is the default comparison function to be used if no NFCompare object is passed to qsort. |
| static void | compPaint(java.awt.Graphics ig,
java.awt.Component comp)
Recursively paint the given component, or all components contained in the given container. |
| static void | compPrint(java.awt.Graphics ig,
java.awt.Component comp)
Recursively print the given component, or all components contained in the given container. |
| static java.lang.String | encodeURL(java.lang.String s)
URL encode a string for use in a HTTP request header. |
| static java.net.URL | getFileURL(java.lang.String filename)
Returns a URL for the given file. |
| static java.net.URL | getFileURL(java.lang.String filename,
NFContext ctxt)
Returns a URL for the given filename, using the given context information as needed to resolve relative paths. |
| static java.net.URL | getFileURL(java.lang.String filename,
java.net.URL documentBase)
Returns a URL for the given filename, using the given document base information as needed to resolve relative paths. |
| static java.awt.Font | getFont(java.lang.String name,
int style,
int size)
Gets the Font object for the given name, style and size. |
| static java.awt.Frame | getFrame(java.awt.Component c)
Returns the top level frame for the given component. |
| static double | getJDKVersion()
Returns the version of the underlying JVM. |
| static java.awt.Component | getTopLevelComponent(java.awt.Component c)
Returns the top level component |
| static java.awt.Component | getWindow(java.awt.Component c)
Returns the top level frame or dialog in which the given component is contained. |
| static double | log(double value,
double base)
Compute the log of "value" with base "base". |
| static void | qsort(java.util.Vector v,
int left,
int right,
NFCompare cmp)
This quicksort method will sort the objects in the Vector using the NFCompare comparison object. |
| static java.lang.String | resolvePath(java.lang.String filename,
NFContext ctxt)
Examines the given filename and replaces any initial path variables with the current values. |
| static java.lang.String | resolvePath(java.lang.String filename,
java.net.URL documentBase,
java.net.URL codeBase)
Examines the given filename and replaces any initial path variables with the current values. |
| static double | rint(double v)
This method rounds the given value to the nearest integer and returns it as a double. |
| static void | setFrameIcon(java.awt.Frame frame,
java.net.URL url)
Set the icon of a Frame to a image at a specific URL. |
| static java.lang.String | sprintf(int groupSize,
char groupSymbol,
char decSymbol,
java.lang.String fmt,
java.lang.Object[] arg)
Returns a formatted string using the given format expression and the array of objects. |
| static java.lang.String | sprintf(int groupSize,
char groupSymbol,
char decSymbol,
java.lang.String fmt,
java.lang.Object[] arg,
boolean includeExtraChars)
Returns a formatted string using the given format expression and the array of objects. |
| Method Detail |
public static double getJDKVersion()
public static java.awt.Font getFont(java.lang.String name,
int style,
int size)
name
- Font family.
style
- Font style.
size
- Font size.
public int compare(java.lang.Object d1,
java.lang.Object d2)
d1
- Object one.
d2
- Object two.
public static void qsort(java.util.Vector v,
int left,
int right,
NFCompare cmp)
v
- The Vector of objects to sort.
left
- Left pivot.
right
- Right pivot.
cmp
- The NFCompare object to use for comparisons.public static java.awt.Component getWindow(java.awt.Component c)
c
- Component to start looking for a frame or dialog from.public static java.awt.Frame getFrame(java.awt.Component c)
c
- Component to start looking for a frame from.public static java.awt.Component getTopLevelComponent(java.awt.Component c)
c
- Component to start looking from.
public static void busyCursor(java.awt.Component comp,
boolean onoff)
comp
- The component on which to change the cursor.
onoff
- Whether to change the cursor to busy or not.
public static final java.net.URL getFileURL(java.lang.String filename,
NFContext ctxt)
throws java.lang.Exception
filename
- The filename to convert to a url.
ctxt
- The NFContext to use for resolution of relative paths.
public static final java.net.URL getFileURL(java.lang.String filename)
throws java.lang.Exception
filename
- The filename to convert to a url.
public static final java.net.URL getFileURL(java.lang.String filename,
java.net.URL documentBase)
throws java.lang.Exception
filename
- The filename to convert to a url.
documentBase
- The document base to use for resolving relative paths.
public static java.lang.String resolvePath(java.lang.String filename,
NFContext ctxt)
$DOCBASE = getDocumentBase() or "." $CODEBASE = getCodeBase() or CLASSPATH entry $NETCHARTS = $CODEBASE/netcharts $IMAGES = $NETCHARTS/images $SYMBOLS = $NETCHARTS/symbols $PATTERNS = $NETCHARTS/patternsNote: Each symbol must be at the beginning of the filename in order to be processed properly.
filename
- The filename to resolve.
ctxt
- The NFContext to use for resolution of document and code
base references.
public static java.lang.String resolvePath(java.lang.String filename,
java.net.URL documentBase,
java.net.URL codeBase)
$DOCBASE = getDocumentBase() or "." $CODEBASE = getCodeBase() or CLASSPATH entry $NETCHARTS = $CODEBASE/netcharts $IMAGES = $NETCHARTS/images $SYMBOLS = $NETCHARTS/symbols $PATTERNS = $NETCHARTS/patternsNote: Each symbol must be at the beginning of the filename in order to be processed properly.
filename
- The filename to resolve.
documentBase
- The document base.
codeBase
- The code base.public static double rint(double v)
v
- The double to round.
public static java.lang.String sprintf(int groupSize,
char groupSymbol,
char decSymbol,
java.lang.String fmt,
java.lang.Object[] arg)
fmt
- Ther format string.
arg
- The Objects to print.
public static java.lang.String sprintf(int groupSize,
char groupSymbol,
char decSymbol,
java.lang.String fmt,
java.lang.Object[] arg,
boolean includeExtraChars)
fmt
- Ther format string.
arg
- The Objects to print.
includeExtraChars
- Whether to include extra characters not relatred tor
the specific % format.
public static void compPaint(java.awt.Graphics ig,
java.awt.Component comp)
ig
- The Graphics on which to paint.
comp
- The Container to paint.
public static void compPrint(java.awt.Graphics ig,
java.awt.Component comp)
ig
- The Graphics on which to print.
comp
- The Container to print.
public static void setFrameIcon(java.awt.Frame frame,
java.net.URL url)
frame
- The Frame to set the icon on.
The
- URL to retrieve.
public static void centerWindow(java.awt.Component comp1,
java.awt.Component comp2)
comp1
- The component to center.
comp2
- The component to center comp1 on.public static java.lang.String encodeURL(java.lang.String s)
public static double log(double value,
double base)
| Overview | Package | Class | Tree | Index | Help | |||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||
| Visual Mining, Inc. | Copyright © Visual Mining, Inc. 1996 - 2010 |
Last Modified: Jun 29, 2010 |