Java プラットフォーム 1.2

javax.swing.plaf.metal
クラス MetalScrollBarUI

java.lang.Object
  |
  +--javax.swing.plaf.ComponentUI
        |
        +--javax.swing.plaf.ScrollBarUI
              |
              +--javax.swing.plaf.basic.BasicScrollBarUI
                    |
                    +--javax.swing.plaf.metal.MetalScrollBarUI

public class MetalScrollBarUI
extends BasicScrollBarUI

Metal Look & Feel に使用する ScrollBarUI の実装です。


クラス javax.swing.plaf.basic.BasicScrollBarUI から継承した内部クラス
BasicScrollBarUI.ArrowButtonListener, BasicScrollBarUI.ModelListener, BasicScrollBarUI.PropertyChangeHandler, BasicScrollBarUI.ScrollListener, BasicScrollBarUI.TrackListener
 
フィールドの概要
protected  javax.swing.plaf.metal.MetalBumps bumps
           
protected  MetalScrollButton decreaseButton
           
static String FREE_STANDING_PROP
           
protected  MetalScrollButton increaseButton
           
protected  boolean isFreeStanding
           
protected  int scrollBarWidth
           
 
クラス javax.swing.plaf.basic.BasicScrollBarUI から継承したフィールド
buttonListener, decrButton, DECREASE_HIGHLIGHT, incrButton, INCREASE_HIGHLIGHT, isDragging, maximumThumbSize, minimumThumbSize, modelListener, NO_HIGHLIGHT, propertyChangeListener, scrollbar, scrollListener, scrollTimer, thumbColor, thumbDarkShadowColor, thumbHighlightColor, thumbLightShadowColor, thumbRect, trackColor, trackHighlight, trackHighlightColor, trackListener, trackRect
 
コンストラクタの概要
MetalScrollBarUI()
           
 
メソッドの概要
protected  void configureScrollBarColors()
           
protected  JButton createDecreaseButton(int orientation)
          減少ビューを表すビューを返します。
protected  JButton createIncreaseButton(int orientation)
          増加ビューを表すビューを返します。
protected  PropertyChangeListener createPropertyChangeListener()
           
static ComponentUI createUI(JComponent c)
           
protected  Dimension getMinimumThumbSize()
           
 Dimension getPreferredSize(JComponent c)
           
protected  void installDefaults()
           
protected  void installListeners()
           
protected  void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)
           
protected  void paintTrack(Graphics g, JComponent c, Rectangle trackBounds)
           
protected  void setThumbBounds(int x, int y, int width, int height)
          無効な領域を増加させる場合にだけオーバーライドされます。
 
クラス javax.swing.plaf.basic.BasicScrollBarUI から継承したメソッド
addLayoutComponent, createArrowButtonListener, createModelListener, createScrollListener, createTrackListener, getMaximumSize, getMaximumThumbSize, getMinimumSize, getThumbBounds, getTrackBounds, installComponents, installKeyboardActions, installUI, layoutContainer, layoutHScrollbar, layoutVScrollbar, minimumLayoutSize, paint, paintDecreaseHighlight, paintIncreaseHighlight, preferredLayoutSize, removeLayoutComponent, scrollByBlock, scrollByUnit, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
 
クラス javax.swing.plaf.ComponentUI から継承したメソッド
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

bumps

protected javax.swing.plaf.metal.MetalBumps bumps

increaseButton

protected MetalScrollButton increaseButton

decreaseButton

protected MetalScrollButton decreaseButton

scrollBarWidth

protected int scrollBarWidth

FREE_STANDING_PROP

public static final String FREE_STANDING_PROP

isFreeStanding

protected boolean isFreeStanding
コンストラクタの詳細

MetalScrollBarUI

public MetalScrollBarUI()
メソッドの詳細

createUI

public static ComponentUI createUI(JComponent c)

installDefaults

protected void installDefaults()
オーバーライド:
クラス BasicScrollBarUI 内の installDefaults

installListeners

protected void installListeners()
オーバーライド:
クラス BasicScrollBarUI 内の installListeners

createPropertyChangeListener

protected PropertyChangeListener createPropertyChangeListener()
オーバーライド:
クラス BasicScrollBarUI 内の createPropertyChangeListener

configureScrollBarColors

protected void configureScrollBarColors()
オーバーライド:
クラス BasicScrollBarUI 内の configureScrollBarColors

getPreferredSize

public Dimension getPreferredSize(JComponent c)
オーバーライド:
クラス BasicScrollBarUI 内の getPreferredSize

createDecreaseButton

protected JButton createDecreaseButton(int orientation)
減少ビューを表すビューを返します。
オーバーライド:
クラス BasicScrollBarUI 内の createDecreaseButton

createIncreaseButton

protected JButton createIncreaseButton(int orientation)
増加ビューを表すビューを返します。
オーバーライド:
クラス BasicScrollBarUI 内の createIncreaseButton

paintTrack

protected void paintTrack(Graphics g,
                          JComponent c,
                          Rectangle trackBounds)
オーバーライド:
クラス BasicScrollBarUI 内の paintTrack

paintThumb

protected void paintThumb(Graphics g,
                          JComponent c,
                          Rectangle thumbBounds)
オーバーライド:
クラス BasicScrollBarUI 内の paintThumb

getMinimumThumbSize

protected Dimension getMinimumThumbSize()
オーバーライド:
クラス BasicScrollBarUI 内の getMinimumThumbSize

setThumbBounds

protected void setThumbBounds(int x,
                              int y,
                              int width,
                              int height)
無効な領域を増加させる場合にだけオーバーライドされます。これによってサムの下の「影」が確実に無効になります。
オーバーライド:
クラス BasicScrollBarUI 内の setThumbBounds

Java プラットフォーム 1.2

バグや機能要求の報告
新しい javadoc の表示についてのコメントやご提案
Java は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.