weka.gui.visualize
Class VisualizeUtils

java.lang.Object
  extended byweka.gui.visualize.VisualizeUtils

public class VisualizeUtils
extends java.lang.Object

This class contains utility routines for visualization

Version:
$Revision: 1.7 $
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
 
Constructor Summary
VisualizeUtils()
           
 
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
 

Field Detail

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

Constructor Detail

VisualizeUtils

public VisualizeUtils()
Method Detail

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.