bibliothek.gui.dock.themes.color
Class SingleColorProviderFactory<D extends DockColor>

java.lang.Object
  extended by bibliothek.gui.dock.themes.color.SingleColorProviderFactory<D>
Type Parameters:
D - the kind of DockColors this factories child will handle
All Implemented Interfaces:
ColorProviderFactory<D,ColorProvider<D>>

public class SingleColorProviderFactory<D extends DockColor>
extends Object
implements ColorProviderFactory<D,ColorProvider<D>>

A ColorProviderFactory that always returns the same instance of ColorProvider.

Author:
Benjamin Sigg

Constructor Summary
SingleColorProviderFactory(ColorProvider<D> provider)
          Creates a new factory.
 
Method Summary
 ColorProvider<D> create(ColorManager manager)
          Creates a new provider for manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleColorProviderFactory

public SingleColorProviderFactory(ColorProvider<D> provider)
Creates a new factory.

Parameters:
provider - the provider which will be returned at create(ColorManager)
Method Detail

create

public ColorProvider<D> create(ColorManager manager)
Description copied from interface: ColorProviderFactory
Creates a new provider for manager.

Specified by:
create in interface ColorProviderFactory<D extends DockColor,ColorProvider<D extends DockColor>>
Parameters:
manager - the manager which will use the UIBridge.
Returns:
the new provider