Package net.infonode.tabbedpanel.theme
Class GradientTheme
java.lang.Object
net.infonode.tabbedpanel.theme.TabbedPanelTitledTabTheme
net.infonode.tabbedpanel.theme.GradientTheme
A theme that draws gradient tab backgrounds.
- Since:
- ITP 1.1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Color
The tab area background color used if no color is specified in the constructor. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a default theme with transparent tab area and shadows.GradientTheme
(boolean opaqueTabArea, boolean shadowEnabled) Constructor.GradientTheme
(boolean opaqueTabArea, boolean shadowEnabled, Color borderColor) Constructor.GradientTheme
(boolean opaqueTabArea, boolean shadowEnabled, Color borderColor, Color tabAreaBackgroundColor) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the gradient border for the highlighted tab.getName()
Gets the name for this themeReturns the gradient border for the normal tab or the tab area if it's opaque.Returns the gradient border for the tab area components.Gets the TabbedPanelProperties for this themeGets the TitledTabProperties for this theme
-
Field Details
-
DEFAULT_TAB_AREA_BACKGROUND_COLOR
The tab area background color used if no color is specified in the constructor.
-
-
Constructor Details
-
GradientTheme
public GradientTheme()Creates a default theme with transparent tab area and shadows. -
GradientTheme
public GradientTheme(boolean opaqueTabArea, boolean shadowEnabled) Constructor.- Parameters:
opaqueTabArea
- if true a gradient background is drawn for the tab area, otherwise it's transparentshadowEnabled
- if true the shadow is enabled
-
GradientTheme
Constructor.- Parameters:
opaqueTabArea
- if true a gradient background is drawn for the tab area, otherwise it's transparentshadowEnabled
- if true the shadow is enabledborderColor
- the border color, null means default border color
-
GradientTheme
public GradientTheme(boolean opaqueTabArea, boolean shadowEnabled, Color borderColor, Color tabAreaBackgroundColor) Constructor.- Parameters:
opaqueTabArea
- if true a gradient background is drawn for the tab area, otherwise it's transparentshadowEnabled
- if true the shadow is enabledborderColor
- the border color, null means default border colortabAreaBackgroundColor
- the background color for the tab area and normal tabs, null means use the default tab background
-
-
Method Details
-
getName
Gets the name for this theme- Specified by:
getName
in classTabbedPanelTitledTabTheme
- Returns:
- the name
-
getTitledTabProperties
Description copied from class:TabbedPanelTitledTabTheme
Gets the TitledTabProperties for this theme- Specified by:
getTitledTabProperties
in classTabbedPanelTitledTabTheme
- Returns:
- the TitledTabProperties
-
getTabbedPanelProperties
Description copied from class:TabbedPanelTitledTabTheme
Gets the TabbedPanelProperties for this theme- Specified by:
getTabbedPanelProperties
in classTabbedPanelTitledTabTheme
- Returns:
- the TabbedPanelProperties
-
getHighlightedTabGradientBorder
Returns the gradient border for the highlighted tab.- Returns:
- the gradient border for the highlighted tab
-
getTabAreaComponentsGradientBorder
Returns the gradient border for the tab area components.- Returns:
- the gradient border for the tab area components
-
getNormalTabGradientBorder
Returns the gradient border for the normal tab or the tab area if it's opaque.- Returns:
- the gradient border for the normal tab or the tab area if it's opaque
-