net.infonode.gui.colorprovider
Class ColorProviderUtil

java.lang.Object
  extended by net.infonode.gui.colorprovider.ColorProviderUtil

public class ColorProviderUtil
extends java.lang.Object

Utility methods for ColorProvider's.

Version:
$Revision: 1.5 $
Author:
$Author: jesper $

Constructor Summary
private ColorProviderUtil()
           
 
Method Summary
static ColorProvider getColorProvider(java.awt.Color color, ColorProvider defaultProvider)
          Returns a ColorProvider for the color.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorProviderUtil

private ColorProviderUtil()
Method Detail

getColorProvider

public static ColorProvider getColorProvider(java.awt.Color color,
                                             ColorProvider defaultProvider)
Returns a ColorProvider for the color. If the color is null the default provider is returned.

Parameters:
color - the color for which to return a provider
defaultProvider - the default provider
Returns:
a color provider for the color, if the color is null the default provider is returned