net.infonode.gui.colorprovider

Class ColorProviderUtil

public class ColorProviderUtil extends Object

Utility methods for {@link ColorProvider}'s.

Version: $Revision: 1.5 $

Author: $Author: jesper $

Method Summary
static ColorProvidergetColorProvider(Color color, ColorProvider defaultProvider)
Returns a {@link ColorProvider} for the color.

Method Detail

getColorProvider

public static ColorProvider getColorProvider(Color color, ColorProvider defaultProvider)
Returns a {@link 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