|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.common.intern.theme.CDockTheme<D>
public class CDockTheme<D extends DockTheme>
A DockTheme
that wraps another theme and works within
the special environment the common-project provides.
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 Dockable s. |
|
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.To replace all factories, the method DockTitleManager.registerTheme(String, DockTitleFactory)
should be used. |
|
void |
install(DockController controller)
Install this theme at controller . |
|
D |
intern()
Gets the internal representation of this theme. |
|
|
putColorProviderFactory(Class<C> kind,
ColorProviderFactory<C,? extends ColorProvider<C>> factory)
Sets the ColorProvider which should be used for a certain kind
of DockColor s. |
|
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 delegatedpublic CDockTheme(D theme, DockTheme delegate)
theme
- the theme which is represented by this CDockTheme
.delegate
- the theme to which all work is delegatedMethod Detail |
---|
public D intern()
public Combiner getCombiner(DockStation station)
DockTheme
station
.
getCombiner
in interface DockTheme
station
- the station whose combiner is searched
station
public DisplayerFactory getDisplayFactory(DockStation station)
DockTheme
station
.
getDisplayFactory
in interface DockTheme
station
- the station on which the created DockableDisplayer
is shown
public DockableMovingImageFactory getMovingImageFactory(DockController controller)
DockTheme
getMovingImageFactory
in interface DockTheme
controller
- the controller for which the factory is needed
public StationPaint getPaint(DockStation station)
DockTheme
station
.
getPaint
in interface DockTheme
station
- the station to paint on
station
public DockTitleFactory getTitleFactory(DockController controller)
DockTheme
DockTitleFactory
which is used if no
other factory is set.DockTitleManager.registerTheme(String, DockTitleFactory)
should be used.
getTitleFactory
in interface DockTheme
controller
- the controller using this theme
public DockableSelection getDockableSelection(DockController controller)
DockTheme
Dockable
s.
getDockableSelection
in interface DockTheme
controller
- the controller for which the selector will be used
public <C extends DockColor> void putColorProviderFactory(Class<C> kind, ColorProviderFactory<C,? extends ColorProvider<C>> factory)
ColorProvider
which should be used for a certain kind
of DockColor
s. The providers will be installed with priority
Priority.DEFAULT
at all ColorManager
s.
C
- the kind of DockColor
the providers will handlekind
- the kind of DockColor
the providers will handlefactory
- the factory for new providerspublic void install(DockController controller)
DockTheme
controller
. The theme
may change any properties it likes.
install
in interface DockTheme
controller
- the controllerpublic void uninstall(DockController controller)
DockTheme
controller
. The theme
has to remove all listeners it added.
uninstall
in interface DockTheme
controller
- the controller
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |