所有类


javax.swing.plaf.metal
类 MetalSliderUI

java.lang.Object
  继承者 javax.swing.plaf.ComponentUI
      继承者 javax.swing.plaf.SliderUI
          继承者 javax.swing.plaf.basic.BasicSliderUI
              继承者 javax.swing.plaf.metal.MetalSliderUI

public class MetalSliderUI
   
   
   
   
extends BasicSliderUI

SliderUI 的 Java L&F 实现。

警告:此类的已序列化对象与以后的 Swing 版本不兼容。当前序列化支持适用于短期存储或运行相同 Swing 版本的应用程序之间的 RMI。从 1.4 版本开始,已在 java.beans 包中添加了支持所有 JavaBeansTM 长期存储的功能。请参见 XMLEncoder


嵌套类摘要
protected  classMetalSliderUI.MetalPropertyListener
           
 
从类 javax.swing.plaf.basic.BasicSliderUI 继承的嵌套类/接口
BasicSliderUI.ActionScroller, BasicSliderUI.ChangeHandler, BasicSliderUI.ComponentHandler, BasicSliderUI.FocusHandler, BasicSliderUI.PropertyChangeHandler, BasicSliderUI.ScrollListener, BasicSliderUI.TrackListener
 
字段摘要
protected static ColordarkShadowColor
           
protected  booleanfilledSlider
           
protected static ColorhighlightColor
           
protected static IconhorizThumbIcon
           
protected  StringSLIDER_FILL
           
protected static ColorthumbColor
           
protected  intTICK_BUFFER
           
protected static inttickLength
           
protected static inttrackWidth
           
protected static IconvertThumbIcon
           
 
从类 javax.swing.plaf.basic.BasicSliderUI 继承的字段
changeListener, componentListener, contentRect, focusInsets, focusListener, focusRect, insetCache, labelRect, leftToRightCache, MAX_SCROLL, MIN_SCROLL, NEGATIVE_SCROLL, POSITIVE_SCROLL, propertyChangeListener, scrollListener, scrollTimer, slider, thumbRect, tickRect, trackBuffer, trackListener, trackRect
 
构造方法摘要
MetalSliderUI()
           
 
方法摘要
protected  PropertyChangeListenercreatePropertyChangeListener(JSlider slider)
           
static ComponentUIcreateUI(JComponent c)
           
protected  intgetThumbOverhang()
          返回 thumb 在滑杆上滑过的量。
protected  DimensiongetThumbSize()
           
 intgetTickLength()
          获得水平滑块的刻度区域高度和垂直滑块的刻度区域宽度。
protected  intgetTrackLength()
          返回较长的滑杆尺寸。
protected  intgetTrackWidth()
          返回较短的滑道尺寸。
 voidinstallUI(JComponent c)
          配置指定组件,使其适合外观。
 voidpaintFocus(Graphics g)
           
protected  voidpaintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
           
protected  voidpaintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
           
protected  voidpaintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
           
protected  voidpaintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
           
 voidpaintThumb(Graphics g)
           
 voidpaintTrack(Graphics g)
           
protected  voidscrollDueToClickInTrack(int dir)
          在滑道(而非 thumb)中检测到 mousePressed 时调用此方法。
 
从类 javax.swing.plaf.basic.BasicSliderUI 继承的方法
calculateContentRect, calculateFocusRect, calculateGeometry, calculateLabelRect, calculateThumbLocation, calculateThumbSize, calculateTickRect, calculateTrackBuffer, calculateTrackRect, createChangeListener, createComponentListener, createFocusListener, createScrollListener, createTrackListener, drawInverted, getFocusColor, getHeightOfHighValueLabel, getHeightOfLowValueLabel, getHeightOfTallestLabel, getHighestValueLabel, getHighlightColor, getLowestValueLabel, getMaximumSize, getMinimumHorizontalSize, getMinimumSize, getMinimumVerticalSize, getPreferredHorizontalSize, getPreferredSize, getPreferredVerticalSize, getShadowColor, getWidthOfHighValueLabel, getWidthOfLowValueLabel, getWidthOfWidestLabel, installDefaults, installKeyboardActions, installListeners, isDragging, paint, paintHorizontalLabel, paintLabels, paintTicks, paintVerticalLabel, recalculateIfInsetsChanged, recalculateIfOrientationChanged, scrollByBlock, scrollByUnit, setThumbLocation, uninstallKeyboardActions, uninstallListeners, uninstallUI, valueForXPosition, valueForYPosition, xPositionForValue, yPositionForValue
 
从类 javax.swing.plaf.ComponentUI 继承的方法
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

TICK_BUFFER

protected final int TICK_BUFFER
另请参见:
常量字段值

filledSlider

protected boolean filledSlider

thumbColor

protected static Color thumbColor

highlightColor

protected static Color highlightColor

darkShadowColor

protected static Color darkShadowColor

trackWidth

protected static int trackWidth

tickLength

protected static int tickLength