|
JGraph X 2.1.0.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mxgraph.util.mxHtmlColor
public class mxHtmlColor
Contains various helper methods for use with mxGraph.
| Field Summary | |
|---|---|
protected static HashMap<String,Color> |
htmlColors
HTML color lookup table. |
| Constructor Summary | |
|---|---|
mxHtmlColor()
|
|
| Method Summary | |
|---|---|
static String |
getHexColorString(Color color)
Returns a hex representation for the given color. |
static String |
hexString(Color color)
|
static Color |
parseColor(String str)
Convert a string representing a 24/32bit hex color value into a Color object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static HashMap<String,Color> htmlColors
| Constructor Detail |
|---|
public mxHtmlColor()
| Method Detail |
|---|
public static String hexString(Color color)
public static String getHexColorString(Color color)
color - Color to return the hex string for.
public static Color parseColor(String str)
throws NumberFormatException
str - the 24/32bit hex string value (ARGB)
NumberFormatException - if the specified string cannot be interpreted as a
hexidecimal integer
|
JGraph X 2.1.0.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||