weka.gui.visualize
Class VisualizeUtils

java.lang.Object
  |
  +--weka.gui.visualize.VisualizeUtils

public class VisualizeUtils
extends Object

This class contains utility routines for visualization

Version:
$Revision: 1.6 $
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 String PROPERTY_FILE
          The name of the properties file
protected static Properties VISUALIZE_PROPERTIES
          Contains the visualization properties
 
Constructor Summary
VisualizeUtils()
           
 
Method Summary
protected static Color processColour(String colourDef, 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
 

Field Detail

PROPERTY_FILE

protected static String PROPERTY_FILE
The name of the properties file


VISUALIZE_PROPERTIES

protected static Properties VISUALIZE_PROPERTIES
Contains the visualization properties


MAX_PRECISION

protected static int MAX_PRECISION
Default maximum precision for the display of numeric values

Constructor Detail

VisualizeUtils

public VisualizeUtils()
Method Detail

processColour

protected static Color processColour(String colourDef,
                                     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.