org.jogre.common.util
Class JogreUtilities
java.lang.Object
org.jogre.common.util.JogreUtilities
- public class JogreUtilities
- extends Object
Bunch of utilities which are used in several classes through the API.
- Version:
- Alpha 0.2.1
- Author:
- Bob Marks
Method Summary |
static Color |
getColor(String colourStr)
Return a Color object from a String of "r,g,b" |
static Date |
readDate(String dateString,
String formatString)
Little helper method which reads as a String and formats it using a
specified format String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JogreUtilities
public JogreUtilities()
getColor
public static Color getColor(String colourStr)
- Return a Color object from a String of "r,g,b"
- Parameters:
colourStr
- Colour as a comma delimited String.
- Returns:
- Return a Color object.
readDate
public static Date readDate(String dateString,
String formatString)
- Little helper method which reads as a String and formats it using a
specified format String.
- Parameters:
dateString
- Date as a StringformatString
- Format of the String
- Returns:
- Date object.
- See Also:
SimpleDateFormat