Get Bounce at SourceForge.net. Fast secure and Free Open Source software downloads

org.bounce.plaf
Class BouncePanelUI

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.bounce.plaf.BouncePanelUI

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

Extend the BasicPanelUI class, this PanelUI allows for a background image that can be centered, tiled, anchored in a corner or stretched. The UI also allows for a diagonal gradient filled background, for a very subtle 3D effect.

Version:
$Revision: 1.5 $, $Date: 2008/01/28 21:28:37 $
Author:
Edwin Dankert

Constructor Summary
BouncePanelUI()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
          Creates the one version of this UI.
 void installUI(javax.swing.JComponent c)
          Installs the UI for the supplied component.
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
          Overrides the paint method in the BasicPanelUI class.
 void uninstallUI(javax.swing.JComponent c)
          Un-installs the current UI for the supplied component.
 
Methods inherited from class javax.swing.plaf.basic.BasicPanelUI
getBaseline, getBaselineResizeBehavior, installDefaults, uninstallDefaults
 
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

BouncePanelUI

public BouncePanelUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
Creates the one version of this UI.

Parameters:
c - the component the ui needs to be installed for.
Returns:
the component's ui!

installUI

public void installUI(javax.swing.JComponent c)
Installs the UI for the supplied component.

Overrides:
installUI in class javax.swing.plaf.basic.BasicPanelUI
Parameters:
c - the component the ui needs to be installed for.

uninstallUI

public void uninstallUI(javax.swing.JComponent c)
Un-installs the current UI for the supplied component.

Overrides:
uninstallUI in class javax.swing.plaf.basic.BasicPanelUI
Parameters:
c - the component the ui needs to be un-installed for.

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Overrides the paint method in the BasicPanelUI class.

Overrides:
paint in class javax.swing.plaf.ComponentUI
Parameters:
g - the graphics.
c - the button component.

Get Bounce at SourceForge.net. Fast secure and Free Open Source software downloads

Copyright 2002-2002-2009 Edwin Dankert. All Rights Reserved.