java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ListUI
javax.swing.plaf.basic.BasicListUI
javax.swing.plaf.synth.SynthListUI
- すべての実装されたインタフェース:
- PropertyChangeListener,- EventListener,- SynthConstants,- SynthUI
public class SynthListUI extends BasicListUI implements PropertyChangeListener, SynthUI
JListのSynth L&F UIの委譲を提供します。- 導入されたバージョン:
- 1.7
- 
ネストされたクラスのサマリークラス javax.swing.plaf.basic.BasicListUIで宣言されたネストされたクラス/インタフェースBasicListUI.FocusHandler, BasicListUI.ListDataHandler, BasicListUI.ListSelectionHandler, BasicListUI.MouseInputHandler, BasicListUI.PropertyChangeHandler
- 
フィールドのサマリークラス javax.swing.plaf.basic.BasicListUIで宣言されたフィールドcellHeight, cellHeights, cellRendererChanged, cellWidth, fixedCellHeightChanged, fixedCellWidthChanged, focusListener, fontChanged, list, listDataListener, listSelectionListener, modelChanged, mouseInputListener, propertyChangeListener, prototypeCellValueChanged, rendererPane, selectionModelChanged, updateLayoutStateNeededインタフェース javax.swing.plaf.synth.SynthConstantsで宣言されたフィールドDEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED
- 
コンストラクタのサマリーコンストラクタ
- 
メソッドのサマリー修飾子と型メソッド説明static ComponentUIcreateUI(JComponent list)指定されたコンポーネントの新しいUIオブジェクトを作成します。getContext(JComponent c)指定されたコンポーネントのコンテキストを返します。voidpaintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)ボーダーをペイントします。voidバウンド・プロパティの変更時に呼び出されます。voidupdate(Graphics g, JComponent c)このUI委譲に、指定されたコンポーネントを再ペイントするよう通知します。クラス javax.swing.plaf.basic.BasicListUIで宣言されたメソッドconvertRowToY, convertYToRow, createFocusListener, createListDataListener, createListSelectionListener, createMouseInputListener, createPropertyChangeListener, getBaseline, getBaselineResizeBehavior, getCellBounds, getPreferredSize, getRowHeight, indexToLocation, installDefaults, installKeyboardActions, installListeners, installUI, locationToIndex, maybeUpdateLayoutState, paint, paintCell, selectNextIndex, selectPreviousIndex, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, updateLayoutStateクラス javax.swing.plaf.ComponentUIで宣言されたメソッドcontains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize
- 
コンストラクタの詳細- 
SynthListUIpublic SynthListUI()SynthListUIを構築します。
 
- 
- 
メソッドの詳細- 
createUIpublic static ComponentUI createUI(JComponent list)指定されたコンポーネントの新しいUIオブジェクトを作成します。- パラメータ:
- list- UIオブジェクトを作成するコンポーネント
- 戻り値:
- UIオブジェクト
 
- 
updatepublic void update(Graphics g, JComponent c)このUI委譲に、指定されたコンポーネントを再ペイントするよう通知します。 このメソッドはコンポーネントのバックグラウンドをペイントし、BasicListUI.paint(java.awt.Graphics, javax.swing.JComponent)メソッドを呼び出します。一般に、このメソッドはサブクラスによってオーバーライドする必要はありません。 すべてのLook & Feelの描画コードを paintメソッドに入れるようにしてください。- オーバーライド:
- update、クラス:- ComponentUI
- パラメータ:
- g- ペイントに使用される- Graphicsオブジェクト
- c- ペイントされるコンポーネント
- 関連項目:
- BasicListUI.paint(java.awt.Graphics, javax.swing.JComponent)
 
- 
paintBorderpublic void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)ボーダーをペイントします。- 定義:
- paintBorder、インタフェース:- SynthUI
- パラメータ:
- context- コンポーネント・コンテキスト
- g- ペイントされる- Graphics
- x- X座標
- y- Y座標
- w- ボーダーの幅
- h- ボーダーの高さ
 
- 
propertyChangepublic void propertyChange(PropertyChangeEvent e)バウンド・プロパティの変更時に呼び出されます。- 定義:
- propertyChange、インタフェース:- PropertyChangeListener
- パラメータ:
- e- イベント・ソースと変更されたプロパティを記述したPropertyChangeEventオブジェクト。
 
- 
getContextpublic SynthContext getContext(JComponent c)指定されたコンポーネントのコンテキストを返します。- 定義:
- getContext、インタフェース:- SynthUI
- パラメータ:
- c- SynthContextを要求するコンポーネント。
- 戻り値:
- コンポーネントを記述するSynthContext。
 
 
-