com.jidesoft.chart.servlet
Class ServletUtils
java.lang.Object
com.jidesoft.chart.servlet.ServletUtils
public class ServletUtils
- extends Object
Method Summary |
static int[] |
fromHexString(String hex)
Converts an even-lengthed string of hexadecimal values to an array of
decimal valued bytes |
static int |
hex2int(String hex)
Converts a 2-digit hexadecimal value
(consisting entirely of hexadecimal digits) to a decimal value
as a byte. |
static Color |
hexToColor(String hexString,
Color defaultColor)
Converts a hexadecimal string to a Color |
static Font |
parseFont(String fontDescription)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServletUtils
public ServletUtils()
parseFont
public static Font parseFont(String fontDescription)
hexToColor
public static Color hexToColor(String hexString,
Color defaultColor)
- Converts a hexadecimal string to a Color
- Parameters:
hexString
- the hexadecimal string representing the color
- Returns:
- a Color instance
fromHexString
public static int[] fromHexString(String hex)
- Converts an even-lengthed string of hexadecimal values to an array of
decimal valued bytes
hex2int
public static int hex2int(String hex)
- Converts a 2-digit hexadecimal value
(consisting entirely of hexadecimal digits) to a decimal value
as a byte.
NOTE: An input value such as " C" will not work. Use "0C" instead.