JavaTM Platform
Standard Ed. 6

javax.swing.plaf.metal
クラス MetalIconFactory.TreeControlIcon

java.lang.Object
  上位を拡張 javax.swing.plaf.metal.MetalIconFactory.TreeControlIcon
すべての実装されたインタフェース:
Serializable, Icon
含まれているクラス:
MetalIconFactory

public static class MetalIconFactory.TreeControlIcon
extends Object
implements Icon, Serializable

警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。JDK Version 1.4 以降、すべての JavaBeans の長期間の運用サポートは、java.beans パッケージに追加されています。詳細は、XMLEncoder を参照してください。


フィールドの概要
protected  boolean isLight
           
 
コンストラクタの概要
MetalIconFactory.TreeControlIcon(boolean isCollapsed)
           
 
メソッドの概要
 int getIconHeight()
          アイコンの高さを返します。
 int getIconWidth()
          アイコンの幅を返します。
 void paintIcon(Component c, Graphics g, int x, int y)
          指定された位置にアイコンを描画します。
 void paintMe(Component c, Graphics g, int x, int y)
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

isLight

protected boolean isLight
コンストラクタの詳細

MetalIconFactory.TreeControlIcon

public MetalIconFactory.TreeControlIcon(boolean isCollapsed)
メソッドの詳細

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
インタフェース Icon の記述:
指定された位置にアイコンを描画します。Icon の実装はコンポーネント引数を使って、フォアグラウンドカラーまたはバックグラウンドカラーなどを描画するのに使用するプロパティーを取得します。

定義:
インタフェース Icon 内の paintIcon

paintMe

public void paintMe(Component c,
                    Graphics g,
                    int x,
                    int y)

getIconWidth

public int getIconWidth()
インタフェース Icon の記述:
アイコンの幅を返します。

定義:
インタフェース Icon 内の getIconWidth
戻り値:
アイコンの固定の幅を指定する int 値

getIconHeight

public int getIconHeight()
インタフェース Icon の記述:
アイコンの高さを返します。

定義:
インタフェース Icon 内の getIconHeight
戻り値:
アイコンの固定の高さを指定する int 値

JavaTM Platform
Standard Ed. 6

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。