net.infonode.docking.theme
Class LookAndFeelDockingTheme

java.lang.Object
  extended by net.infonode.docking.theme.DockingWindowsTheme
      extended by net.infonode.docking.theme.LookAndFeelDockingTheme

public class LookAndFeelDockingTheme
extends DockingWindowsTheme

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 look using the active look and feel. The tab windows will resemble the JTabbedPane look and the view title bars will resemble the JInternalFrame's title bar. Note that vertical title bars might not look very nice. The theme uses heavyweight AWT components 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. Only title bars above or below the view's content are supported.

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:
IDW 1.4.0
Version:
$Revision: 1.21 $
Author:
johan
See Also:
LookAndFeelTheme

Field Summary
private  boolean disposed
           
private static RootWindowProperties rootProps
           
private static int themeCounter
           
private  RootWindowProperties themeRootProps
           
private static TitleBarUI titleBarUI
           
private static LookAndFeelTheme tpTheme
           
 
Constructor Summary
LookAndFeelDockingTheme()
           
 
Method Summary
 void dispose()
           Disposes this theme.
 java.lang.String getName()
          Gets the theme name
 RootWindowProperties getRootWindowProperties()
          Gets the theme RootWindowProperties
private  void initTheme(boolean initial)
           
private  void updateBackgroundColor(ComponentProperties props, java.awt.Color color)
           
 
Methods inherited from class net.infonode.docking.theme.DockingWindowsTheme
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tpTheme

private static LookAndFeelTheme tpTheme

rootProps

private static RootWindowProperties rootProps

themeRootProps

private RootWindowProperties themeRootProps

titleBarUI

private static TitleBarUI titleBarUI

themeCounter

private static int themeCounter

disposed

private boolean disposed
Constructor Detail

LookAndFeelDockingTheme

public LookAndFeelDockingTheme()
Method Detail

getName

public java.lang.String getName()
Gets the theme name

Specified by:
getName in class DockingWindowsTheme
Returns:
name

getRootWindowProperties

public RootWindowProperties getRootWindowProperties()
Gets the theme RootWindowProperties

Specified by:
getRootWindowProperties in class DockingWindowsTheme
Returns:
the RootWindowProperties

dispose

public void dispose()

Disposes this theme.

This method must be called in order to dispose the heavyweight AWT components used internally.


initTheme

private void initTheme(boolean initial)

updateBackgroundColor

private void updateBackgroundColor(ComponentProperties props,
                                   java.awt.Color color)