public class VisualizeUtils extends Object
Constructor and Description |
---|
VisualizeUtils() |
Modifier and Type | Method and Description |
---|---|
static Color |
processColour(String colourDef,
Color defaultColour)
Parses a string containing either a named colour or r,g,b values.
|
public static Color processColour(String colourDef, Color defaultColour)
colourDef
- the string containing the named colour (or r,g,b)defaultColour
- the colour to return if parsing failsCopyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.