public class BubbleDisplayerTransmitter extends ColorTransmitter
ColorMap and BubbleDisplayer.| Constructor and Description |
|---|
BubbleDisplayerTransmitter(ColorManager manager)
Creates a new transmitter.
|
| Modifier and Type | Method and Description |
|---|---|
protected Color |
convert(Color source,
String key)
Converts a color given by a
ColorMap to the color needed
on the displayer. |
protected Color |
convertFocused(Color source,
String key)
Converts a color given by a
ColorMap to the color needed
on the displayer. |
protected Color |
get(Color color,
String id,
CDockable dockable)
Searches for a color that fits for the color with name
id. |
protected Color |
get(Color color,
String id,
DockColor observer)
Called when a value needs to be set whose key has been registered at
this
UITransmitter. |
protected CDockable |
getDockable(DockColor observer)
Gets the
CDockable which is associated with observer. |
protected void |
update(CDockable dockable,
String key,
Color color)
Called when a value in an observed map has changed.
|
connect, disconnect, getFirstNonNulladd, remove, set, set, setControlpublic BubbleDisplayerTransmitter(ColorManager manager)
manager - the source for new colorsprotected Color get(Color color, String id, DockColor observer)
UITransmitterUITransmitter.get in class UITransmitter<Color,DockColor>color - the original valueid - the key of the valueobserver - the destination for the valueobserverprotected Color get(Color color, String id, CDockable dockable)
id.color - the original colorid - the name of the requested colordockable - the element for which the color will be usedcolorprotected void update(CDockable dockable, String key, Color color)
UITransmitterupdate in class UITransmitter<Color,DockColor>dockable - the owner of the mapkey - the name of the changed valuecolor - the new value in the map, can be nullprotected Color convert(Color source, String key)
ColorMap to the color needed
on the displayer.source - the source colorkey - the color that is neededsource, can be nullprotected Color convertFocused(Color source, String key)
ColorMap to the color needed
on the displayer.source - the source colorkey - the color that is needed, the color is needed for a
focused viewsource, can be nullprotected CDockable getDockable(DockColor observer)
UITransmitterCDockable which is associated with observer.getDockable in class UITransmitter<Color,DockColor>observer - some observernullCopyright © 2018. All rights reserved.