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

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

public class MultiColorProviderFactory<D extends DockColor>
extends Object
implements ColorProviderFactory<D,MultiColorProvider<D>>

A factory for a MultiColorProvider, this factory can contain other factories to fill up the new MultiColorProvider.

Author:
Benjamin Sigg

Constructor Summary
MultiColorProviderFactory()
           
 
Method Summary
 MultiColorProvider<D> create(ColorManager manager)
          Creates a new provider for manager.
 void put(String key, ColorProviderFactory<? super D,?> provider)
          Sets the factory of a child of the MultiColorProvider which will be created by this factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiColorProviderFactory

public MultiColorProviderFactory()
Method Detail

put

public void put(String key,
                ColorProviderFactory<? super D,?> provider)
Sets the factory of a child of the MultiColorProvider which will be created by this factory.

Parameters:
key - the name of the child
provider - the child or null

create

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

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