所有类


javax.swing.plaf.basic
类 BasicScrollBarUI

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

public class BasicScrollBarUI
   
   
   
   
extends ScrollBarUI
implements LayoutManager, SwingConstants

基本外观的 ScrollBarUI 的实现


嵌套类摘要
protected  classBasicScrollBarUI.ArrowButtonListener
          光标键的侦听器。
protected  classBasicScrollBarUI.ModelListener
          侦听模型更改的侦听器。
 classBasicScrollBarUI.PropertyChangeHandler
           
protected  classBasicScrollBarUI.ScrollListener
          在 ScrollPane 中发起的滚动事件的侦听器。
protected  classBasicScrollBarUI.TrackListener
          跟踪鼠标拖动。
 
字段摘要
protected  BasicScrollBarUI.ArrowButtonListenerbuttonListener
           
protected  JButtondecrButton
           
protected static intDECREASE_HIGHLIGHT
           
protected  JButtonincrButton
           
protected static intINCREASE_HIGHLIGHT
           
protected  booleanisDragging
           
protected  DimensionmaximumThumbSize
           
protected  DimensionminimumThumbSize
           
protected  BasicScrollBarUI.ModelListenermodelListener
           
protected static intNO_HIGHLIGHT
           
protected  PropertyChangeListenerpropertyChangeListener
           
protected  JScrollBarscrollbar
           
protected  BasicScrollBarUI.ScrollListenerscrollListener
           
protected  TimerscrollTimer
           
protected  ColorthumbColor
           
protected  ColorthumbDarkShadowColor
           
protected  ColorthumbHighlightColor
           
protected  ColorthumbLightShadowColor
           
protected  RectanglethumbRect
           
protected  ColortrackColor
           
protected  inttrackHighlight
           
protected  ColortrackHighlightColor
           
protected  BasicScrollBarUI.TrackListenertrackListener
           
protected  RectangletrackRect
           
 
从接口 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
 
构造方法摘要
BasicScrollBarUI()
           
 
方法摘要
 voidaddLayoutComponent(String name, Component child)
          如果布局管理器使用每组件字符串,则将组件 comp 添加到布局,并将其与 name 指定的字符串关联。
protected  voidconfigureScrollBarColors()
           
protected  BasicScrollBarUI.ArrowButtonListenercreateArrowButtonListener()
           
protected  JButtoncreateDecreaseButton(int orientation)
           
protected  JButtoncreateIncreaseButton(int orientation)
           
protected  BasicScrollBarUI.ModelListenercreateModelListener()
           
protected  PropertyChangeListenercreatePropertyChangeListener()
           
protected  BasicScrollBarUI.ScrollListenercreateScrollListener()
           
protected  BasicScrollBarUI.TrackListenercreateTrackListener()
           
static ComponentUIcreateUI(JComponent c)
           
 DimensiongetMaximumSize(JComponent c)
          返回指定组件的适合外观的最大大小。
protected  DimensiongetMaximumThumbSize()
          返回 thumb 的最大可接受大小。
protected  DimensiongetMinimumThumbSize()
          返回 thumb 的最小可接受大小。
 DimensiongetPreferredSize(JComponent c)
          垂直滚动条的首选宽度是(非 null)递增/递减按钮的首选宽度的最大值,也是 thumb 的最小宽度。
 booleangetSupportsAbsolutePositioning()
          指示用户是否可以利用鼠标动作(通常使用中间的鼠标按键)来绝对定位 thumb。
protected  RectanglegetThumbBounds()
          返回 thumb 的当前大小/位置。
protected  RectanglegetTrackBounds()
          返回滑道的当前边界,即递增和递减按钮之间的空间(减去 insets)。
protected  voidinstallComponents()
           
protected  voidinstallDefaults()
           
protected  voidinstallKeyboardActions()
           
protected  voidinstallListeners()
           
 voidinstallUI(JComponent c)
          配置指定组件,使其适合外观。
 booleanisThumbRollover()
          如果鼠标当前位于 thumb 上,则返回 true。
 voidlayoutContainer(Container scrollbarContainer)
          布置指定容器。
protected  voidlayoutHScrollbar(JScrollBar sb)
           
protected  voidlayoutVScrollbar(JScrollBar sb)
           
 DimensionminimumLayoutSize(Container scrollbarContainer)
          给定指定容器所包含的组件,计算该容器的最小大小维数。
 voidpaint(Graphics g, JComponent c)
          绘制指定组件,使其适合外观。
protected  voidpaintDecreaseHighlight(Graphics g)
           
protected  voidpaintIncreaseHighlight(Graphics g)
           
protected  voidpaintThumb(Graphics g, JComponent c, Rectangle thumbBounds)
           
protected  voidpaintTrack(Graphics g, JComponent c, Rectangle trackBounds)
           
 DimensionpreferredLayoutSize(Container scrollbarContainer)
          给定指定容器所包含的组件,计算该容器的首选大小维数。
 voidremoveLayoutComponent(Component child)
          从布局移除指定组件。
protected  voidscrollByBlock(int direction)
           
protected  voidscrollByUnit(int direction)
           
protected  voidsetThumbBounds(int x, int y, int width, int height)
          设置 thumb 的边界并强制进行包括新旧 thumbBounds 在内的重绘。
protected  voidsetThumbRollover(boolean active)
          设置鼠标当前是否位于 thumb 上。
protected  voiduninstallComponents()
           
protected  voiduninstallDefaults()
           
protected  voiduninstallKeyboardActions()
           
protected  voiduninstallListeners()
           
 voiduninstallUI(JComponent c)
          在 installUI 期间,在指定组件上反向执行的配置操作。
 
从类 javax.swing.plaf.ComponentUI 继承的方法
contains, getAccessibleChild, getAccessibleChildrenCount, getMinimumSize, update
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

minimumThumbSize

protected Dimension minimumThumbSize

maximumThumbSize

protected Dimension maximumThumbSize

thumbHighlightColor

protected Color thumbHighlightColor

thumbLightShadowColor

protected Color thumbLightShadowColor

thumbDarkShadowColor

protected Color thumbDarkShadowColor

thumbColor

protected Color thumbColor

trackColor

protected Color trackColor