weka.gui.visualize
Class VisualizeUtils
java.lang.Object
|
+--weka.gui.visualize.VisualizeUtils
- public class VisualizeUtils
- extends java.lang.Object
This class contains utility routines for visualization
- Author:
- Mark Hall (mhall@cs.waikato.ac.nz)
Field Summary |
protected static int |
MAX_PRECISION
Default maximum precision for the display of numeric values |
protected static java.lang.String |
PROPERTY_FILE
The name of the properties file |
protected static java.util.Properties |
VISUALIZE_PROPERTIES
Contains the visualization properties |
Method Summary |
protected static java.awt.Color |
processColour(java.lang.String colourDef,
java.awt.Color defaultColour)
Parses a string containing either a named colour or r,g,b values. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROPERTY_FILE
protected static java.lang.String PROPERTY_FILE
- The name of the properties file
VISUALIZE_PROPERTIES
protected static java.util.Properties VISUALIZE_PROPERTIES
- Contains the visualization properties
MAX_PRECISION
protected static int MAX_PRECISION
- Default maximum precision for the display of numeric values
VisualizeUtils
public VisualizeUtils()
processColour
protected static java.awt.Color processColour(java.lang.String colourDef,
java.awt.Color defaultColour)
- Parses a string containing either a named colour or r,g,b values.
- Parameters:
colourDef
- the string containing the named colour (or r,g,b)defaultColour
- the colour to return if parsing fails- Returns:
- the Color corresponding to the string.