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