gov.nasa.worldwind.util
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Constructor Summary | |
|---|---|
WWUtil()
|
|
| Method Summary | |
|---|---|
static void |
alignComponent(Component parent,
Component child,
String alignment)
|
static Boolean |
convertStringToBoolean(String s)
|
static Double |
convertStringToDouble(String s)
Converts a specified string to a floating point value. |
static Integer |
convertStringToInteger(String s)
Converts a specified string to an integer value. |
static Long |
convertStringToLong(String s)
Converts a specified string to a long integer value. |
static Color |
decodeColor(String encodedString)
Returns the Color described by the String encodedString. |
protected static void |
doListFileNames(File file,
FileFilter filter,
boolean recurse,
boolean exitBranchOnFirstMatch,
Collection<String> names)
|
protected static String[] |
doListFileNames(String filePath,
FileFilter filter,
boolean recurse,
boolean exitBranchOnFirstMatch)
|
static String |
encodeColor(Color color)
Returns a String encoding of the specified color. |
static String[] |
listAllFileNames(String filePath,
FileFilter filter)
|
protected static boolean |
listFile(File file,
FileFilter filter,
Collection<String> names)
|
static String[] |
listFileNames(String filePath,
FileFilter filter)
|
static String[] |
listTopFileNames(String filePath,
FileFilter filter)
|
static Color |
makeColorBrighter(Color color)
|
static Color |
makeColorDarker(Color color)
|
| 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(Component parent, Component child, String alignment)
public static Boolean convertStringToBoolean(String s)
public static Double convertStringToDouble(String s)
s - the string to convert.
IllegalArgumentException - if the string is null.public static Integer convertStringToInteger(String s)
s - the string to convert.
IllegalArgumentException - if the string is null.public static Long convertStringToLong(String s)
s - the string to convert.
IllegalArgumentException - if the string is null.public static Color decodeColor(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.
IllegalArgumentException - If encodedString is null.protected static void doListFileNames(File file, FileFilter filter, boolean recurse, boolean exitBranchOnFirstMatch, Collection<String> names)
protected static String[] doListFileNames(String filePath, FileFilter filter, boolean recurse, boolean exitBranchOnFirstMatch)
public static String encodeColor(Color color)
color. The Color can be restored with a call to decodeColor(String).
color - Color to encode.
color.
IllegalArgumentException - If color is null.public static String[] listAllFileNames(String filePath, FileFilter filter)
protected static boolean listFile(File file, FileFilter filter, Collection<String> names)
public static String[] listFileNames(String filePath, FileFilter filter)
public static String[] listTopFileNames(String filePath, FileFilter filter)
public static Color makeColorBrighter(Color color)
public static Color makeColorDarker(Color color)
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||