java.lang.Object javax.swing.plaf.ComponentUI javax.swing.plaf.SliderUI javax.swing.plaf.basic.BasicSliderUI
public class BasicSliderUI
SliderUI 的基本 L&F 实现。
嵌套类摘要 | |
---|---|
class |
BasicSliderUI.ActionScroller 从 Java 2 平台 v1.3 开始,不再使用这种以前没有记录的类。 |
class |
BasicSliderUI.ChangeHandler 数据模型侦听器。 |
class |
BasicSliderUI.ComponentHandler 调整事件大小的侦听器。 |
class |
BasicSliderUI.FocusHandler 焦点更改侦听器。 |
class |
BasicSliderUI.PropertyChangeHandler |
class |
BasicSliderUI.ScrollListener 滚动事件侦听器。 |
class |
BasicSliderUI.TrackListener 跟踪鼠标移动。 |
字段摘要 | |
---|---|
protected ChangeListener |
changeListener |
protected ComponentListener |
componentListener |
protected Rectangle |
contentRect |
protected Insets |
focusInsets |
protected FocusListener |
focusListener |
protected Rectangle |
focusRect |
protected Insets |
insetCache |
protected Rectangle |
labelRect |
protected boolean |
leftToRightCache |
static int |
MAX_SCROLL |
static int |
MIN_SCROLL |
static int |
NEGATIVE_SCROLL |
static int |
POSITIVE_SCROLL |
protected PropertyChangeListener |
propertyChangeListener |
protected BasicSliderUI.ScrollListener |
scrollListener |
protected Timer |
scrollTimer |
protected JSlider |
slider |
protected Rectangle |
thumbRect |
protected Rectangle |
tickRect |
protected int |
trackBuffer |
protected BasicSliderUI.TrackListener |
trackListener |
protected Rectangle |
trackRect |
构造方法摘要 | |
---|---|
BasicSliderUI(JSlider b) |
从类 javax.swing.plaf.ComponentUI 继承的方法 |
---|
contains, getAccessibleChild, getAccessibleChildrenCount, update |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段详细信息 |
---|
public static final int POSITIVE_SCROLL
public static final int NEGATIVE_SCROLL
public static final int MIN_SCROLL
public static final int MAX_SCROLL
protected Timer scrollTimer
protected JSlider slider
protected Insets focusInsets
protected Insets insetCache
protected boolean leftToRightCache
protected Rectangle focusRect
protected Rectangle contentRect
protected Rectangle labelRect
protected Rectangle tickRect
protected Rectangle trackRect
protected Rectangle thumbRect
protected int trackBuffer
protected BasicSliderUI.TrackListener trackListener
protected ChangeListener changeListener
protected ComponentListener componentListener
protected FocusListener focusListener
protected BasicSliderUI.ScrollListener scrollListener
protected PropertyChangeListener propertyChangeListener
构造方法详细信息 |
---|
public BasicSliderUI(JSlider b)
方法详细信息 |
---|
protected Color getShadowColor()
protected Color getHighlightColor()
protected Color getFocusColor()
protected boolean isDragging()
public static ComponentUI createUI(JComponent b)
public void installUI(JComponent c)
ComponentUI
复制的描述
ComponentUI
实例将作为 UI 委托安装在指定组件上时,可调用此方法。此方法应该为外观完整地配置组件,包括以下方面:
LayoutManager
。 PropertyChangeListener
。
ComponentUI
中的
installUI
c
- 将安装此 UI 委托的组件
ComponentUI.uninstallUI(javax.swing.JComponent)
,