|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.themes.BasicTheme
public class BasicTheme
A theme that does not install anything and uses the
default-implementations off all factories. It is possible to replace
any of the factories.
| Field Summary | |
|---|---|
static PropertyKey<ColorScheme> |
BASIC_COLOR_SCHEME
the key to set the ColorScheme of this theme |
| Fields inherited from interface bibliothek.gui.DockTheme |
|---|
BACKGROUND_PAINT, BORDER_MODIFIER, COMBINER, DISPLAYER_FACTORY, DOCKABLE_MOVING_IMAGE_FACTORY, DOCKABLE_SELECTION, STATION_PAINT |
| Constructor Summary | |
|---|---|
BasicTheme()
Creates a new BasicTheme. |
|
| Method Summary | |
|---|---|
ColorScheme |
getColorScheme()
Gets the currently used color scheme |
Combiner |
getCombiner(DockStation station)
Gets the Combiner for station. |
DockController |
getController()
Gets the currently installed controller |
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. |
TabPlacement |
getTabPlacement()
Gets the side at which tabs are displayed. |
DockTitleFactory |
getTitleFactory(DockController controller)
Gets the default DockTitleFactory which is used if no other factory is set. |
protected void |
install(DockController controller)
Installs the basic items of this theme, ignoring any DockThemeExtension. |
void |
install(DockController controller,
DockThemeExtension[] extensions)
Install this theme at controller. |
void |
setColorScheme(ColorScheme colorScheme)
Sets the currently used set of colors. |
protected void |
setColorSchemeKey(PropertyKey<ColorScheme> key)
Sets the key that will be used to read the ColorScheme of this
theme from the DockProperties. |
void |
setCombiner(Combiner combiner)
Sets the Combiner of this theme. |
void |
setCombiner(Combiner combiner,
Priority priority)
Sets the Combiner of this theme. |
void |
setDisplayerFactory(DisplayerFactory factory)
Sets the DisplayerFactory of this theme. |
void |
setDisplayerFactory(DisplayerFactory factory,
Priority priority)
Sets the DisplayerFactory of this theme. |
void |
setDockableSelection(DockableSelection selection)
Sets how the user can select the focused Dockable. |
void |
setDockableSelection(DockableSelection selection,
Priority priority)
Sets how the user can select the focused Dockable. |
void |
setMovingImageFactory(DockableMovingImageFactory movingImage)
Sets the movingImage-property. |
void |
setMovingImageFactory(DockableMovingImageFactory movingImage,
Priority priority)
Sets the movingImage-property. |
void |
setPaint(StationPaint paint)
Sets the StationPaint of this theme. |
void |
setPaint(StationPaint paint,
Priority priority)
Sets the StationPaint of this theme. |
void |
setStackDockComponentFactory(StackDockComponentFactory stackDockComponentFactory)
Sets the factory which will be used to create components for StackDockStation. |
void |
setStackDockComponentFactory(StackDockComponentFactory stackDockComponentFactory,
Priority priority)
Sets the factory which will be used to create components for StackDockStation. |
void |
setTabPlacement(TabPlacement tabPlacement)
Sets the side at which tabs are to be displayed. |
void |
setTabPlacement(TabPlacement tabPlacement,
Priority priority)
Sets the side at which tabs are to be displayed. |
void |
setTitleFactory(DockTitleFactory titleFactory)
Sets the DockTitleFactory of this station. |
void |
setTitleFactory(DockTitleFactory titleFactory,
Priority priority)
Sets the DockTitleFactory of this station. |
void |
uninstall(DockController controller)
Uninstalls this theme from controller. |
protected void |
updateColors()
Called when the the colors of the ColorManager have to be updated. |
void |
updateUI()
Called when the LookAndFeel changed, should update colors, fonts, ... |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final PropertyKey<ColorScheme> BASIC_COLOR_SCHEME
ColorScheme of this theme
| Constructor Detail |
|---|
public BasicTheme()
BasicTheme.
| Method Detail |
|---|
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)
DockThemeExtension.
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 controllerpublic void updateUI()
LookAndFeel changed, should update colors, fonts, ...
protected void updateColors()
ColorManager have to be updated. This method reads
the current ColorScheme and installs it using
UIProperties.setScheme(Priority, bibliothek.gui.dock.util.UIScheme) with a priority
of Priority.CLIENT.
public DockController getController()
protected void setColorSchemeKey(PropertyKey<ColorScheme> key)
ColorScheme of this
theme from the DockProperties.
key - the new key, not nullsetColorScheme(ColorScheme)public void setColorScheme(ColorScheme colorScheme)
DockControllers
will change immediately.
colorScheme - the new scheme, null will
activate the default color scheme.public ColorScheme getColorScheme()
public void setStackDockComponentFactory(StackDockComponentFactory stackDockComponentFactory)
StackDockStation. Note that this property has to be set
before the theme is installed. Otherwise it will take no effect.
stackDockComponentFactory - the factory or null
public void setStackDockComponentFactory(StackDockComponentFactory stackDockComponentFactory,
Priority priority)
StackDockStation. Note that this property has to be set
before the theme is installed. Otherwise it will take no effect.
stackDockComponentFactory - the factory or nullpriority - the importance of the new setting (whether it should override existing settings or not).public void setMovingImageFactory(DockableMovingImageFactory movingImage)
Dockable
movingImage - the new factory
public void setMovingImageFactory(DockableMovingImageFactory movingImage,
Priority priority)
Dockable
movingImage - the new factorypriority - the importance of the new setting (whether it should override existing settings or not).public void setCombiner(Combiner combiner)
Combiner of this theme. The combiner is used to
merge two Dockables.
combiner - the combiner
public void setCombiner(Combiner combiner,
Priority priority)
Combiner of this theme. The combiner is used to
merge two Dockables.
combiner - the combinerpriority - the importance of the new setting (whether it should override existing settings or not).public void setPaint(StationPaint paint)
StationPaint of this theme. The paint is used to
draw markings on stations.
paint - the paint
public void setPaint(StationPaint paint,
Priority priority)
StationPaint of this theme. The paint is used to
draw markings on stations.
paint - the paintpriority - the importance of the new setting (whether it should override existing settings or not).public void setDisplayerFactory(DisplayerFactory factory)
DisplayerFactory of this theme. The factory is needed
to create DockableDisplayer.
factory - the factory
public void setDisplayerFactory(DisplayerFactory factory,
Priority priority)
DisplayerFactory of this theme. The factory is needed
to create DockableDisplayer.
factory - the factorypriority - the importance of the new setting (whether it should override existing settings or not).public void setTitleFactory(DockTitleFactory titleFactory)
DockTitleFactory of this station. The factory is
used to create DockTitles for some Dockables.
titleFactory - the factory
public void setTitleFactory(DockTitleFactory titleFactory,
Priority priority)
DockTitleFactory of this station. The factory is
used to create DockTitles for some Dockables.
titleFactory - the factorypriority - the importance of the new setting (whether it should override existing settings or not).public void setDockableSelection(DockableSelection selection)
Dockable.
selection - the new selector
public void setDockableSelection(DockableSelection selection,
Priority priority)
Dockable.
selection - the new selectorpriority - the importance of the new setting (whether it should override existing settings or not).public void setTabPlacement(TabPlacement tabPlacement)
DockController is installed, otherwise the
settings has no effect.
tabPlacement - the side at which to show tabs, may be null to
use the default value
public void setTabPlacement(TabPlacement tabPlacement,
Priority priority)
DockController is installed, otherwise the
settings has no effect.
tabPlacement - the side at which to show tabs, may be null to
use the default valuepriority - the importance of the new setting (whether it should override existing settings or not).public TabPlacement getTabPlacement()
nullpublic 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 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 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 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 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||