Package 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: 13477 $
Author:
  Mark Hall (mhall@cs.waikato.ac.nz)

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static class`
  `VisualizeUtils.VisualizeDefaults`
  Defaults for the 2D scatter plot and attribute bars

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static int`
  `MAX_PRECISION`
  Default maximum precision for the display of numeric values

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `VisualizeUtils()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `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

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### MAX_PRECISION

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

- ## Constructor Details

  - ### VisualizeUtils

    public VisualizeUtils()

- ## Method Details

  - ### processColour

    public 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.