public class VisualizeUtils extends Object
Modifier and Type | Field and Description |
---|---|
protected static int |
MAX_PRECISION
Default maximum precision for the display of numeric values
|
protected static String |
PROPERTY_FILE
The name of the properties file
|
protected static Properties |
VISUALIZE_PROPERTIES
Contains the visualization properties
|
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.
|
protected static String PROPERTY_FILE
protected static Properties VISUALIZE_PROPERTIES
protected static int MAX_PRECISION
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 © 2015 University of Waikato, Hamilton, NZ. All rights reserved.