org.jvnet.substance
Class SubstancePanelUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.PanelUI
          extended by javax.swing.plaf.basic.BasicPanelUI
              extended by org.jvnet.substance.SubstancePanelUI

public class SubstancePanelUI
extends javax.swing.plaf.basic.BasicPanelUI

UI for panels in Substance look and feel.

Author:
Kirill Grouchnikov

Constructor Summary
SubstancePanelUI()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent comp)
           
protected  void installDefaults(javax.swing.JPanel p)
           
protected  boolean toPaintBackground(javax.swing.JComponent c)
          Returns indication whether the panel background should be filled.
 void update(java.awt.Graphics g, javax.swing.JComponent c)
           
 
Methods inherited from class javax.swing.plaf.basic.BasicPanelUI
getBaseline, getBaselineResizeBehavior, installUI, uninstallDefaults, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, paint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubstancePanelUI

public SubstancePanelUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent comp)

installDefaults

protected void installDefaults(javax.swing.JPanel p)
Overrides:
installDefaults in class javax.swing.plaf.basic.BasicPanelUI

update

public void update(java.awt.Graphics g,
                   javax.swing.JComponent c)
Overrides:
update in class javax.swing.plaf.ComponentUI

toPaintBackground

protected boolean toPaintBackground(javax.swing.JComponent c)
Returns indication whether the panel background should be filled.

Parameters:
c - Component (should be JPanel).
Returns:
true if the panel background should be filled with the background color, false otherwise.