Class BubbleDisplayerTransmitter
java.lang.Object
bibliothek.gui.dock.common.intern.ui.UITransmitter<Color,DockColor>
bibliothek.gui.dock.common.intern.color.ColorTransmitter
bibliothek.gui.dock.common.intern.color.BubbleDisplayerTransmitter
- All Implemented Interfaces:
ColorBridge,UIBridge<Color,DockColor>
A transmitter connecting
ColorMap and BubbleDisplayer.- Author:
- Benjamin Sigg
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ColorConverts a color given by aColorMapto the color needed on the displayer.protected ColorconvertFocused(Color source, String key) Converts a color given by aColorMapto the color needed on the displayer.protected ColorSearches for a color that fits for the color with nameid.protected ColorCalled when a value needs to be set whose key has been registered at thisUITransmitter.protected CDockablegetDockable(DockColor observer) Gets theCDockablewhich is associated withobserver.protected voidCalled when a value in an observed map has changed.Methods inherited from class bibliothek.gui.dock.common.intern.color.ColorTransmitter
connect, disconnect, getFirstNonNullMethods inherited from class bibliothek.gui.dock.common.intern.ui.UITransmitter
add, remove, set, set, setControl
-
Constructor Details
-
BubbleDisplayerTransmitter
Creates a new transmitter.- Parameters:
manager- the source for new colors
-
-
Method Details
-
get
Description copied from class:UITransmitterCalled when a value needs to be set whose key has been registered at thisUITransmitter.- Specified by:
getin classUITransmitter<Color,DockColor> - Parameters:
color- the original valueid- the key of the valueobserver- the destination for the value- Returns:
- the value that should be set to
observer
-
get
Searches for a color that fits for the color with nameid.- Parameters:
color- the original colorid- the name of the requested colordockable- the element for which the color will be used- Returns:
- either a new color or
color
-
update
Description copied from class:UITransmitterCalled when a value in an observed map has changed.- Specified by:
updatein classUITransmitter<Color,DockColor> - Parameters:
dockable- the owner of the mapkey- the name of the changed valuecolor- the new value in the map, can benull
-
convert
Converts a color given by aColorMapto the color needed on the displayer.- Parameters:
source- the source colorkey- the color that is needed- Returns:
- the converted
source, can benull
-
convertFocused
Converts a color given by aColorMapto the color needed on the displayer.- Parameters:
source- the source colorkey- the color that is needed, the color is needed for a focused view- Returns:
- the converted
source, can benull
-
getDockable
Description copied from class:UITransmitterGets theCDockablewhich is associated withobserver.- Specified by:
getDockablein classUITransmitter<Color,DockColor> - Parameters:
observer- some observer- Returns:
- the associated dockable or
null
-