public class FlatTheme extends BasicTheme
theme
that uses very few borders.Modifier and Type | Field and Description |
---|---|
static PropertyKey<DockActionDistributor> |
ACTION_DISTRIBUTOR
Key for a property pointing to a
DockActionDistributor . |
static PropertyKey<ColorScheme> |
FLAT_COLOR_SCHEME
the key to set the
ColorScheme of this theme |
protected DisplayerFactory |
splitDisplayFactory
A special factory for the
SplitDockStation |
BASIC_COLOR_SCHEME
BACKGROUND_PAINT, BORDER_MODIFIER, COMBINER, DISPLAYER_FACTORY, DOCKABLE_MOVING_IMAGE_FACTORY, DOCKABLE_SELECTION, SPAN_FACTORY, STATION_PAINT
Constructor and Description |
---|
FlatTheme()
Creates a new theme
|
Modifier and Type | Method and Description |
---|---|
protected MiniButton<BasicButtonModel> |
createTitleMiniButton(BasicTrigger trigger,
BasicResourceInitializer initializer)
Creates a
MiniButton in a flat look. |
DisplayerFactory |
getDisplayFactory(DockStation station)
Gets a displayer factory for
station .This method should not be used directly, instead an UIValue of type DefaultDisplayerFactoryValue should
be installed at the local ThemeManager to retrieve the value. |
DisplayerFactory |
getSplitDisplayFactory()
Gets the special factory for the
SplitDockStation . |
void |
install(DockController controller)
Installs the basic items of this theme, ignoring any
DockThemeExtension . |
void |
setSplitDisplayFactory(DisplayerFactory splitDisplayFactory)
Sets the
DisplayerFactory that is used for the SplitDockStation . |
void |
uninstall(DockController controller)
Uninstalls this theme from
controller . |
getColorScheme, getCombiner, getController, getDockableSelection, getMovingImageFactory, getPaint, getTabPlacement, getTitleFactory, install, setColorScheme, setColorSchemeKey, setCombiner, setCombiner, setDisplayerFactory, setDisplayerFactory, setDockableSelection, setDockableSelection, setMovingImageFactory, setMovingImageFactory, setPaint, setPaint, setSpanFactory, setSpanFactory, setStackDockComponentFactory, setStackDockComponentFactory, setTabPlacement, setTabPlacement, setTitleFactory, setTitleFactory, updateColors, updateUI
protected DisplayerFactory splitDisplayFactory
SplitDockStation
public static final PropertyKey<ColorScheme> FLAT_COLOR_SCHEME
ColorScheme
of this themepublic static final PropertyKey<DockActionDistributor> ACTION_DISTRIBUTOR
DockActionDistributor
. This interface is responsible for distributing
DockAction
s to tabs, titles and info components.public void install(DockController controller)
BasicTheme
DockThemeExtension
.install
in class BasicTheme
controller
- the new owner of this themeprotected MiniButton<BasicButtonModel> createTitleMiniButton(BasicTrigger trigger, BasicResourceInitializer initializer)
MiniButton
in a flat look.trigger
- the trigger to invoke when the button has been clickedinitializer
- a strategy to lazily initialize resourcespublic void uninstall(DockController controller)
DockTheme
controller
. The theme
has to remove all listeners it added.uninstall
in interface DockTheme
uninstall
in class BasicTheme
controller
- the controllerpublic void setSplitDisplayFactory(DisplayerFactory splitDisplayFactory)
DisplayerFactory
that is used for the SplitDockStation
.
Normally all displayers do not have any border, but the displayers on
a SplitDockStation may need a small border.splitDisplayFactory
- the factorypublic DisplayerFactory getSplitDisplayFactory()
SplitDockStation
.setSplitDisplayFactory(DisplayerFactory)
public DisplayerFactory getDisplayFactory(DockStation station)
DockTheme
station
.UIValue
of type DefaultDisplayerFactoryValue
should
be installed at the local ThemeManager
to retrieve the value.getDisplayFactory
in interface DockTheme
getDisplayFactory
in class BasicTheme
station
- the station on which the created DockableDisplayer
is shown