JavaTM 2 Platform
Standard Ed. 6

javax.swing.plaf.metal
类 MetalIconFactory

java.lang.Object
  继承者 javax.swing.plaf.metal.MetalIconFactory
所有已实现的接口:
Serializable

public class MetalIconFactory
extends Object
implements Serializable

为 JavaTM 外观 (Metal) 提供 Icon 的工厂对象。可以通过默认机制,在 Metal 中扩展使用这些图标。虽然其他外观常常使用 GIF 作为图标,但用代码创建图标便于将它们转换成其他主题。

此类中的每个方法都会返回一个 Iconnull,其中 null 意味着没有默认图标。

警告:此类的已序列化对象与以后的 Swing 版本不兼容。当前序列化支持适用于短期存储或运行相同 Swing 版本的应用程序之间的 RMI。从 1.4 版本开始,已在 java.beans 包中添加了支持所有 JavaBeansTM 长期存储的功能。请参见 XMLEncoder


嵌套类摘要
static class MetalIconFactory.FileIcon16
           警告:此类的已序列化对象与以后的 Swing 版本不兼容。
static class MetalIconFactory.FolderIcon16
           警告:此类的已序列化对象与以后的 Swing 版本不兼容。
static class MetalIconFactory.PaletteCloseIcon
          定义一个用于 Palette 关闭的图标
static class MetalIconFactory.TreeControlIcon
           警告:此类的已序列化对象与以后的 Swing 版本不兼容。
static class MetalIconFactory.TreeFolderIcon
           警告:此类的已序列化对象与以后的 Swing 版本不兼容。
static class MetalIconFactory.TreeLeafIcon
           
 
字段摘要
static boolean DARK
           
static boolean LIGHT
           
 
构造方法摘要
MetalIconFactory()
           
 
方法摘要
static Icon getCheckBoxIcon()
          返回一个复选框图标。
static Icon getCheckBoxMenuItemIcon()
           
static Icon getFileChooserDetailViewIcon()
           
static Icon getFileChooserHomeFolderIcon()
           
static Icon getFileChooserListViewIcon()
           
static Icon getFileChooserNewFolderIcon()
           
static Icon getFileChooserUpFolderIcon()
           
static Icon getHorizontalSliderThumbIcon()
           
static Icon getInternalFrameAltMaximizeIcon(int size)
           
static Icon getInternalFrameCloseIcon(int size)
           
static Icon getInternalFrameDefaultMenuIcon()
           
static Icon getInternalFrameMaximizeIcon(int size)
           
static Icon getInternalFrameMinimizeIcon(int size)
           
static Icon getMenuArrowIcon()
           
static Icon getMenuItemArrowIcon()
           
static Icon getMenuItemCheckIcon()
          返回一个将由 JCheckBoxMenuItem 使用的图标。
static Icon getRadioButtonIcon()
           
static Icon getRadioButtonMenuItemIcon()
           
static Icon getTreeComputerIcon()
           
static Icon getTreeControlIcon(boolean isCollapsed)
           
static Icon getTreeFloppyDriveIcon()
           
static Icon getTreeFolderIcon()
           
static Icon getTreeHardDriveIcon()
           
static Icon getTreeLeafIcon()
           
static Icon getVerticalSliderThumbIcon()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

DARK

public static final boolean DARK
另请参见:
常量字段值

LIGHT

public static final boolean LIGHT
另请参见:
常量字段值
构造方法详细信息

MetalIconFactory

public MetalIconFactory()
方法详细信息

getFileChooserDetailViewIcon

public static Icon getFileChooserDetailViewIcon()

getFileChooserHomeFolderIcon

public static Icon getFileChooserHomeFolderIcon()

getFileChooserListViewIcon

public static Icon getFileChooserListViewIcon()

getFileChooserNewFolderIcon

public static Icon getFileChooserNewFolderIcon()

getFileChooserUpFolderIcon

public static Icon getFileChooserUpFolderIcon()

getInternalFrameAltMaximizeIcon

public static Icon getInternalFrameAltMaximizeIcon(int size)

getInternalFrameCloseIcon

public static Icon getInternalFrameCloseIcon(int size)

getInternalFrameDefaultMenuIcon

public static Icon getInternalFrameDefaultMenuIcon()

getInternalFrameMaximizeIcon

public static Icon getInternalFrameMaximizeIcon(int size)

getInternalFrameMinimizeIcon

public static Icon getInternalFrameMinimizeIcon(int size)

getRadioButtonIcon

public static Icon getRadioButtonIcon()

getCheckBoxIcon

public static Icon getCheckBoxIcon()
返回一个复选框图标。

从以下版本开始:
1.3

getTreeComputerIcon

public static Icon getTreeComputerIcon()

getTreeFloppyDriveIcon

public static Icon getTreeFloppyDriveIcon()

getTreeFolderIcon

public static Icon getTreeFolderIcon()

getTreeHardDriveIcon

public static Icon getTreeHardDriveIcon()

getTreeLeafIcon

public static Icon getTreeLeafIcon()

getTreeControlIcon

public static Icon getTreeControlIcon(boolean isCollapsed)

getMenuArrowIcon

public static Icon getMenuArrowIcon()

getMenuItemCheckIcon

public static Icon getMenuItemCheckIcon()
返回一个将由 JCheckBoxMenuItem 使用的图标。

返回:
用于复选框菜单项的默认图标,如果没有默认图标,则返回 null

getMenuItemArrowIcon

public static Icon getMenuItemArrowIcon()

getCheckBoxMenuItemIcon

public static Icon getCheckBoxMenuItemIcon()

getRadioButtonMenuItemIcon

public static Icon getRadioButtonMenuItemIcon()

getHorizontalSliderThumbIcon

public static Icon getHorizontalSliderThumbIcon()

getVerticalSliderThumbIcon

public static Icon getVerticalSliderThumbIcon()

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

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