|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kaboum.util.KaboumUtil
public class KaboumUtil
Static methods for Kaboum applet
Field Summary | |
---|---|
static int |
INTERSECTION_WITH_UNION
CONSTANTS |
static int |
INTERSECTION_WITHOUT_UNION
|
Constructor Summary | |
---|---|
KaboumUtil()
|
Method Summary | |
---|---|
static void |
debug(java.lang.String log)
Debug method |
static java.awt.Color |
getColorParameter(java.lang.String s,
java.awt.Color color)
Eval a color value from a r,g,b triplet or from a pre-defined color (From mapplet code source by Stephen Lime) |
static boolean |
getDebugMode()
Get the debug mode |
static java.lang.String |
getFontName(java.lang.String s)
Eval the font name |
static int |
getFontStyle(java.lang.String s)
Return the font style corresponding integer |
static void |
setDebugMode(boolean b)
Set the debug mode |
static boolean |
stob(java.lang.String s)
Convert boolean string into boolean |
static boolean |
stob(java.lang.String s,
boolean d)
Convert boolean string into boolean |
static double |
stod(java.lang.String s)
Convert numerical string into double |
static double |
stod(java.lang.String s,
double d)
Convert numerical string into double |
static float |
stof(java.lang.String s)
Convert numerical string into float |
static float |
stof(java.lang.String s,
float d)
Convert numerical string into float |
static int |
stoi(java.lang.String s)
Convert numerical string into integer |
static int |
stoi(java.lang.String s,
int d)
Convert numerical string into integer |
static java.net.URL |
toURL(java.lang.String strName)
Convert string into URL |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int INTERSECTION_WITH_UNION
public static final int INTERSECTION_WITHOUT_UNION
Constructor Detail |
---|
public KaboumUtil()
Method Detail |
---|
public static void setDebugMode(boolean b)
public static boolean getDebugMode()
public static void debug(java.lang.String log)
public static java.awt.Color getColorParameter(java.lang.String s, java.awt.Color color)
s
- Input stringColor
- Default color to returnpublic static java.lang.String getFontName(java.lang.String s)
s
- Input font namepublic static int getFontStyle(java.lang.String s)
public static int stoi(java.lang.String s, int d)
s
- Input stringd
- Default valuepublic static int stoi(java.lang.String s)
s
- Input stringpublic static float stof(java.lang.String s, float d)
s
- Input stringd
- Default valuepublic static float stof(java.lang.String s)
s
- Input stringpublic static double stod(java.lang.String s, double d)
s
- Input stringd
- Default valuepublic static double stod(java.lang.String s)
s
- Input stringpublic static boolean stob(java.lang.String s)
s
- Input stringpublic static boolean stob(java.lang.String s, boolean d)
s
- Input stringd
- Default valuepublic static java.net.URL toURL(java.lang.String strName)
strName
- Input string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |