|
||||||||||
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 | |
---|---|
private Combiner |
combiner
combines several Dockables |
private DisplayerFactory |
displayerFactory
creates panels for Dockables |
private StationPaint |
paint
paints on stations |
private DockTitleFactory |
titleFactory
creates titles Dockables |
private MovingTitleGetter |
titleGetter
selects the title which should be displayed when moving a dockable |
Constructor Summary | |
---|---|
BasicTheme()
Creates a new BasicTheme . |
Method Summary | |
---|---|
Combiner |
getCombiner(DockStation station)
Gets the Combiner for station . |
DisplayerFactory |
getDisplayFactory(DockStation station)
Gets a displayer factory for station . |
MovingTitleGetter |
getMovingTitleGetter(DockController controller)
Gets a pseudo factory for titles 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 . |
void |
setCombiner(Combiner combiner)
Sets the Combiner of this theme. |
void |
setDisplayerFactory(DisplayerFactory factory)
Sets the DisplayerFactory of this theme. |
void |
setMovingTitleGetter(MovingTitleGetter titleGetter)
Sets the titleGetter-property. |
void |
setPaint(StationPaint paint)
Sets the StationPaint of this theme. |
void |
setTitleFactory(DockTitleFactory titleFactory)
Sets the DockTitleFactory of this station. |
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 |
Field Detail |
---|
private Combiner combiner
private StationPaint paint
private DisplayerFactory displayerFactory
private DockTitleFactory titleFactory
private MovingTitleGetter titleGetter
Constructor Detail |
---|
public BasicTheme()
BasicTheme
.
Method Detail |
---|
public 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 controllerpublic void setMovingTitleGetter(MovingTitleGetter titleGetter)
Dockable
titleGetter
- the new getter, not null
public void setCombiner(Combiner combiner)
Combiner
of this theme. The combiner is used to
merge two Dockables.
combiner
- the combiner, not null
public void setPaint(StationPaint paint)
StationPaint
of this theme. The paint is used to
draw markings on stations.
paint
- the paint, not null
public void setDisplayerFactory(DisplayerFactory factory)
DisplayerFactory
of this theme. The factory is needed
to create DockableDisplayer
.
factory
- the factory, not null
public void setTitleFactory(DockTitleFactory titleFactory)
DockTitleFactory
of this station. The factory is
used to create DockTitles
for some Dockables.
titleFactory
- the factory, not null
public MovingTitleGetter getMovingTitleGetter(DockController controller)
DockTheme
getMovingTitleGetter
in interface DockTheme
controller
- the controller for which the factory is needed
public Combiner getCombiner(DockStation station)
DockTheme
station
.
getCombiner
in interface DockTheme
station
- the station whose combiner is searched
station
public StationPaint getPaint(DockStation station)
DockTheme
station
.
getPaint
in interface DockTheme
station
- the station to paint on
station
public DisplayerFactory getDisplayFactory(DockStation station)
DockTheme
station
.
getDisplayFactory
in interface DockTheme
station
- the station on which the created DockableDisplayer
is shown
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |