org.jvnet.substance
Class SubstanceRootPaneUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.RootPaneUI
          extended by javax.swing.plaf.basic.BasicRootPaneUI
              extended by org.jvnet.substance.SubstanceRootPaneUI
All Implemented Interfaces:
PropertyChangeListener, EventListener

public class SubstanceRootPaneUI
extends BasicRootPaneUI

UI for root panes in Substance look and feel.

Author:
Kirill Grouchnikov

Constructor Summary
SubstanceRootPaneUI()
           
 
Method Summary
static ComponentUI createUI(JComponent c)
          Creates a UI for a JRootPane.
 void installUI(JComponent c)
           
 void paint(Graphics g, JComponent c)
           
 void propertyChange(PropertyChangeEvent e)
           
 void uninstallUI(JComponent c)
          Invokes supers implementation to uninstall any of its state.
 
Methods inherited from class javax.swing.plaf.basic.BasicRootPaneUI
installComponents, installDefaults, installKeyboardActions, installListeners, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubstanceRootPaneUI

public SubstanceRootPaneUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)
Creates a UI for a JRootPane.

Parameters:
c - the JRootPane the RootPaneUI will be created for
Returns:
the RootPaneUI implementation for the passed in JRootPane

installUI

public void installUI(JComponent c)
Overrides:
installUI in class BasicRootPaneUI

uninstallUI

public void uninstallUI(JComponent c)
Invokes supers implementation to uninstall any of its state. This will also reset the LayoutManager of the JRootPane. If a Component has been added to the JRootPane to render the window decoration style, this method will remove it. Similarly, this will revert the Border and LayoutManager of the JRootPane to what it was before installUI was invoked.

Overrides:
uninstallUI in class BasicRootPaneUI
Parameters:
c - the JRootPane to uninstall state from

propertyChange

public void propertyChange(PropertyChangeEvent e)
Specified by:
propertyChange in interface PropertyChangeListener
Overrides:
propertyChange in class BasicRootPaneUI

paint

public void paint(Graphics g,
                  JComponent c)
Overrides:
paint in class ComponentUI