- 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 MetalScrollBarUIextends BasicScrollBarUI
为金属外观实现ScrollBarUI
-
-
字段汇总
字段 变量和类型 字段 描述 protected MetalScrollButton
decreaseButton
减少按钮。static String
FREE_STANDING_PROP
物业JScrollBar.isFreeStanding
。protected MetalScrollButton
increaseButton
增加按钮。protected boolean
isFreeStanding
物业的价值JScrollBar.isFreeStanding
。protected int
scrollBarWidth
滚动条的宽度。-
声明的属性在类 javax.swing.plaf.basic.BasicScrollBarUI
buttonListener, decrButton, DECREASE_HIGHLIGHT, decrGap, incrButton, INCREASE_HIGHLIGHT, incrGap, isDragging, maximumThumbSize, minimumThumbSize, modelListener, NO_HIGHLIGHT, propertyChangeListener, scrollbar, scrollListener, scrollTimer, thumbDarkShadowColor, thumbLightShadowColor, thumbRect, trackColor, trackHighlight, trackHighlightColor, trackListener, trackRect
-
Fields declared in interface 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 JButton
createDecreaseButton(int orientation)
返回表示减少视图的视图。protected JButton
createIncreaseButton(int orientation)
返回表示增加视图的视图。static ComponentUI
createUI(JComponent c)
构造一个新的MetalScrollBarUI
实例。protected void
setThumbBounds(int x, int y, int width, int height)
这被覆盖只是为了增加无效区域。-
声明方法的类 javax.swing.plaf.basic.BasicScrollBarUI
configureScrollBarColors, createArrowButtonListener, createModelListener, createPropertyChangeListener, createScrollListener, createTrackListener, getMaximumSize, getMaximumThumbSize, getMinimumThumbSize, getPreferredSize, getSupportsAbsolutePositioning, getThumbBounds, getTrackBounds, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, isThumbRollover, layoutHScrollbar, layoutVScrollbar, paintDecreaseHighlight, paintIncreaseHighlight, paintThumb, paintTrack, scrollByBlock, scrollByUnit, setThumbRollover, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
-
声明方法的类 javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMinimumSize, paint, update
-
声明方法的类 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
声明方法的接口 java.awt.LayoutManager
addLayoutComponent, layoutContainer, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent
-
-
-
-
字段详细信息
-
increaseButton
protected MetalScrollButton increaseButton
增加按钮。
-
decreaseButton
protected MetalScrollButton decreaseButton
减少按钮。
-
scrollBarWidth
protected int scrollBarWidth
滚动条的宽度。
-
FREE_STANDING_PROP
public static final String FREE_STANDING_PROP
物业JScrollBar.isFreeStanding
。- 另请参见:
- 常数字段值
-
isFreeStanding
protected boolean isFreeStanding
物业的价值JScrollBar.isFreeStanding
。
-
-
方法详细信息
-
createUI
public static ComponentUI createUI(JComponent c)
构造一个新的MetalScrollBarUI
实例。- 参数
-
c
- 一个组件 - 结果
- 一个新的
MetalScrollBarUI
实例
-
createDecreaseButton
protected JButton createDecreaseButton(int orientation)
返回表示减少视图的视图。- 重写:
-
createDecreaseButton
在BasicScrollBarUI
类 - 参数
-
orientation
- 方向 - 结果
- 减少按钮
-
createIncreaseButton
protected JButton createIncreaseButton(int orientation)
返回表示增加视图的视图。- 重写:
-
createIncreaseButton
,类BasicScrollBarUI
- 参数
-
orientation
- 方向 - 结果
- 增加按钮
-
setThumbBounds
protected void setThumbBounds(int x, int y, int width, int height)
这被覆盖只是为了增加无效区域。 这可确保拇指下方的“阴影”无效- 重写:
-
setThumbBounds
在类BasicScrollBarUI
- 参数
-
x
- 设置拇指的x位置 -
y
- 设置拇指的y位置 -
width
- 设置拇指的宽度 -
height
- 设置拇指的高度 - 另请参见:
-
BasicScrollBarUI.getThumbBounds()
-
-