|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
public interface TreeCellRenderer
ツリーノードを表示するオブジェクトの要件を定義します。カスタムアイコンを表示するツリーセルレンダリングの実装例は、「The Java Tutorial」の「How to Use Trees」を参照してください。
| メソッドの概要 | |
|---|---|
Component |
getTreeCellRendererComponent(JTree tree,
Object value,
boolean selected,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
現在のツリーセルの値を value に設定します。 |
| メソッドの詳細 |
|---|
Component getTreeCellRendererComponent(JTree tree,
Object value,
boolean selected,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
value に設定します。selected が true の場合は、セルは選択されているものとして描画されます。expanded が true であれば、ノードは現在展開されています。leaf が true であれば、ノードは葉を表します。hasFocus が true であれば、ノードに現在フォーカスがあります。tree が JTree の場合、レシーバは設定中です。レンダリングが値を描画するのに使う Component を返します。
Component
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。