bibliothek.gui.dock.themes.color
Class SingleColorBridgeFactory

java.lang.Object
  extended by bibliothek.gui.dock.themes.color.SingleColorBridgeFactory
All Implemented Interfaces:
ColorBridgeFactory

public class SingleColorBridgeFactory
extends Object
implements ColorBridgeFactory

A ColorBridgeFactory that always returns the same instance of ColorBridge.

Author:
Benjamin Sigg

Constructor Summary
SingleColorBridgeFactory(ColorBridge bridge)
          Creates a new factory.
 
Method Summary
 ColorBridge create(ColorManager manager)
          Creates a new bridge for manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleColorBridgeFactory

public SingleColorBridgeFactory(ColorBridge bridge)
Creates a new factory.

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

create

public ColorBridge create(ColorManager manager)
Description copied from interface: ColorBridgeFactory
Creates a new bridge for manager.

Specified by:
create in interface ColorBridgeFactory
Parameters:
manager - the manager which will use the bridge
Returns:
the new bridge