net.sourceforge.mlf.metouia
Class MetouiaScrollPaneUI

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended byjavax.swing.plaf.ScrollPaneUI
          extended byjavax.swing.plaf.basic.BasicScrollPaneUI
              extended byjavax.swing.plaf.metal.MetalScrollPaneUI
                  extended bynet.sourceforge.mlf.metouia.MetouiaScrollPaneUI
All Implemented Interfaces:
java.util.EventListener, java.beans.PropertyChangeListener, javax.swing.ScrollPaneConstants

public class MetouiaScrollPaneUI
extends javax.swing.plaf.metal.MetalScrollPaneUI
implements java.beans.PropertyChangeListener

This class represents the UI delegate for the JScrollPane component.


Nested Class Summary
 
Nested classes inherited from class javax.swing.plaf.basic.BasicScrollPaneUI
javax.swing.plaf.basic.BasicScrollPaneUI.HSBChangeListener, javax.swing.plaf.basic.BasicScrollPaneUI.MouseWheelHandler, javax.swing.plaf.basic.BasicScrollPaneUI.PropertyChangeHandler, javax.swing.plaf.basic.BasicScrollPaneUI.ViewportChangeHandler, javax.swing.plaf.basic.BasicScrollPaneUI.VSBChangeListener
 
Field Summary
 
Fields inherited from class javax.swing.plaf.basic.BasicScrollPaneUI
hsbChangeListener, scrollpane, spPropertyChangeListener, viewportChangeListener, vsbChangeListener
 
Fields inherited from interface javax.swing.ScrollPaneConstants
COLUMN_HEADER, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_ALWAYS, HORIZONTAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_NEVER, HORIZONTAL_SCROLLBAR_POLICY, LOWER_LEADING_CORNER, LOWER_LEFT_CORNER, LOWER_RIGHT_CORNER, LOWER_TRAILING_CORNER, ROW_HEADER, UPPER_LEADING_CORNER, UPPER_LEFT_CORNER, UPPER_RIGHT_CORNER, UPPER_TRAILING_CORNER, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_ALWAYS, VERTICAL_SCROLLBAR_AS_NEEDED, VERTICAL_SCROLLBAR_NEVER, VERTICAL_SCROLLBAR_POLICY, VIEWPORT
 
Constructor Summary
MetouiaScrollPaneUI()
           
 
Method Summary
protected  java.beans.PropertyChangeListener createScrollBarSwapListener()
          Creates a property change listener that does nothing inorder to prevent the free standing scrollbars.
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
          Creates the UI delegate for the given component.
 void installUI(javax.swing.JComponent c)
          Installs some default values for the given scrollpane.
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
          Paints the given component.
 void propertyChange(java.beans.PropertyChangeEvent event)
          Simply ignore any change.
 
Methods inherited from class javax.swing.plaf.metal.MetalScrollPaneUI
installListeners, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.basic.BasicScrollPaneUI
createHSBChangeListener, createMouseWheelListener, createPropertyChangeListener, createViewportChangeListener, createVSBChangeListener, getMaximumSize, getMinimumSize, getPreferredSize, installDefaults, installKeyboardActions, syncScrollPaneWithViewport, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, updateColumnHeader, updateRowHeader, updateScrollBarDisplayPolicy, updateViewport
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetouiaScrollPaneUI

public MetouiaScrollPaneUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
Creates the UI delegate for the given component.

Parameters:
c - The component to create its UI delegate.
Returns:
The UI delegate for the given component.

installUI

public void installUI(javax.swing.JComponent c)
Installs some default values for the given scrollpane. The free standing property is disabled here.

Parameters:
c - The reference of the scrollpane to install its default values.

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Paints the given component.

Parameters:
g - The graphics context to use.
c - The component to paint.

createScrollBarSwapListener

protected java.beans.PropertyChangeListener createScrollBarSwapListener()
Creates a property change listener that does nothing inorder to prevent the free standing scrollbars.

Returns:
An empty property change listener.

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent event)
Simply ignore any change.

Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Parameters:
event - The property change event.