org.noos.xing.mydoggy.plaf.ui.look
Class ToolWindowScrollBarUI

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.noos.xing.mydoggy.plaf.ui.look.ToolWindowScrollBarUI
All Implemented Interfaces:
EventListener, ChangeListener

public class ToolWindowScrollBarUI
extends BasicPanelUI
implements ChangeListener

Author:
Angelo De Caro (angelo.decaro@gmail.com)

Nested Class Summary
 class ToolWindowScrollBarUI.ArrowListener
           
static class ToolWindowScrollBarUI.Direction
           
static class ToolWindowScrollBarUI.ToolScrollBarArrowUI
           
 class ToolWindowScrollBarUI.WheelScroller
           
 
Field Summary
protected  Container container
           
protected  int orientation
           
protected  boolean scrollEnabled
           
protected  ToolWindowScrollBar toolWindowScrollBar
           
protected  info.clearthought.layout.TableLayout toolWindowScrollBarLayout
           
protected  JViewport viewport
           
 
Constructor Summary
ToolWindowScrollBarUI()
           
 
Method Summary
static ComponentUI createUI(JComponent c)
           
 void ensureVisible(Component component)
           
protected  void installComponents()
           
 void installUI(JComponent c)
           
protected  Component renderArrow(ToolWindowScrollBarUI.Direction direction, String iconName)
           
protected  void scrollBy(int direction, int units)
           
 void stateChanged(ChangeEvent e)
           
 void uninstallUI(JComponent c)
           
 
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, paint, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

toolWindowScrollBar

protected ToolWindowScrollBar toolWindowScrollBar

toolWindowScrollBarLayout

protected info.clearthought.layout.TableLayout toolWindowScrollBarLayout

orientation

protected int orientation

container

protected Container container

viewport

protected JViewport viewport

scrollEnabled

protected boolean scrollEnabled
Constructor Detail

ToolWindowScrollBarUI

public ToolWindowScrollBarUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)

installUI

public void installUI(JComponent c)
Overrides:
installUI in class BasicPanelUI

uninstallUI

public void uninstallUI(JComponent c)
Overrides:
uninstallUI in class BasicPanelUI

stateChanged

public void stateChanged(ChangeEvent e)
Specified by:
stateChanged in interface ChangeListener

ensureVisible

public void ensureVisible(Component component)

installComponents

protected void installComponents()

scrollBy

protected void scrollBy(int direction,
                        int units)

renderArrow

protected Component renderArrow(ToolWindowScrollBarUI.Direction direction,
                                String iconName)


Copyright © 2012. All Rights Reserved.