|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.common.theme.CDockTheme<D>
D - the kind of theme that is wrapped by this CDockThemepublic class CDockTheme<D extends DockTheme>
A DockTheme that wraps another theme and works within
the special environment the common-project provides.
| Field Summary |
|---|
| Fields inherited from interface bibliothek.gui.DockTheme |
|---|
BACKGROUND_PAINT, BORDER_MODIFIER, COMBINER, DISPLAYER_FACTORY, DOCKABLE_MOVING_IMAGE_FACTORY, DOCKABLE_SELECTION, STATION_PAINT |
| Constructor Summary | |
|---|---|
CDockTheme(D delegate)
Creates a new theme |
|
CDockTheme(D theme,
DockTheme delegate)
Creates a new theme. |
|
| Method Summary | |
|---|---|
Combiner |
getCombiner(DockStation station)
Gets the Combiner for station. |
DisplayerFactory |
getDisplayFactory(DockStation station)
Gets a displayer factory for station. |
DockableSelection |
getDockableSelection(DockController controller)
Gets a selector for Dockables. |
DockableMovingImageFactory |
getMovingImageFactory(DockController controller)
Gets a factory for images which are moved around by the user. |
StationPaint |
getPaint(DockStation station)
Gets the paint which is used to draw things onto station. |
DockTitleFactory |
getTitleFactory(DockController controller)
Gets the default DockTitleFactory which is used if no other factory is set. |
protected void |
initDefaultFontBridges(CControl control)
Adds the default FontBridgeFactorys to this theme. |
protected void |
install(DockController controller)
Installs this theme at controller. |
void |
install(DockController controller,
DockThemeExtension[] extensions)
Install this theme at controller. |
D |
intern()
Gets the internal representation of this theme. |
void |
putColorBridgeFactory(Path kind,
ColorBridgeFactory factory)
Sets the ColorBridge which should be used for a certain kind
of DockColors. |
void |
putFontBridgeFactory(Path kind,
FontBridgeFactory factory)
Sets the FontBridge which should be used for a certain kind
of DockFonts. |
void |
uninstall(DockController controller)
Uninstalls this theme from controller. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CDockTheme(D delegate)
delegate - the theme to which all work is delegated
public CDockTheme(D theme,
DockTheme delegate)
theme - the theme which is represented by this CDockTheme.delegate - the theme to which all work is delegated| Method Detail |
|---|
protected void initDefaultFontBridges(CControl control)
FontBridgeFactorys to this theme.
control - the owner of this themepublic D intern()
public Combiner getCombiner(DockStation station)
DockThemestation.UIValue of type StationCombinerValue should
be installed at the local ThemeManager to retrieve the value.
getCombiner in interface DockThemestation - the station whose combiner is searched
stationpublic DisplayerFactory getDisplayFactory(DockStation station)
DockThemestation.UIValue of type DefaultDisplayerFactoryValue should
be installed at the local ThemeManager to retrieve the value.
getDisplayFactory in interface DockThemestation - the station on which the created DockableDisplayer
is shown
public DockableMovingImageFactory getMovingImageFactory(DockController controller)
DockThemeDockTheme.DOCKABLE_MOVING_IMAGE_FACTORY
should be used.
getMovingImageFactory in interface DockThemecontroller - the controller for which the factory is needed
public StationPaint getPaint(DockStation station)
DockThemestation.UIValue of type DefaultStationPaintValue should
be installed at the local ThemeManager to retrieve the value.
getPaint in interface DockThemestation - the station to paint on
stationpublic DockTitleFactory getTitleFactory(DockController controller)
DockThemeDockTitleFactory which is used if no other factory is set.DockTitleManager using
the key DockTitleManager.THEME_FACTORY_ID and priority Priority.THEME. A
theme may use the manager to change the factory at any time.
getTitleFactory in interface DockThemecontroller - the controller using this theme
public DockableSelection getDockableSelection(DockController controller)
DockThemeDockables. This method should not be invoked directly, instead
the property key DockTheme.DOCKABLE_SELECTION should be used.
getDockableSelection in interface DockThemecontroller - the controller for which the selector will be used
public void putColorBridgeFactory(Path kind,
ColorBridgeFactory factory)
ColorBridge which should be used for a certain kind
of DockColors. The bridges will be installed with priority
Priority.DEFAULT at all ColorManagers.
kind - the kind of DockColor the bridges will handlefactory - the factory for new bridges, can be null
public void putFontBridgeFactory(Path kind,
FontBridgeFactory factory)
FontBridge which should be used for a certain kind
of DockFonts. The bridges will be installed with priority
Priority.DEFAULT at all FontManagers.
kind - the kind of DockFont the bridges will handlefactory - the factory for new bridges, can be null
public void install(DockController controller,
DockThemeExtension[] extensions)
DockThemecontroller. The theme
may change any properties it likes.
install in interface DockThemecontroller - the controllerextensions - a set of extensions specifically for this themeprotected void install(DockController controller)
controller.
controller - the new owner of this themepublic void uninstall(DockController controller)
DockThemecontroller. The theme
has to remove all listeners it added.
uninstall in interface DockThemecontroller - the controller
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||