net.infonode.tabbedpanel.theme
Class GradientTheme

java.lang.Object
  extended bynet.infonode.tabbedpanel.theme.TabbedPanelTitledTabTheme
      extended bynet.infonode.tabbedpanel.theme.GradientTheme

public class GradientTheme
extends TabbedPanelTitledTabTheme

A theme that draws gradient tab backgrounds.

Since:
ITP 1.1.0
Version:
$Revision: 1.22 $

Field Summary
static Color DEFAULT_TAB_AREA_BACKGROUND_COLOR
          The tab area background color used if no color is specified in the constructor.
 
Constructor Summary
GradientTheme()
          Creates 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
 Border getHighlightedTabGradientBorder()
          Returns the gradient border for the highlighted tab.
 String getName()
          Gets the name for this theme
 Border getNormalTabGradientBorder()
          Returns the gradient border for the normal tab or the tab area if it's opaque.
 Border getTabAreaComponentsGradientBorder()
          Returns the gradient border for the tab area components.
 TabbedPanelProperties getTabbedPanelProperties()
          Gets the TabbedPanelProperties for this theme
 TitledTabProperties getTitledTabProperties()
          Gets the TitledTabProperties for this theme
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TAB_AREA_BACKGROUND_COLOR

public static final Color DEFAULT_TAB_AREA_BACKGROUND_COLOR
The tab area background color used if no color is specified in the constructor.

Constructor Detail

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 transparent
shadowEnabled - if true the shadow is enabled

GradientTheme

public GradientTheme(boolean opaqueTabArea,
                     boolean shadowEnabled,
                     Color borderColor)
Constructor.

Parameters:
opaqueTabArea - if true a gradient background is drawn for the tab area, otherwise it's transparent
shadowEnabled - if true the shadow is enabled
borderColor - 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 transparent
shadowEnabled - if true the shadow is enabled
borderColor - the border color, null means default border color
tabAreaBackgroundColor - the background color for the tab area and normal tabs, null means use the default tab background
Method Detail

getName

public String getName()
Gets the name for this theme

Specified by:
getName in class TabbedPanelTitledTabTheme
Returns:
the name

getTitledTabProperties

public TitledTabProperties getTitledTabProperties()
Description copied from class: TabbedPanelTitledTabTheme
Gets the TitledTabProperties for this theme

Specified by:
getTitledTabProperties in class TabbedPanelTitledTabTheme
Returns:
the TitledTabProperties

getTabbedPanelProperties

public TabbedPanelProperties getTabbedPanelProperties()
Description copied from class: TabbedPanelTitledTabTheme
Gets the TabbedPanelProperties for this theme

Specified by:
getTabbedPanelProperties in class TabbedPanelTitledTabTheme
Returns:
the TabbedPanelProperties

getHighlightedTabGradientBorder

public Border getHighlightedTabGradientBorder()
Returns the gradient border for the highlighted tab.

Returns:
the gradient border for the highlighted tab

getTabAreaComponentsGradientBorder

public Border getTabAreaComponentsGradientBorder()
Returns the gradient border for the tab area components.

Returns:
the gradient border for the tab area components

getNormalTabGradientBorder

public Border 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


Copyright © 2007 NNL Technology AB. All Rights Reserved.