Class BasicTabTransmitter

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

public class BasicTabTransmitter extends TabColorTransmitter
A ColorTransmitter connecting the BasicTheme with the individual color requests of common-project elements.
Author:
Benjamin Sigg
  • Constructor Details

    • BasicTabTransmitter

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

    • convert

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

      protected Color convertFocused(Color source, String key)
      Description copied from class: TabColorTransmitter
      Changes a background color such that it can be used on a StackDockComponent
      Specified by:
      convertFocused in class TabColorTransmitter
      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
    • convertSelected

      protected Color convertSelected(Color source, String key)
      Description copied from class: TabColorTransmitter
      Changes a background color such that it can be used on a StackDockComponent
      Specified by:
      convertSelected in class TabColorTransmitter
      Parameters:
      source - the original color
      key - the key for which the color is needed, can be one of the selected or focused kind
      Returns:
      the new color
    • isFocused

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

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

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