public class MetalSliderUI extends BasicSliderUI
警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。 現在の直列化のサポートは、短期間の格納や、同じバージョンのSwingを実行するアプリケーション間のRMIに適しています。 1.4以降、すべてのJavaBeans™用の長期間の格納サポートがjava.beans
パッケージに追加されています。 XMLEncoder
を参照してください。
修飾子と型 | クラス | 説明 |
---|---|---|
protected class |
MetalSliderUI.MetalPropertyListener |
BasicSliderUI.ActionScroller, BasicSliderUI.ChangeHandler, BasicSliderUI.ComponentHandler, BasicSliderUI.FocusHandler, BasicSliderUI.PropertyChangeHandler, BasicSliderUI.ScrollListener, BasicSliderUI.TrackListener
修飾子と型 | フィールド | 説明 |
---|---|---|
protected static Color |
darkShadowColor |
|
protected boolean |
filledSlider |
|
protected static Color |
highlightColor |
|
protected static Icon |
horizThumbIcon |
デフォルトの水平サム
Icon です。 |
protected String |
SLIDER_FILL |
|
protected static Color |
thumbColor |
|
protected int |
TICK_BUFFER |
|
protected static int |
tickLength |
|
protected static int |
trackWidth |
|
protected static Icon |
vertThumbIcon |
デフォルトの垂直サム
Icon です。 |
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 PropertyChangeListener |
createPropertyChangeListener(JSlider slider) |
|
static ComponentUI |
createUI(JComponent c) |
|
protected int |
getThumbOverhang() |
サムがスライド・バーを超過する部分の量を返します。
|
protected Dimension |
getThumbSize() |
|
int |
getTickLength() |
水平スライダの目盛り領域の高さおよび垂直スライダの目盛り領域の幅を返します。
|
protected int |
getTrackLength() |
スライド・バーの長辺の寸法を返します。
|
protected int |
getTrackWidth() |
トラックの短辺の寸法を返します。
|
void |
installUI(JComponent c) |
指定されたコンポーネントをLook & Feelに応じて適切に構成します。
|
void |
paintFocus(Graphics g) |
|
protected void |
paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x) |
|
protected void |
paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y) |
|
protected void |
paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x) |
|
protected void |
paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y) |
|
void |
paintThumb(Graphics g) |
|
void |
paintTrack(Graphics g) |
|
protected void |
scrollDueToClickInTrack(int dir) |
つまみではなくトラックでmousePressedが検出されたときに呼び出されます。
|
calculateContentRect, calculateFocusRect, calculateGeometry, calculateLabelRect, calculateThumbLocation, calculateThumbSize, calculateTickRect, calculateTrackBuffer, calculateTrackRect, createChangeListener, createComponentListener, createFocusListener, createScrollListener, createTrackListener, drawInverted, getBaseline, getBaselineResizeBehavior, getFocusColor, getHeightOfHighValueLabel, getHeightOfLowValueLabel, getHeightOfTallestLabel, getHighestValue, getHighestValueLabel, getHighlightColor, getLowestValue, getLowestValueLabel, getMaximumSize, getMinimumHorizontalSize, getMinimumSize, getMinimumVerticalSize, getPreferredHorizontalSize, getPreferredSize, getPreferredVerticalSize, getShadowColor, getWidthOfHighValueLabel, getWidthOfLowValueLabel, getWidthOfWidestLabel, installDefaults, installKeyboardActions, installListeners, isDragging, labelsHaveSameBaselines, paint, paintHorizontalLabel, paintLabels, paintTicks, paintVerticalLabel, recalculateIfInsetsChanged, recalculateIfOrientationChanged, scrollByBlock, scrollByUnit, setThumbLocation, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, valueForXPosition, valueForYPosition, xPositionForValue, yPositionForValue, yPositionForValue
contains, getAccessibleChild, getAccessibleChildrenCount, update
protected final int TICK_BUFFER
protected boolean filledSlider
protected static Color thumbColor
protected static Color highlightColor
protected static Color darkShadowColor
protected static int trackWidth
protected static int tickLength
protected static Icon horizThumbIcon
Icon
です。 このフィールドは使用できません。 この委譲によって使用されるIcon
を変更するには、Slider.horizontalThumbIcon
UIManagerプロパティを使用して直接設定します。 protected static Icon vertThumbIcon
Icon
です。 このフィールドは使用できません。 この委譲によって使用されるIcon
を変更するには、Slider.verticalThumbIcon
UIManagerプロパティを使用して直接設定します。 public static ComponentUI createUI(JComponent c)
public void installUI(JComponent c)
ComponentUI
ComponentUI
インスタンスが、指定されたコンポーネントのUI委譲としてインストールされているときに呼び出されます。 このメソッドは、次を含むLook & Feel用のコンポーネントを完全に構成するべきです。
LayoutManager
をインストールする。
PropertyChangeListener
を作成してコンポーネントにインストールする。
installUI
、クラスBasicSliderUI
c
- UI委譲がインストールされるコンポーネントComponentUI.uninstallUI(javax.swing.JComponent)
, JComponent.setUI(javax.swing.plaf.ComponentUI)
, JComponent.updateUI()
protected PropertyChangeListener createPropertyChangeListener(JSlider slider)
createPropertyChangeListener
、クラスBasicSliderUI
public void paintThumb(Graphics g)
paintThumb
、クラスBasicSliderUI
public void paintTrack(Graphics g)
paintTrack
、クラスBasicSliderUI
public void paintFocus(Graphics g)
paintFocus
、クラスBasicSliderUI
protected Dimension getThumbSize()
getThumbSize
、クラスBasicSliderUI
public int getTickLength()
getTickLength
、クラスBasicSliderUI
protected int getTrackWidth()
protected int getTrackLength()
protected int getThumbOverhang()
protected void scrollDueToClickInTrack(int dir)
BasicSliderUI
scrollDueToClickInTrack
、クラスBasicSliderUI
protected void paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
paintMinorTickForHorizSlider
、クラスBasicSliderUI
protected void paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
paintMajorTickForHorizSlider
、クラスBasicSliderUI
protected void paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
paintMinorTickForVertSlider
、クラスBasicSliderUI
protected void paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
paintMajorTickForVertSlider
、クラスBasicSliderUI
バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。