所有类


javax.swing.plaf.metal
类 MetalScrollBarUI

java.lang.Object
  继承者 javax.swing.plaf.ComponentUI
      继承者 javax.swing.plaf.ScrollBarUI
          继承者 javax.swing.plaf.basic.BasicScrollBarUI
              继承者 javax.swing.plaf.metal.MetalScrollBarUI
所有已实现的接口:
LayoutManager, SwingConstants

public class MetalScrollBarUI
   
   
   
   
extends BasicScrollBarUI

ScrollBarUI 的 Metal 外观实现


嵌套类摘要
 
从类 javax.swing.plaf.basic.BasicScrollBarUI 继承的嵌套类/接口
BasicScrollBarUI.ArrowButtonListener, BasicScrollBarUI.ModelListener, BasicScrollBarUI.PropertyChangeHandler, BasicScrollBarUI.ScrollListener, BasicScrollBarUI.TrackListener
 
字段摘要
protected  javax.swing.plaf.metal.MetalBumpsbumps
           
protected  MetalScrollButtondecreaseButton
           
static StringFREE_STANDING_PROP
           
protected  MetalScrollButtonincreaseButton
           
protected  booleanisFreeStanding
           
protected  intscrollBarWidth
           
 
从类 javax.swing.plaf.basic.BasicScrollBarUI 继承的字段
buttonListener, decrButton, DECREASE_HIGHLIGHT, incrButton, INCREASE_HIGHLIGHT, isDragging, maximumThumbSize, minimumThumbSize, modelListener, NO_HIGHLIGHT, propertyChangeListener, scrollbar, scrollListener, scrollTimer, thumbDarkShadowColor, thumbLightShadowColor, thumbRect, trackColor, trackHighlight, trackHighlightColor, trackListener, trackRect
 
从接口 javax.swing.SwingConstants 继承的字段
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
构造方法摘要
MetalScrollBarUI()
           
 
方法摘要
protected  voidconfigureScrollBarColors()
           
protected  JButtoncreateDecreaseButton(int orientation)
          返回表示减少量视图的视图。
protected  JButtoncreateIncreaseButton(int orientation)
          返回表示增加量视图的视图。
protected  PropertyChangeListenercreatePropertyChangeListener()
           
static ComponentUIcreateUI(JComponent c)
           
protected  DimensiongetMinimumThumbSize()
          返回 thumb 的最小可接受大小。
 DimensiongetPreferredSize(JComponent c)
          垂直滚动条的首选宽度是(非 null)递增/递减按钮的首选宽度的最大值,也是 thumb 的最小宽度。
protected  voidinstallDefaults()
           
protected  voidinstallListeners()
           
protected  voidpaintThumb(Graphics g, JComponent c, Rectangle thumbBounds)
           
protected  voidpaintTrack(Graphics g, JComponent c, Rectangle trackBounds)
           
protected  voidsetThumbBounds(int x, int y, int width, int height)
          重写此方法只是为了增加无效区域。
 
从类 javax.swing.plaf.basic.BasicScrollBarUI 继承的方法
addLayoutComponent, createArrowButtonListener, createModelListener, createScrollListener, createTrackListener, getMaximumSize, getMaximumThumbSize, getSupportsAbsolutePositioning, getThumbBounds, getTrackBounds, installComponents, installKeyboardActions, installUI, isThumbRollover, layoutContainer, layoutHScrollbar, layoutVScrollbar, minimumLayoutSize, paint, paintDecreaseHighlight, paintIncreaseHighlight, preferredLayoutSize, removeLayoutComponent, scrollByBlock, scrollByUnit, setThumbRollover, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
 
从类 javax.swing.plaf.ComponentUI 继承的方法
contains, getAccessibleChild, getAccessibleChildrenCount, getMinimumSize, update
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

bumps

protected javax.swing.plaf.metal.MetalBumps bumps

increaseButton

protected MetalScrollButton increaseButton

decreaseButton

protected MetalScrollButton decreaseButton

scrollBarWidth

protected int scrollBarWidth

FREE_STANDING_PROP

public static final String FREE_STANDING_PROP
另请参见:
常量字段值

isFreeStanding

protected boolean isFreeStanding
构造方法详细信息

MetalScrollBarUI

public MetalScrollBarUI()
方法详细信息

createUI

public static ComponentUI createUI(JComponent c)

installDefaults

protected void installDefaults()
覆盖:
BasicScrollBarUI 中的 installDefaults