Class BubbleTitleTransmitter

All Implemented Interfaces:
ColorBridge, UIBridge<Color,DockColor>

public class BubbleTitleTransmitter extends TitleColorTransmitter
A connection between a BubbleTheme-title and the ColorMap.
Author:
Benjamin Sigg
  • Constructor Details

    • BubbleTitleTransmitter

      public BubbleTitleTransmitter(ColorManager manager)
      Creates a new transmitter.
      Parameters:
      manager - the source of colors
  • Method Details

    • convert

      protected Color convert(Color source, String key)
      Description copied from class: TitleColorTransmitter
      Changes a background color such that it can be used for key.
      Specified by:
      convert in class TitleColorTransmitter
      Parameters:
      source - the original color
      key - the key for which the color is needed
      Returns:
      the new color, can be null
    • convertFocused

      protected Color convertFocused(Color source, String key)
      Description copied from class: TitleColorTransmitter
      Changes a background color such that it can be used for key.
      Specified by:
      convertFocused in class TitleColorTransmitter
      Parameters:
      source - the original color
      key - the key for which the color is needed, can only be one of the focused kind
      Returns:
      the new color, can be null
    • isFocused

      protected boolean isFocused(String id)
      Description copied from class: TitleColorTransmitter
      Tells whether id represents a color that is used on focused tabs.
      Specified by:
      isFocused in class TitleColorTransmitter
      Parameters:
      id - some id
      Returns:
      true if the color is used on focused tabs
    • isForeground

      protected boolean isForeground(String id)
      Description copied from class: TitleColorTransmitter
      Tells whether id represents a color that is used for the foreground.
      Specified by:
      isForeground in class TitleColorTransmitter
      Parameters:
      id - some id
      Returns:
      true if the color is used in the foreground