クラスSynthSliderUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.SliderUI
javax.swing.plaf.basic.BasicSliderUI
javax.swing.plaf.synth.SynthSliderUI
- すべての実装されたインタフェース:
PropertyChangeListener, EventListener, SynthConstants, SynthUI
public class SynthSliderUI extends BasicSliderUI implements PropertyChangeListener, SynthUI
JSliderのSynth L&F UIの委譲を提供します。- 導入されたバージョン:
- 1.7
-
ネストされたクラスのサマリー
クラスBasicSliderUIで宣言されたネストされたクラス/インタフェース
BasicSliderUI.ActionScroller, BasicSliderUI.ChangeHandler, BasicSliderUI.ComponentHandler, BasicSliderUI.FocusHandler, BasicSliderUI.PropertyChangeHandler, BasicSliderUI.ScrollListener, BasicSliderUI.TrackListener修飾子と型クラス説明classドキュメントから削除されたこのクラスは、Java 2プラットフォーム1.3では使用しません。classデータ・モデルのリスナーです。classサイズ変更イベントのリスナーです。classフォーカス変更のリスナーです。classプロパティ変更ハンドラ。classスクロール・イベント・リスナーです。classマウスの動きを追跡します。 -
フィールドのサマリー
クラスで宣言されたフィールド 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修飾子と型フィールド説明protected ChangeListenerリスナーを変更protected ComponentListenerコンポーネント・リスナーprotected Rectangleコンテンツ矩形protected Insetsフォーカス・インセットprotected FocusListenerフォーカス・リスナーprotected Rectangleフォーカス矩形protected Insetsインセット・キャッシュprotected Rectangleラベル矩形protected boolean左から右へのキャッシュstatic final int最大スクロールstatic final int最小スクロールstatic final intネガティブ・スクロールstatic final intポジティブ・スクロールprotected PropertyChangeListenerプロパティ変更リスナーprotected BasicSliderUI.ScrollListenerスクロール・リスナーprotected Timerスクロール・タイマーprotected JSliderSliderprotected Rectangleサムの矩形protected RectangleTick rectangleprotected intトラックがコントロールの側面からの距離protected BasicSliderUI.TrackListenerトラック・リスナーprotected Rectangleトラック矩形インタフェースで宣言されたフィールド SynthConstants
DEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED修飾子と型フィールド説明static final int領域がデフォルトであることを示します。static final int領域が有効でないことを示すプライマリ状態です。static final intコンポーネントが有効であることを示すプライマリ状態です。static final int領域にフォーカスがあることを示します。static final intマウスが領域上にあることを示すプライマリ状態です。static final int領域が押された状態であることを示すプライマリ状態です。static final int領域が選択されていることを示します。 -
コンストラクタのサマリー
コンストラクタ -
メソッドのサマリー
修飾子と型メソッド説明static ComponentUI指定されたコンポーネントの新しいUIオブジェクトを作成します。指定されたコンポーネントのコンテキストを返します。protected voidlayout()スライダを配置します。voidpaint(Graphics g, JComponent c) Look & Feelに従って、指定されたコンポーネントをペイントします。protected voidpaint(SynthContext context, Graphics g) 指定されたコンポーネントをペイントします。voidpaintBorder(SynthContext context, Graphics g, int x, int y, int w, int h) ボーダーをペイントします。protected voidpaintThumb(SynthContext context, Graphics g, Rectangle thumbBounds) スライダのつまみをペイントします。protected voidpaintTrack(SynthContext context, Graphics g, Rectangle trackBounds) スライダのトラックをペイントします。voidバウンド・プロパティの変更時に呼び出されます。protected voiduninstallDefaults(JSlider slider) デフォルトの設定をアンインストールします。voidupdate(Graphics g, JComponent c) このUI委譲に、指定されたコンポーネントを再ペイントするよう通知します。クラスで宣言されたメソッド BasicSliderUI
calculateContentRect, calculateFocusRect, calculateGeometry, calculateLabelRect, calculateThumbLocation, calculateThumbSize, calculateTickRect, calculateTrackBuffer, calculateTrackRect, createChangeListener, createComponentListener, createFocusListener, createPropertyChangeListener, createScrollListener, createTrackListener, drawInverted, getBaseline, getBaselineResizeBehavior, getFocusColor, getHeightOfHighValueLabel, getHeightOfLowValueLabel, getHeightOfTallestLabel, getHighestValue, getHighestValueLabel, getHighlightColor, getLowestValue, getLowestValueLabel, getMaximumSize, getMinimumHorizontalSize, getMinimumSize, getMinimumVerticalSize, getPreferredHorizontalSize, getPreferredSize, getPreferredVerticalSize, getShadowColor, getThumbSize, getTickLength, getWidthOfHighValueLabel, getWidthOfLowValueLabel, getWidthOfWidestLabel, installDefaults, installKeyboardActions, installListeners, installUI, isDragging, labelsHaveSameBaselines, paintFocus, paintHorizontalLabel, paintLabels, paintMajorTickForHorizSlider, paintMajorTickForVertSlider, paintMinorTickForHorizSlider, paintMinorTickForVertSlider, paintThumb, paintTicks, paintTrack, paintVerticalLabel, recalculateIfInsetsChanged, recalculateIfOrientationChanged, scrollByBlock, scrollByUnit, scrollDueToClickInTrack, setThumbLocation, uninstallKeyboardActions, uninstallListeners, uninstallUI, valueForXPosition, valueForYPosition, xPositionForValue, yPositionForValue, yPositionForValue修飾子と型メソッド説明protected voidコンテンツの矩形を計算します。protected voidフォーカス矩形を計算します。protected voidジオメトリを計算します。protected voidラベル矩形を計算します。protected voidサムのロケーションを計算します。protected voidサムのサイズの矩形を計算します。protected voidティック矩形を計算します。protected voidトラック・バッファを計算します。protected voidトラックの矩形を計算します。protected ChangeListenercreateChangeListener(JSlider slider) 変更リスナーを作成します。protected ComponentListenercreateComponentListener(JSlider slider) コンポジット・リスナーを作成します。protected FocusListenercreateFocusListener(JSlider slider) フォーカス・リスナーを作成します。protected PropertyChangeListenercreatePropertyChangeListener(JSlider slider) プロパティ変更リスナーを作成します。protected BasicSliderUI.ScrollListenercreateScrollListener(JSlider slider) スクロール・リスナーを作成します。protected BasicSliderUI.TrackListenercreateTrackListener(JSlider slider) トラック・リスナーを作成します。protected boolean逆に描画します。intgetBaseline(JComponent c, int width, int height) ベースラインを返します。サイズの変化に合わせてコンポーネントのベースラインがどのように変化するかを示す列挙を返します。protected Colorフォーカス・カラーを返します。protected int最高値ラベルの高さを返します。protected int最小値ラベルの高さを返します。protected int最も高いラベルの高さを返します。protected Integerラベル・テーブル内でエントリを持つ値の最大値を返します。protected Componentラベル・テーブル内で最小スライダ値に対応するラベルを返します。protected Colorハイライトの色を返します。protected Integerラベル・テーブル内でエントリを持つ値の最小値を返します。protected Componentラベル・テーブル内で最大スライダ値に対応するラベルを返します。最大サイズを返します。最小水平サイズを返します。最小サイズを返します。最小垂直サイズを返します。優先水平サイズを返します。優先サイズを返します。優先される垂直サイズを返します。protected Colorシャドウの色を返します。protected Dimensionサムのサイズを返します。protected int水平スライダの目盛り領域の高さおよび垂直スライダの目盛り領域の幅を返します。protected int最高値ラベルの幅を返します。protected int最小値ラベルの幅を返します。protected int最も広いラベルの幅を返します。protected voidinstallDefaults(JSlider slider) デフォルトをインストールします。protected voidinstallKeyboardActions(JSlider slider) キーボード操作をインストールします。protected voidinstallListeners(JSlider slider) リスナーをインストールします。voidUIをインストールします。protected booleanユーザーがスライダをドラッグしている場合はtrueを返します。protected booleanラベル・テーブルのすべてのラベルのベースラインが同じである場合にtrueを返します。void絵の焦点。protected voidpaintHorizontalLabel(Graphics g, int value, Component label) ラベル・テーブルの各ラベルに対して呼び出されます。voidラベルをペイントします。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) 垂直スライダのマイナー・ティックをペイントします。voidサムを塗ります。voidティックを塗ります。voidペイント・トラック。protected voidpaintVerticalLabel(Graphics g, int value, Component label) ラベル・テーブルの各ラベルに対して呼び出されます。protected voidインセットが変更された場合に再計算されます。protected void方向が変更された場合に再計算されます。voidscrollByBlock(int direction) ブロックごとにスクロールします。voidscrollByUnit(int direction) 単位でスクロールします。protected voidscrollDueToClickInTrack(int dir) つまみではなくトラックでmousePressedが検出されたときに呼び出されます。voidsetThumbLocation(int x, int y) サムのロケーションを設定します。protected voiduninstallKeyboardActions(JSlider slider) キーボード操作をアンインストールします。protected voiduninstallListeners(JSlider slider) リスナーをアンインストールします。voidUIをアンインストールします。intvalueForXPosition(int xPos) x位置の値を返します。intvalueForYPosition(int yPos) y位置の値を返します。protected intxPositionForValue(int value) 値のx位置を返します。protected intyPositionForValue(int value) 値のy位置を返します。protected intyPositionForValue(int value, int trackY, int trackHeight) 指定された値のyの位置を返します。クラスで宣言されたメソッド ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount修飾子と型メソッド説明booleancontains(JComponent c, int x, int y) 指定された x,yの位置が、指定されたコンポーネントのLook & Feel定義の形状内にある場合は、trueを返します。getAccessibleChild(JComponent c, int i) オブジェクトのi番目のAccessibleの子を返します。intオブジェクト内のアクセシビリティ対応の子の数を返します。クラスオブジェクトで宣言されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait修飾子と型メソッド説明protected Objectclone()このオブジェクトのコピーを作成して、返します。booleanこのオブジェクトと他のオブジェクトが等しいかどうかを示します。protected voidfinalize()削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。最終決定は非推奨であり、将来のリリースで削除される可能性があります。final Class<?> getClass()このObjectの実行時クラスを返します。inthashCode()このオブジェクトに対するハッシュ・コード値を返します。final voidnotify()このオブジェクトのモニターで待機中のスレッドを1つ再開します。final voidこのオブジェクトのモニターで待機中のすべてのスレッドを再開します。toString()オブジェクトの文字列表現を返します。final voidwait()現在のスレッドが目覚めるまで待機します。通常、notifiedまたはinterruptedです。final voidwait(long timeoutMillis) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。final voidwait(long timeoutMillis, int nanos) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。
-
コンストラクタの詳細
-
SynthSliderUI
-
-
メソッドの詳細
-
createUI
public static ComponentUI createUI(JComponent c) 指定されたコンポーネントの新しいUIオブジェクトを作成します。- パラメータ:
c- UIオブジェクトを作成するコンポーネント- 戻り値:
- UIオブジェクト
-
uninstallDefaults
protected void uninstallDefaults(JSlider slider) デフォルトの設定をアンインストールします。 このメソッドは、LookAndFeelのアンインストール時に呼び出されます。- オーバーライド:
uninstallDefaults、クラスBasicSliderUI- パラメータ:
slider- スライダ
-
layout
protected void layout()スライダを配置します。 -
getContext
public SynthContext getContext(JComponent c) 指定されたコンポーネントのコンテキストを返します。- 定義:
getContext、インタフェースSynthUI- パラメータ:
c- SynthContextを要求するコンポーネント。- 戻り値:
- コンポーネントを記述するSynthContext。
-
update
public void update(Graphics g, JComponent c) このUI委譲に、指定されたコンポーネントを再ペイントするよう通知します。 このメソッドはコンポーネントのバックグラウンドをペイントし、paint(SynthContext,Graphics)メソッドを呼び出します。一般に、このメソッドはサブクラスによってオーバーライドする必要はありません。 すべてのLook & Feelの描画コードを
paintメソッドに入れるようにしてください。- オーバーライド:
update、クラスComponentUI- パラメータ:
g- ペイントに使用されるGraphicsオブジェクトc- ペイントされるコンポーネント- 関連項目:
-
paint
public void paint(Graphics g, JComponent c) Look & Feelに従って、指定されたコンポーネントをペイントします。このメソッドは、Synth Look & Feelで使用されません。 ペイントは
paint(SynthContext,Graphics)メソッドによって処理されます。- オーバーライド:
paint、クラスComponentUI- パラメータ:
g- ペイントに使用されるGraphicsオブジェクトc- ペイントされるコンポーネント- 関連項目:
-
paint
protected void paint(SynthContext context, Graphics g) 指定されたコンポーネントをペイントします。- パラメータ:
context- ペイントされるコンポーネントのコンテキストg- ペイントに使用されるGraphicsオブジェクト- 関連項目:
-
paintBorder
public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h) ボーダーをペイントします。- 定義:
paintBorder、インタフェースSynthUI- パラメータ:
context- コンポーネント・コンテキストg- ペイントされるGraphicsx- X座標y- Y座標w- ボーダーの幅h- ボーダーの高さ
-
paintThumb
protected void paintThumb(SynthContext context, Graphics g, Rectangle thumbBounds) スライダのつまみをペイントします。- パラメータ:
context- ペイントされるコンポーネントのコンテキストg- ペイントに使用されるGraphicsオブジェクトthumbBounds- サムのバウンディング・ボックス
-
paintTrack
protected void paintTrack(SynthContext context, Graphics g, Rectangle trackBounds) スライダのトラックをペイントします。- パラメータ:
context- ペイントされるコンポーネントのコンテキストg- ペイントに使用されるGraphicsオブジェクトtrackBounds- トラックのバウンディング・ボックス
-
propertyChange
public void propertyChange(PropertyChangeEvent e) バウンド・プロパティの変更時に呼び出されます。- 定義:
propertyChange、インタフェースPropertyChangeListener- パラメータ:
e- イベント・ソースと変更されたプロパティを記述したPropertyChangeEventオブジェクト。
-