bibliothek.gui.dock.themes.color
Class SingleColorProviderFactory<D extends DockColor>
java.lang.Object
bibliothek.gui.dock.themes.color.SingleColorProviderFactory<D>
- Type Parameters:
D
- the kind of DockColor
s 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingleColorProviderFactory
public SingleColorProviderFactory(ColorProvider<D> provider)
- Creates a new factory.
- Parameters:
provider
- the provider which will be returned at create(ColorManager)
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 ColorProvider
.
- Returns:
- the new provider