org.dishevelled.colorscheme.impl
Class ColorSchemes

java.lang.Object
  extended by org.dishevelled.colorscheme.impl.ColorSchemes

public final class ColorSchemes
extends Object

Color schemes.

Version:
$Revision$ $Date$
Author:
Michael Heuer

Method Summary
static ColorScheme getContinuousColorScheme(String name, int colors, Interpolation interpolation)
          Create and return a continuous color scheme with the specified name, number of colors, and interpolation, if any.
static ColorScheme getDiscreteColorScheme(String name, int colors, Interpolation interpolation)
          Create and return a discrete color scheme with the specified name, number of colors, and interpolation, if any.
static ColorScheme parseColorScheme(String value)
          Parse the specified value into a color scheme.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseColorScheme

public static ColorScheme parseColorScheme(String value)
Parse the specified value into a color scheme.

Parameters:
value - value to parse
Returns:
the specified value parsed into a color scheme

getDiscreteColorScheme

public static ColorScheme getDiscreteColorScheme(String name,
                                                 int colors,
                                                 Interpolation interpolation)
Create and return a discrete color scheme with the specified name, number of colors, and interpolation, if any. The color schemes are defined in a simple XML format and read from the color-scheme library classpath.

Parameters:
name - name
colors - number of colors
interpolation - interpolation, must not be null
Returns:
a discrete color scheme with the specified name, number of colors, and interpolation, or null if no such discrete color scheme exists

getContinuousColorScheme

public static ColorScheme getContinuousColorScheme(String name,
                                                   int colors,
                                                   Interpolation interpolation)
Create and return a continuous color scheme with the specified name, number of colors, and interpolation, if any. The color schemes are defined in a simple XML format and read from the color-scheme library classpath.

Parameters:
name - name
colors - number of colors
interpolation - interpolation, must not be null
Returns:
a continuous color scheme with the specified name, number of colors, and interpolation, or null if no such continuous color scheme exists


Copyright (c) 2009-2012 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).