JavaTM 2 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。從 1.4 版本開始,已在 java.beans 套件中添加了支持所有 JavaBeansTM 長期存儲的功能。請參見 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 複製的描述
在指定位置上繪製圖標。圖標實作可以使用 Component 參數來獲得對繪製有用的屬性,例如前景色和背景色。

指定者:
介面 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 2 Platform
Standard Ed. 6

提交錯誤或意見

版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only