JIDE Common Layer 3.5.3

com.jidesoft.swing
Interface JideTabbedPane.ColorProvider

All Known Subinterfaces:
JideTabbedPane.GradientColorProvider
Enclosing class:
JideTabbedPane

public static interface JideTabbedPane.ColorProvider

An interface to provide colors for tab background and foreground.


Method Summary
 Color getBackgroundAt(int tabIndex)
          Gets the tab background for the tab at the specified index.
 Color getForegroudAt(int tabIndex)
          Gets the tab foreground for the tab at the specified index.
 float getGradientRatio(int tabIndex)
          Gets the gradient ratio.
 

Method Detail

getBackgroundAt

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.

getForegroudAt

Color getForegroudAt(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 lighest color. 0.5 will provide the same color.

JIDE Common Layer 3.5.3