Class LookAndFeelTheme
- java.lang.Object
-
- net.infonode.tabbedpanel.theme.TabbedPanelTitledTabTheme
-
- net.infonode.tabbedpanel.theme.LookAndFeelTheme
-
public class LookAndFeelTheme extends TabbedPanelTitledTabTheme
An experimental theme that tries to replicate the look of the active look and feel. This may or may not work depending on the look and feel used.
This is a theme that tries to replicate the JTabbedPane's look using the active look and feel. The theme uses a heavyweight AWT component internally so the
dispose()method must be called when the theme is no longer needed, otherwise the native resources will not be disposed.The theme uses the hover mechanism so that tab hover effects can be replicated.
This theme is considered to be experimental and is not guaranteed to be an exact replica of the active look and feel. It is also not guaranteed to work together with the active look and feel. The theme may be changed, removed etc in future versions. No support is given for the theme. This theme doesn't work well with Aqua Look and Feel on Macintosh.
- Since:
- ITP 1.4.0
- Version:
- $Revision: 1.20 $
-
-
Field Summary
Fields Modifier and Type Field Description private booleandisposedprivate static TitledTabPropertiestabPropsprivate static intthemeCounterprivate TitledTabPropertiesthemeTabPropsprivate TabbedPanelPropertiesthemeTpPropsprivate static TabbedPanelPropertiestpPropsprivate static PaneUIui
-
Constructor Summary
Constructors Constructor Description LookAndFeelTheme()Constructs a Look and Feel Theme
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private javax.swing.border.BordercreateTabInsetsBorder(boolean selected)voiddispose()Disposes this theme.java.awt.ColorgetBorderColor(Direction d)java.lang.StringgetName()Gets the name for this themeTabbedPanelPropertiesgetTabbedPanelProperties()Gets the TabbedPanelProperties for this themeTitledTabPropertiesgetTitledTabProperties()Gets the TitledTabProperties for this themeprivate voidinitTheme()
-
-
-
Field Detail
-
tpProps
private static TabbedPanelProperties tpProps
-
tabProps
private static TitledTabProperties tabProps
-
themeTpProps
private TabbedPanelProperties themeTpProps
-
themeTabProps
private TitledTabProperties themeTabProps
-
themeCounter
private static int themeCounter
-
ui
private static PaneUI ui
-
disposed
private boolean disposed
-
-
Method Detail
-
getName
public java.lang.String getName()
Gets the name for this theme- Specified by:
getNamein classTabbedPanelTitledTabTheme- Returns:
- the name
-
getTabbedPanelProperties
public TabbedPanelProperties getTabbedPanelProperties()
Gets the TabbedPanelProperties for this theme- Specified by:
getTabbedPanelPropertiesin classTabbedPanelTitledTabTheme- Returns:
- the TabbedPanelProperties
-
getTitledTabProperties
public TitledTabProperties getTitledTabProperties()
Gets the TitledTabProperties for this theme- Specified by:
getTitledTabPropertiesin classTabbedPanelTitledTabTheme- Returns:
- the TitledTabProperties
-
dispose
public void dispose()
Disposes this theme.
This method must be called in order to dispose the heavyweight AWT component used internally.
-
initTheme
private void initTheme()
-
createTabInsetsBorder
private javax.swing.border.Border createTabInsetsBorder(boolean selected)
-
getBorderColor
public java.awt.Color getBorderColor(Direction d)
-
-