bibliothek.gui.dock.common.theme
Class CDockThemeFactory<D extends DockTheme>

java.lang.Object
  extended by bibliothek.gui.dock.common.theme.CDockThemeFactory<D>
Type Parameters:
D - the kind of theme that gets wrapped up
All Implemented Interfaces:
ThemeFactory

public abstract class CDockThemeFactory<D extends DockTheme>
extends Object
implements ThemeFactory

A factory that envelops another factory in order to build a CX-theme instead of a X-theme.

Author:
Benjamin Sigg

Constructor Summary
CDockThemeFactory(ThemePropertyFactory<D> delegate, CControl control)
          Creates a new factory.
 
Method Summary
abstract  DockTheme create(CControl control)
          Creates a new theme.
 DockTheme create(DockController controller)
          Creates a new theme.
 ThemeMeta createMeta(DockController controller)
          Gets meta information about this factory.
 CControl getControl()
          Gets the control for which this factory works.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDockThemeFactory

public CDockThemeFactory(ThemePropertyFactory<D> delegate,
                         CControl control)
Creates a new factory.

Parameters:
delegate - the factory that should be used as delegate to create the initial DockTheme.
control - the control for which this factory will work
Method Detail

getControl

public CControl getControl()
Gets the control for which this factory works.

Returns:
the control

create

public DockTheme create(DockController controller)
Description copied from interface: ThemeFactory
Creates a new theme.

Specified by:
create in interface ThemeFactory
Parameters:
controller - the controller in whose realm the theme will be used
Returns:
the new theme

create

public abstract DockTheme create(CControl control)
Creates a new theme.

Parameters:
control - the control in whose realm the theme will be used
Returns:
the new theme

createMeta

public ThemeMeta createMeta(DockController controller)
Description copied from interface: ThemeFactory
Gets meta information about this factory.

Specified by:
createMeta in interface ThemeFactory
Parameters:
controller - the controller in whose realm the meta information will be displayed
Returns:
the new meta information