|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.infonode.tabbedpanel.theme.TabbedPanelTitledTabTheme
net.infonode.tabbedpanel.theme.GradientTheme
public class GradientTheme
A theme that draws gradient tab backgrounds.
Field Summary | |
---|---|
private java.awt.Color |
borderColor
|
private static float |
BRIGHTNESS
|
static java.awt.Color |
DEFAULT_TAB_AREA_BACKGROUND_COLOR
The tab area background color used if no color is specified in the constructor. |
private static javax.swing.border.Border |
HIGHLIGHTED_TAB_GRADIENT_BORDER
|
private static float |
HUE
|
private javax.swing.border.Border |
normalTabGradientBorder
|
private boolean |
opaqueTabArea
|
private static float |
SATURATION
|
private boolean |
shadowEnabled
|
private static javax.swing.border.Border |
TAB_AREA_COMPONENTS_GRADIENT_BORDER
|
private java.awt.Color |
tabAreaBackgroundColor
|
private TabbedPanelProperties |
tabbedPanelProperties
|
private TitledTabProperties |
titledTabProperties
|
Constructor Summary | |
---|---|
GradientTheme()
Creates a default theme with transparent tab area and shadows. |
|
GradientTheme(boolean opaqueTabArea,
boolean shadowEnabled)
Constructor. |
|
GradientTheme(boolean opaqueTabArea,
boolean shadowEnabled,
java.awt.Color borderColor)
Constructor. |
|
GradientTheme(boolean opaqueTabArea,
boolean shadowEnabled,
java.awt.Color borderColor,
java.awt.Color tabAreaBackgroundColor)
Constructor. |
Method Summary | |
---|---|
javax.swing.border.Border |
getHighlightedTabGradientBorder()
Returns the gradient border for the highlighted tab. |
java.lang.String |
getName()
Gets the name for this theme |
javax.swing.border.Border |
getNormalTabGradientBorder()
Returns the gradient border for the normal tab or the tab area if it's opaque. |
javax.swing.border.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 |
private void |
initTabbedPanelProperties()
|
private void |
initTitledTabProperties()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final float HUE
private static final float SATURATION
private static final float BRIGHTNESS
public static final java.awt.Color DEFAULT_TAB_AREA_BACKGROUND_COLOR
private static final javax.swing.border.Border HIGHLIGHTED_TAB_GRADIENT_BORDER
private static final javax.swing.border.Border TAB_AREA_COMPONENTS_GRADIENT_BORDER
private boolean opaqueTabArea
private boolean shadowEnabled
private java.awt.Color borderColor
private java.awt.Color tabAreaBackgroundColor
private javax.swing.border.Border normalTabGradientBorder
private TitledTabProperties titledTabProperties
private TabbedPanelProperties tabbedPanelProperties
Constructor Detail |
---|
public GradientTheme()
public GradientTheme(boolean opaqueTabArea, boolean shadowEnabled)
opaqueTabArea
- if true a gradient background is drawn for the tab area, otherwise it's transparentshadowEnabled
- if true the shadow is enabledpublic GradientTheme(boolean opaqueTabArea, boolean shadowEnabled, java.awt.Color borderColor)
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 colorpublic GradientTheme(boolean opaqueTabArea, boolean shadowEnabled, java.awt.Color borderColor, java.awt.Color tabAreaBackgroundColor)
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
backgroundMethod Detail |
---|
public java.lang.String getName()
getName
in class TabbedPanelTitledTabTheme
private void initTabbedPanelProperties()
private void initTitledTabProperties()
public TitledTabProperties getTitledTabProperties()
TabbedPanelTitledTabTheme
getTitledTabProperties
in class TabbedPanelTitledTabTheme
public TabbedPanelProperties getTabbedPanelProperties()
TabbedPanelTitledTabTheme
getTabbedPanelProperties
in class TabbedPanelTitledTabTheme
public javax.swing.border.Border getHighlightedTabGradientBorder()
public javax.swing.border.Border getTabAreaComponentsGradientBorder()
public javax.swing.border.Border getNormalTabGradientBorder()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |