org.pushingpixels.substance.internal.ui
Class SubstanceViewportUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ViewportUI
          extended by javax.swing.plaf.basic.BasicViewportUI
              extended by org.pushingpixels.substance.internal.ui.SubstanceViewportUI

public class SubstanceViewportUI
extends javax.swing.plaf.basic.BasicViewportUI

UI for panels in Substance look and feel.


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

Constructor Detail

SubstanceViewportUI

public SubstanceViewportUI()
Method Detail

createUI

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

installDefaults

protected void installDefaults(javax.swing.JComponent c)
Overrides:
installDefaults in class javax.swing.plaf.basic.BasicViewportUI

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 viewport background should be filled.

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