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
protected SubstancePanelUI()
          Simple constructor.
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent b)
           
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, installDefaults, 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

protected SubstancePanelUI()
Simple constructor.

Method Detail

createUI

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

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.