Interface JideTabbedPane.GradientColorProvider

All Superinterfaces:
JideTabbedPane.ColorProvider
Enclosing class:
JideTabbedPane

public static interface JideTabbedPane.GradientColorProvider extends JideTabbedPane.ColorProvider
A ColorProvider that can supports gradient tab background. The ColorProvider can also do gradient but the other color has to be be a lighter or darker version of the color of getBackgroundAt. GradientColorProvider allows you to specify an independent color as the start color.
  • Method Details

    • getTopBackgroundAt

      Color getTopBackgroundAt(int tabIndex)
      Gets the tab background at the top (or other direction depending on the tab placement) of the tab. The JideTabbedPaneUI will paint a gradient using this color and the color of getBackgroundAt.
      Parameters:
      tabIndex - the index of the tab
      Returns:
      the top background color.