Package 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.awt.Color
getBackgroundAt(int tabIndex)
Gets the tab background for the tab at the specified index.java.awt.Color
getForegroundAt(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
- 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.
-
-