|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.common.intern.color.ColorTransmitter<DisplayerColor>
bibliothek.gui.dock.common.intern.color.BubbleDisplayerTransmitter
public class BubbleDisplayerTransmitter
A transmitter connecting ColorMap
and BubbleDisplayer
.
Constructor Summary | |
---|---|
BubbleDisplayerTransmitter(ColorManager manager)
Creates a new transmitter. |
Method Summary | |
---|---|
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,
DisplayerColor observer)
Called when a color needs to be set whose key has been registered at this ColorTransmitter . |
protected CDockable |
getDockable(DisplayerColor observer)
Gets the CDockable which is associated with observer . |
protected void |
update(CDockable dockable,
String key,
Color color)
Called when a color in a ColorMap has changed. |
Methods inherited from class bibliothek.gui.dock.common.intern.color.ColorTransmitter |
---|
add, getFirstNonNull, remove, set, set, setControl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BubbleDisplayerTransmitter(ColorManager manager)
manager
- the source for new colorsMethod Detail |
---|
protected Color get(Color color, String id, DisplayerColor observer)
ColorTransmitter
ColorTransmitter
.
get
in class ColorTransmitter<DisplayerColor>
color
- the original colorid
- the key of the colorobserver
- the destination for the color
observer
protected 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 used
color
protected void update(CDockable dockable, String key, Color color)
ColorTransmitter
ColorMap
has changed.
update
in class ColorTransmitter<DisplayerColor>
dockable
- the owner of the mapkey
- the name of the changed colorcolor
- the new value of the color in the map, can be null
protected Color convert(Color source, String key)
ColorMap
to the color needed
on the displayer.
source
- the source colorkey
- the color that is needed
source
, can be null
protected 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 view
source
, can be null
protected CDockable getDockable(DisplayerColor observer)
ColorTransmitter
CDockable
which is associated with observer
.
getDockable
in class ColorTransmitter<DisplayerColor>
observer
- some observer
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |