Package bibliothek.gui.dock.common.theme
Class CDockTheme<D extends DockTheme>
java.lang.Object
bibliothek.gui.dock.common.theme.CDockTheme<D>
- Type Parameters:
D- the kind of theme that is wrapped by thisCDockTheme
- All Implemented Interfaces:
DockTheme
- Direct Known Subclasses:
CBasicTheme,CBubbleTheme,CEclipseTheme,CFlatTheme,CSmoothTheme
A
DockTheme that wraps another theme and works within
the special environment the common-project provides.- Author:
- Benjamin Sigg
-
Field Summary
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
ConstructorsConstructorDescriptionCDockTheme(D delegate) Creates a new themeCDockTheme(D theme, DockTheme delegate) Creates a new theme. -
Method Summary
Modifier and TypeMethodDescriptiongetCombiner(DockStation station) getDisplayFactory(DockStation station) getDockableSelection(DockController controller) getMovingImageFactory(DockController controller) getPaint(DockStation station) getTitleFactory(DockController controller) protected voidinitDefaultFontBridges(CControl control) Adds the defaultFontBridgeFactorys to this theme.protected voidinstall(DockController controller) Installs this theme atcontroller.voidinstall(DockController controller, DockThemeExtension[] extensions) intern()Gets the internal representation of this theme.voidputColorBridgeFactory(Path kind, ColorBridgeFactory factory) Sets theColorBridgewhich should be used for a certain kind ofDockColors.voidputFontBridgeFactory(Path kind, FontBridgeFactory factory) Sets theFontBridgewhich should be used for a certain kind ofDockFonts.voiduninstall(DockController controller)
-
Constructor Details
-
CDockTheme
Creates a new theme- Parameters:
delegate- the theme to which all work is delegated
-
CDockTheme
Creates a new theme.- Parameters:
theme- the theme which is represented by thisCDockTheme.delegate- the theme to which all work is delegated
-
-
Method Details
-
initDefaultFontBridges
Adds the defaultFontBridgeFactorys to this theme.- Parameters:
control- the owner of this theme
-
intern
Gets the internal representation of this theme.- Returns:
- the internal representation
-
getCombiner
- Specified by:
getCombinerin interfaceDockTheme
-
getDisplayFactory
- Specified by:
getDisplayFactoryin interfaceDockTheme
-
getMovingImageFactory
- Specified by:
getMovingImageFactoryin interfaceDockTheme
-
getPaint
-
getTitleFactory
- Specified by:
getTitleFactoryin interfaceDockTheme
-
getDockableSelection
- Specified by:
getDockableSelectionin interfaceDockTheme
-
putColorBridgeFactory
Sets theColorBridgewhich should be used for a certain kind ofDockColors. The bridges will be installed with priorityPriority.DEFAULTat allColorManagers.- Parameters:
kind- the kind ofDockColorthe bridges will handlefactory- the factory for new bridges, can benull
-
putFontBridgeFactory
Sets theFontBridgewhich should be used for a certain kind ofDockFonts. The bridges will be installed with priorityPriority.DEFAULTat allFontManagers.- Parameters:
kind- the kind ofDockFontthe bridges will handlefactory- the factory for new bridges, can benull
-
install
-
install
Installs this theme atcontroller.- Parameters:
controller- the new owner of this theme
-
uninstall
-