uic.themes
Class UICScrollPaneUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ScrollPaneUI
          extended by javax.swing.plaf.basic.BasicScrollPaneUI
              extended by javax.swing.plaf.metal.MetalScrollPaneUI
                  extended by uic.themes.UICScrollPaneUI
All Implemented Interfaces:
ScrollPaneConstants

public class UICScrollPaneUI
extends MetalScrollPaneUI


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicScrollPaneUI
BasicScrollPaneUI.HSBChangeListener, BasicScrollPaneUI.MouseWheelHandler, BasicScrollPaneUI.PropertyChangeHandler, BasicScrollPaneUI.ViewportChangeHandler, 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
UICScrollPaneUI()
           
 
Method Summary
protected  MouseWheelListener createMouseWheelListener()
          Overriden method from super to supply our own mouseWheel stuff.
static ComponentUI createUI(JComponent c)
           
 Dimension getMaximumSize(JComponent c)
          Forward size of viewport
 Dimension getMinimumSize(JComponent c)
           
 Dimension getPreferredSize(JComponent c)
          Calculate the size of the pane.
protected  void mouseWheelSlot(int rotation, int delta, int x, int y, boolean faster)
          Slot the ScrollWheelHelper calls on mouseWheel events.
 
Methods inherited from class javax.swing.plaf.metal.MetalScrollPaneUI
createScrollBarSwapListener, installListeners, installUI, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.basic.BasicScrollPaneUI
createHSBChangeListener, createPropertyChangeListener, createViewportChangeListener, createVSBChangeListener, installDefaults, installKeyboardActions, paint, 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

UICScrollPaneUI

public UICScrollPaneUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)

getPreferredSize

public Dimension getPreferredSize(JComponent c)
Calculate the size of the pane. Use the border size, the scrollbars and add the size of the viewport.

Overrides:
getPreferredSize in class ComponentUI

getMinimumSize

public Dimension getMinimumSize(JComponent c)
Overrides:
getMinimumSize in class ComponentUI

getMaximumSize

public Dimension getMaximumSize(JComponent c)
Forward size of viewport

Overrides:
getMaximumSize in class BasicScrollPaneUI

createMouseWheelListener

protected MouseWheelListener createMouseWheelListener()
Overriden method from super to supply our own mouseWheel stuff.

Overrides:
createMouseWheelListener in class BasicScrollPaneUI

mouseWheelSlot

protected void mouseWheelSlot(int rotation,
                              int delta,
                              int x,
                              int y,
                              boolean faster)
Slot the ScrollWheelHelper calls on mouseWheel events. As configged in the createMouseWheelListener method.



Copyright © 2002-2004 Thomas Zander Available under the Free Apache licence