|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.ListUI
public abstract class ListUI
JList のプラグイン可能な Look & Feel の委譲です。このインタフェースは、JList コンポーネントがマウス座標などの位置をセルにマッピングするメソッドや、セルのインデックスからその境界にマッピングするメソッドを追加します。
| コンストラクタの概要 | |
|---|---|
ListUI()
|
|
| メソッドの概要 | |
|---|---|
abstract Rectangle |
getCellBounds(JList list,
int index1,
int index2)
指定された項目の JList 座標における境界を返します。 |
abstract Point |
indexToLocation(JList list,
int index)
指定された項目の JList 座標における原点を返します。 |
abstract int |
locationToIndex(JList list,
Point location)
JList の座標上の点をその位置にあるセルのインデックスに変換します。 |
| クラス javax.swing.plaf.ComponentUI から継承されたメソッド |
|---|
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public ListUI()
| メソッドの詳細 |
|---|
public abstract int locationToIndex(JList list,
Point location)
JList の座標上の点をその位置にあるセルのインデックスに変換します。セルが実際にその位置を含むかどうかを判定するには、このメソッドと getCellBounds を組み合わせて使用します。モデルが空の場合は、-1 を返します。
location - セルの JList 上の相対座標
public abstract Point indexToLocation(JList list,
int index)
index - JList セルのインデックス
public abstract Rectangle getCellBounds(JList list,
int index1,
int index2)
index - JList セルのインデックス
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。