JavaTM 2 Platform
Standard Ed. 6

javax.swing.plaf.metal
類別 MetalCheckBoxIcon

java.lang.Object
  繼承者 javax.swing.plaf.metal.MetalCheckBoxIcon
所有已實作的介面:
Serializable, Icon, UIResource

public class MetalCheckBoxIcon
extends Object
implements Icon, UIResource, Serializable

OrganicCheckBoxUI 的 CheckboxIcon 實作

警告:此類別的序列化物件與以後的 Swing 版本不相容。當前序列化支持適用於短期存儲或運行相同 Swing 版本的應用程序之間的 RMI。從 1.4 版本開始,已在 java.beans 套件中添加了支持所有 JavaBeansTM 長期存儲的功能。請參見 XMLEncoder


建構子摘要
MetalCheckBoxIcon()
           
 
方法摘要
protected  void drawCheck(Component c, Graphics g, int x, int y)
           
protected  int getControlSize()
           
 int getIconHeight()
          返回圖標的高度。
 int getIconWidth()
          返回圖標的寬度。
 void paintIcon(Component c, Graphics g, int x, int y)
          在指定位置上繪製圖標。
 
從類別 java.lang.Object 繼承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

建構子詳細資訊

MetalCheckBoxIcon

public MetalCheckBoxIcon()
方法詳細資訊

getControlSize

protected int getControlSize()

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
從介面 Icon 複製的描述
在指定位置上繪製圖標。圖標實作可以使用 Component 參數來獲得對繪製有用的屬性,例如前景色和背景色。

指定者:
介面 Icon 中的 paintIcon

drawCheck

protected void drawCheck(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