JIDE Common Layer 2.7.1

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
 java.awt.Color getBackgroundAt(int tabIndex)
          Gets the tab background for the tab at the specified index.
 java.awt.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

java.awt.Color getBackgroundAt(int tabIndex)
Gets the tab background for the tab at the specified index.

Parameters:
tabIndex -
Returns:
the tab background for the tab at the specified index.

getForegroudAt

java.awt.Color getForegroudAt(int tabIndex)
Gets the tab foreground for the tab at the specified index.

Parameters:
tabIndex -
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 -
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 2.7.1