|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.util.WWUtil
public class WWUtil
| Constructor Summary | |
|---|---|
WWUtil()
|
|
| Method Summary | |
|---|---|
static void |
alignComponent(java.awt.Component parent,
java.awt.Component child,
java.lang.String alignment)
|
static java.awt.Color |
computeContrastingColor(java.awt.Color color)
|
static java.lang.Boolean |
convertStringToBoolean(java.lang.String s)
Converts a specified string to a boolean value. |
static java.lang.Double |
convertStringToDouble(java.lang.String s)
Converts a specified string to a floating point value. |
static java.lang.Integer |
convertStringToInteger(java.lang.String s)
Converts a specified string to an integer value. |
static java.lang.Long |
convertStringToLong(java.lang.String s)
Converts a specified string to a long integer value. |
static java.awt.Color |
decodeColor(java.lang.String encodedString)
Returns the Color described by the String encodedString. |
protected static void |
doListFileNames(java.io.File file,
java.io.FileFilter filter,
boolean recurse,
boolean exitBranchOnFirstMatch,
java.util.Collection<java.lang.String> names)
|
protected static java.lang.String[] |
doListFileNames(java.lang.String filePath,
java.io.FileFilter filter,
boolean recurse,
boolean exitBranchOnFirstMatch)
|
static java.lang.String |
encodeColor(java.awt.Color color)
Returns a String encoding of the specified color. |
static boolean |
isEmpty(java.lang.Object s)
Determine whether an object reference is null or a reference to an empty string. |
static java.lang.String[] |
listAllFileNames(java.lang.String filePath,
java.io.FileFilter filter)
|
protected static boolean |
listFile(java.io.File file,
java.io.FileFilter filter,
java.util.Collection<java.lang.String> names)
|
static java.lang.String[] |
listFileNames(java.lang.String filePath,
java.io.FileFilter filter)
|
static java.lang.String[] |
listTopFileNames(java.lang.String filePath,
java.io.FileFilter filter)
|
static java.awt.Color |
makeColorBrighter(java.awt.Color color)
|
static java.awt.Color |
makeColorDarker(java.awt.Color color)
|
static java.lang.CharSequence |
trimCharSequence(java.lang.CharSequence charSequence)
Returns a sub sequence of the specified CharSequence, with leading and trailing whitespace omitted. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WWUtil()
| Method Detail |
|---|
public static void alignComponent(java.awt.Component parent,
java.awt.Component child,
java.lang.String alignment)
public static java.awt.Color computeContrastingColor(java.awt.Color color)
public static java.lang.Boolean convertStringToBoolean(java.lang.String s)
s - the string to convert.
java.lang.IllegalArgumentException - if the string is null.public static java.lang.Double convertStringToDouble(java.lang.String s)
s - the string to convert.
java.lang.IllegalArgumentException - if the string is null.public static java.lang.Integer convertStringToInteger(java.lang.String s)
s - the string to convert.
java.lang.IllegalArgumentException - if the string is null.public static java.lang.Long convertStringToLong(java.lang.String s)
s - the string to convert.
java.lang.IllegalArgumentException - if the string is null.public static java.awt.Color decodeColor(java.lang.String encodedString)
encodedString. This understands Colors encoded with a call
to encodeColor(java.awt.Color). If encodedString cannot be decoded, this method returns
null.
encodedString - String to decode.
encodedString, or null if the String cannot be decoded.
java.lang.IllegalArgumentException - If encodedString is null.
protected static void doListFileNames(java.io.File file,
java.io.FileFilter filter,
boolean recurse,
boolean exitBranchOnFirstMatch,
java.util.Collection<java.lang.String> names)
protected static java.lang.String[] doListFileNames(java.lang.String filePath,
java.io.FileFilter filter,
boolean recurse,
boolean exitBranchOnFirstMatch)
public static java.lang.String encodeColor(java.awt.Color color)
color. The Color can be restored with a call to decodeColor(String).
color - Color to encode.
color.
java.lang.IllegalArgumentException - If color is null.public static boolean isEmpty(java.lang.Object s)
s - the refernce to examine.
String.
public static java.lang.String[] listAllFileNames(java.lang.String filePath,
java.io.FileFilter filter)
protected static boolean listFile(java.io.File file,
java.io.FileFilter filter,
java.util.Collection<java.lang.String> names)
public static java.lang.String[] listFileNames(java.lang.String filePath,
java.io.FileFilter filter)
public static java.lang.String[] listTopFileNames(java.lang.String filePath,
java.io.FileFilter filter)
public static java.awt.Color makeColorBrighter(java.awt.Color color)
public static java.awt.Color makeColorDarker(java.awt.Color color)
public static java.lang.CharSequence trimCharSequence(java.lang.CharSequence charSequence)
CharSequence, with leading and trailing whitespace omitted. If
the CharSequence has length zero, this returns a reference to the CharSequence. If the CharSequence represents
and empty character sequence, this returns an empty CharSequence.
charSequence - the CharSequence to trim.
java.lang.IllegalArgumentException - if the charSequence is null.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||