所有类


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  class BasicScrollBarUI.ArrowButtonListener
          光标键的侦听器。
protected  class BasicScrollBarUI.ModelListener
          侦听模型更改的侦听器。
 class BasicScrollBarUI.PropertyChangeHandler
           
protected  class BasicScrollBarUI.ScrollListener
          在 ScrollPane 中发起的滚动事件的侦听器。
protected  class BasicScrollBarUI.TrackListener
          跟踪鼠标拖动。
 
字段摘要
protected  BasicScrollBarUI.ArrowButtonListener buttonListener
           
protected  JButton decrButton
           
protected static int DECREASE_HIGHLIGHT
           
protected  JButton incrButton
           
protected static int INCREASE_HIGHLIGHT
           
protected  boolean isDragging
           
protected  Dimension maximumThumbSize
           
protected  Dimension minimumThumbSize
           
protected  BasicScrollBarUI.ModelListener modelListener
           
protected static int NO_HIGHLIGHT
           
protected  PropertyChangeListener propertyChangeListener
           
protected  JScrollBar scrollbar
           
protected  BasicScrollBarUI.ScrollListener scrollListener
           
protected  Timer scrollTimer
           
protected  Color thumbColor
           
protected  Color thumbDarkShadowColor
           
protected  Color thumbHighlightColor
           
protected  Color thumbLightShadowColor
           
protected  Rectangle thumbRect
           
protected  Color trackColor
           
protected  int trackHighlight
           
protected  Color trackHighlightColor
           
protected  BasicScrollBarUI.TrackListener trackListener
           
protected  Rectangle 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
 
构造方法摘要
BasicScrollBarUI()
           
 
方法摘要
 void addLayoutComponent(String name, Component child)
          如果布局管理器使用每组件字符串,则将组件 comp 添加到布局,并将其与 name 指定的字符串关联。
protected  void configureScrollBarColors()
           
protected  BasicScrollBarUI.ArrowButtonListener createArrowButtonListener()
           
protected  JButton createDecreaseButton(int orientation)
           
protected  JButton createIncreaseButton(int orientation)
           
protected  BasicScrollBarUI.ModelListener createModelListener()
           
protected  PropertyChangeListener createPropertyChangeListener()
           
protected  BasicScrollBarUI.ScrollListener createScrollListener()
           
protected  BasicScrollBarUI.TrackListener createTrackListener()
           
static ComponentUI createUI(JComponent c)
           
 Dimension getMaximumSize(JComponent c)
          返回指定组件的适合外观的最大大小。
protected  Dimension getMaximumThumbSize()
          返回 thumb 的最大可接受大小。
protected  Dimension getMinimumThumbSize()
          返回 thumb 的最小可接受大小。
 Dimension getPreferredSize(JComponent c)
          垂直滚动条的首选宽度是(非 null)递增/递减按钮的首选宽度的最大值,也是 thumb 的最小宽度。
 boolean getSupportsAbsolutePositioning()
          指示用户是否可以利用鼠标动作(通常使用中间的鼠标按键)来绝对定位 thumb。
protected  Rectangle getThumbBounds()
          返回 thumb 的当前大小/位置。
protected  Rectangle getTrackBounds()
          返回滑道的当前边界,即递增和递减按钮之间的空间(减去 insets)。
protected  void installComponents()
           
protected  void installDefaults()
           
protected  void installKeyboardActions()
           
protected  void installListeners()
           
 void installUI(JComponent c)
          配置指定组件,使其适合外观。
 boolean isThumbRollover()
          如果鼠标当前位于 thumb 上,则返回 true。
 void layoutContainer(Container scrollbarContainer)
          布置指定容器。
protected  void layoutHScrollbar(JScrollBar sb)
           
protected  void layoutVScrollbar(JScrollBar sb)
           
 Dimension minimumLayoutSize(Container scrollbarContainer)
          给定指定容器所包含的组件,计算该容器的最小大小维数。
 void paint(Graphics g, JComponent c)
          绘制指定组件,使其适合外观。
protected  void paintDecreaseHighlight(Graphics g)
           
protected  void paintIncreaseHighlight(Graphics g)
           
protected  void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)
           
protected  void paintTrack(Graphics g, JComponent c, Rectangle trackBounds)
           
 Dimension preferredLayoutSize(Container scrollbarContainer)
          给定指定容器所包含的组件,计算该容器的首选大小维数。
 void removeLayoutComponent(Component child)
          从布局移除指定组件。
protected  void scrollByBlock(int direction)
           
protected  void scrollByUnit(int direction)
           
protected  void setThumbBounds(int x, int y, int width, int height)
          设置 thumb 的边界并强制进行包括新旧 thumbBounds 在内的重绘。
protected  void setThumbRollover(boolean active)
          设置鼠标当前是否位于 thumb 上。
protected  void uninstallComponents()
           
protected  void uninstallDefaults()
           
protected  void uninstallKeyboardActions()
           
protected  void uninstallListeners()
           
 void uninstallUI(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

微信小程序

微信扫一扫体验

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部