Interface JideTabbedPane.ColorProvider

    • Method Detail

      • getBackgroundAt

        java.awt.Color getBackgroundAt​(int tabIndex)
        Gets the tab background for the tab at the specified index.
        Parameters:
        tabIndex - the index of the tab
        Returns:
        the tab background for the tab at the specified index.
      • getForegroundAt

        java.awt.Color getForegroundAt​(int tabIndex)
        Gets the tab foreground for the tab at the specified index.
        Parameters:
        tabIndex - the index of the tab
        Returns:
        the tab foreground for the tab at the specified index.
      • getGradientRatio

        float getGradientRatio​(int tabIndex)
        Gets the gradient ratio. We will use this ratio to provide another color in order to paint gradient.
        Parameters:
        tabIndex - the index of the tab
        Returns:
        the gradient ratio. The value should be between 0 and 1. 0 will produce the darkest and color and 1 will produce the lightest color. 0.5 will provide the same color.