bibliothek.extension.gui.dock.theme
Class EclipseTheme

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

public class EclipseTheme
extends BasicTheme

A theme imitating the look and feel of the Eclipse-IDE.

Author:
Janni Kovacs, Benjamin Sigg

Field Summary
static PropertyKey<ColorScheme> ECLIPSE_COLOR_SCHEME
          Access to the ColorScheme used for this theme
static PropertyKey<java.lang.Boolean> PAINT_ICONS_WHEN_DESELECTED
          Tells whether icons on tabs that are not selected should be painted or not.
static java.lang.String TAB_DOCK_TITLE
          The id of the DockTitleVersion that is intended to create DockTitles used as tabs by the DockTitleTab.
static PropertyKey<TabPainter> TAB_PAINTER
          Tells in which way the tabs should be painted.
static PropertyKey<EclipseThemeConnector> THEME_CONNECTOR
          Provides additional dockable-wise information used to layout components in the EclipseTheme.
 
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, STATION_PAINT
 
Constructor Summary
EclipseTheme()
          Creates a new theme
 
Method Summary
 EclipseThemeConnector getThemeConnector(DockController controller)
          Gets the connector which is used for decisions which are normally altered by the client.
 void install(DockController controller)
          Installs the basic items of this theme, ignoring any DockThemeExtension.
 void uninstall(DockController controller)
          Uninstalls this theme from controller.
 
Methods inherited from class bibliothek.gui.dock.themes.BasicTheme
getColorScheme, getCombiner, getController, getDisplayFactory, getDockableSelection, getMovingImageFactory, getPaint, getTabPlacement, getTitleFactory, install, setColorScheme, setColorSchemeKey, setCombiner, setCombiner, setDisplayerFactory, setDisplayerFactory, setDockableSelection, setDockableSelection, setMovingImageFactory, setMovingImageFactory, setPaint, setPaint, 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

PAINT_ICONS_WHEN_DESELECTED

public static final PropertyKey<java.lang.Boolean> PAINT_ICONS_WHEN_DESELECTED
Tells whether icons on tabs that are not selected should be painted or not.


TAB_PAINTER

public static final PropertyKey<TabPainter> TAB_PAINTER
Tells in which way the tabs should be painted.

See Also:
ArchGradientPainter, RectGradientPainter

THEME_CONNECTOR

public static final PropertyKey<EclipseThemeConnector> THEME_CONNECTOR
Provides additional dockable-wise information used to layout components in the EclipseTheme. Note that changing this property will show full effect only after re-installing the EclipseTheme.

See Also:
DefaultEclipseThemeConnector

ECLIPSE_COLOR_SCHEME

public static final PropertyKey<ColorScheme> ECLIPSE_COLOR_SCHEME
Access to the ColorScheme used for this theme


TAB_DOCK_TITLE

public static final java.lang.String TAB_DOCK_TITLE
The id of the DockTitleVersion that is intended to create DockTitles used as tabs by the DockTitleTab. Clients which want to use DockTitles as tabs, should exchange the TabPainter by executing this code:
controller.getProperties().set( EclipseTheme.TAB_PAINTER, DockTitleTab.FACTORY );

See Also:
Constant Field Values
Constructor Detail

EclipseTheme

public EclipseTheme()
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

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

getThemeConnector

public EclipseThemeConnector getThemeConnector(DockController controller)
Gets the connector which is used for decisions which are normally altered by the client.

Parameters:
controller - the controller in whose realm the decisions will take effect.
Returns:
the connector, either the connector that is installed in the DockProperties under THEME_CONNECTOR or a default-value.