public class EclipseTheme extends BasicTheme
Modifier and Type | Field and Description |
---|---|
static PropertyKey<ColorScheme> |
ECLIPSE_COLOR_SCHEME
Access to the
ColorScheme used for this theme |
static PropertyKey<Boolean> |
PAINT_ICONS_WHEN_DESELECTED
Tells whether icons on tabs that are not selected should be painted or not.
|
static String |
TAB_DOCK_TITLE
Deprecated.
While still possible to use, implementing a custom
TabPainter is the preferred option to
replace tabs |
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.
|
BASIC_COLOR_SCHEME
BACKGROUND_PAINT, BORDER_MODIFIER, COMBINER, DISPLAYER_FACTORY, DOCKABLE_MOVING_IMAGE_FACTORY, DOCKABLE_SELECTION, SPAN_FACTORY, STATION_PAINT
Constructor and Description |
---|
EclipseTheme()
Creates a new theme
|
Modifier and Type | Method and Description |
---|---|
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 . |
getColorScheme, getCombiner, getController, getDisplayFactory, 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
public static final PropertyKey<Boolean> PAINT_ICONS_WHEN_DESELECTED
public static final PropertyKey<TabPainter> TAB_PAINTER
ArchGradientPainter
,
RectGradientPainter
public static final PropertyKey<EclipseThemeConnector> THEME_CONNECTOR
DefaultEclipseThemeConnector
public static final PropertyKey<ColorScheme> ECLIPSE_COLOR_SCHEME
ColorScheme
used for this theme@Deprecated public static final String TAB_DOCK_TITLE
TabPainter
is the preferred option to
replace tabsDockTitleVersion
that is intended to create
DockTitle
s used as tabs by the DockTitleTab
. Clients
which want to use DockTitle
s as tabs, should exchange the
TabPainter
by executing this code:controller.getProperties().set( EclipseTheme.TAB_PAINTER, DockTitleTab.FACTORY );
public void install(DockController controller)
BasicTheme
DockThemeExtension
.install
in class BasicTheme
controller
- the new owner of this themepublic void uninstall(DockController controller)
DockTheme
controller
. The theme
has to remove all listeners it added.uninstall
in interface DockTheme
uninstall
in class BasicTheme
controller
- the controllerpublic EclipseThemeConnector getThemeConnector(DockController controller)
controller
- the controller in whose realm the decisions will take
effect.DockProperties
under THEME_CONNECTOR
or
a default-value.