|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.common.intern.ui.UITransmitter<java.awt.Color,DockColor> bibliothek.gui.dock.common.intern.color.ColorTransmitter 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 java.awt.Color |
convert(java.awt.Color source,
java.lang.String key)
Converts a color given by a ColorMap to the color needed
on the displayer. |
protected java.awt.Color |
convertFocused(java.awt.Color source,
java.lang.String key)
Converts a color given by a ColorMap to the color needed
on the displayer. |
protected java.awt.Color |
get(java.awt.Color color,
java.lang.String id,
CDockable dockable)
Searches for a color that fits for the color with name id . |
protected java.awt.Color |
get(java.awt.Color color,
java.lang.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,
java.lang.String key,
java.awt.Color color)
Called when a value in an observed map has changed. |
Methods inherited from class bibliothek.gui.dock.common.intern.color.ColorTransmitter |
---|
connect, disconnect, getFirstNonNull |
Methods inherited from class bibliothek.gui.dock.common.intern.ui.UITransmitter |
---|
add, remove, set, set, setControl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface bibliothek.gui.dock.util.UIBridge |
---|
add, remove, set |
Constructor Detail |
---|
public BubbleDisplayerTransmitter(ColorManager manager)
manager
- the source for new colorsMethod Detail |
---|
protected java.awt.Color get(java.awt.Color color, java.lang.String id, DockColor observer)
UITransmitter
UITransmitter
.
get
in class UITransmitter<java.awt.Color,DockColor>
color
- the original valueid
- the key of the valueobserver
- the destination for the value
observer
protected java.awt.Color get(java.awt.Color color, java.lang.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, java.lang.String key, java.awt.Color color)
UITransmitter
update
in class UITransmitter<java.awt.Color,DockColor>
dockable
- the owner of the mapkey
- the name of the changed valuecolor
- the new value in the map, can be null
protected java.awt.Color convert(java.awt.Color source, java.lang.String key)
ColorMap
to the color needed
on the displayer.
source
- the source colorkey
- the color that is needed
source
, can be null
protected java.awt.Color convertFocused(java.awt.Color source, java.lang.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(DockColor observer)
UITransmitter
CDockable
which is associated with observer
.
getDockable
in class UITransmitter<java.awt.Color,DockColor>
observer
- some observer
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |