bibliothek.extension.gui.dock.theme
Class FlatTheme

java.lang.Object
  extended by bibliothek.gui.dock.themes.BasicTheme
      extended by bibliothek.extension.gui.dock.theme.FlatTheme
All Implemented Interfaces:
DockTheme

public class FlatTheme
extends BasicTheme

A theme that uses very few borders.

Author:
Benjamin Sigg

Field Summary
static PropertyKey<DockActionDistributor> ACTION_DISTRIBUTOR
          Key for a property pointing to a DockActionDistributor.
static PropertyKey<ColorScheme> FLAT_COLOR_SCHEME
          the key to set the ColorScheme of this theme
protected  DisplayerFactory splitDisplayFactory
          A special factory for the SplitDockStation
 
Fields inherited from class bibliothek.gui.dock.themes.BasicTheme
BASIC_COLOR_SCHEME
 
Fields inherited from interface bibliothek.gui.DockTheme
BACKGROUND_PAINT, BORDER_MODIFIER, COMBINER, DISPLAYER_FACTORY, DOCKABLE_MOVING_IMAGE_FACTORY, DOCKABLE_SELECTION, SPAN_FACTORY, STATION_PAINT
 
Constructor Summary
FlatTheme()
          Creates a new theme
 
Method Summary
protected  MiniButton<BasicButtonModel> createTitleMiniButton(BasicTrigger trigger, BasicResourceInitializer initializer)
          Creates a MiniButton in a flat look.
 DisplayerFactory getDisplayFactory(DockStation station)
          Gets a displayer factory for station.
This method should not be used directly, instead an UIValue of type DefaultDisplayerFactoryValue should be installed at the local ThemeManager to retrieve the value.
 DisplayerFactory getSplitDisplayFactory()
          Gets the special factory for the SplitDockStation.
 void install(DockController controller)
          Installs the basic items of this theme, ignoring any DockThemeExtension.
 void setSplitDisplayFactory(DisplayerFactory splitDisplayFactory)
          Sets the DisplayerFactory that is used for the SplitDockStation.
 void uninstall(DockController controller)
          Uninstalls this theme from controller.
 
Methods inherited from class bibliothek.gui.dock.themes.BasicTheme
getColorScheme, getCombiner, getController, getDockableSelection, getMovingImageFactory, getPaint, getTabPlacement, getTitleFactory, install, setColorScheme, setColorSchemeKey, setCombiner, setCombiner, setDisplayerFactory, setDisplayerFactory, setDockableSelection, setDockableSelection, setMovingImageFactory, setMovingImageFactory, setPaint, setPaint, setSpanFactory, setSpanFactory, setStackDockComponentFactory, setStackDockComponentFactory, setTabPlacement, setTabPlacement, setTitleFactory, setTitleFactory, updateColors, updateUI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

splitDisplayFactory

protected DisplayerFactory splitDisplayFactory
A special factory for the SplitDockStation


FLAT_COLOR_SCHEME

public static final PropertyKey<ColorScheme> FLAT_COLOR_SCHEME
the key to set the ColorScheme of this theme


ACTION_DISTRIBUTOR

public static final PropertyKey<DockActionDistributor> ACTION_DISTRIBUTOR
Key for a property pointing to a DockActionDistributor. This interface is responsible for distributing DockActions to tabs, titles and info components.

Constructor Detail

FlatTheme

public FlatTheme()
Creates a new theme

Method Detail

install

public void install(DockController controller)
Description copied from class: BasicTheme
Installs the basic items of this theme, ignoring any DockThemeExtension.

Overrides:
install in class BasicTheme
Parameters:
controller - the new owner of this theme

createTitleMiniButton

protected MiniButton<BasicButtonModel> createTitleMiniButton(BasicTrigger trigger,
                                                             BasicResourceInitializer initializer)
Creates a MiniButton in a flat look.

Parameters:
trigger - the trigger to invoke when the button has been clicked
initializer - a strategy to lazily initialize resources
Returns:
the new button

uninstall

public void uninstall(DockController controller)
Description copied from interface: DockTheme
Uninstalls this theme from controller. The theme has to remove all listeners it added.

Specified by:
uninstall in interface DockTheme
Overrides:
uninstall in class BasicTheme
Parameters:
controller - the controller

setSplitDisplayFactory

public void setSplitDisplayFactory(DisplayerFactory splitDisplayFactory)
Sets the DisplayerFactory that is used for the SplitDockStation. Normally all displayers do not have any border, but the displayers on a SplitDockStation may need a small border.

Parameters:
splitDisplayFactory - the factory

getSplitDisplayFactory

public DisplayerFactory getSplitDisplayFactory()
Gets the special factory for the SplitDockStation.

Returns:
the factory
See Also:
setSplitDisplayFactory(DisplayerFactory)

getDisplayFactory

public DisplayerFactory getDisplayFactory(DockStation station)
Description copied from interface: DockTheme
Gets a displayer factory for station.
This method should not be used directly, instead an UIValue of type DefaultDisplayerFactoryValue should be installed at the local ThemeManager to retrieve the value.

Specified by:
getDisplayFactory in interface DockTheme
Overrides:
getDisplayFactory in class BasicTheme
Parameters:
station - the station on which the created DockableDisplayer is shown
Returns:
the factory to create displayer