所有类


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 classMetalIconFactory.FileIcon16
           警告:此类的已序列化对象与以后的 Swing 版本不兼容。
static classMetalIconFactory.FolderIcon16
           警告:此类的已序列化对象与以后的 Swing 版本不兼容。
static classMetalIconFactory.PaletteCloseIcon
          定义一个用于 Palette 关闭的图标
static classMetalIconFactory.TreeControlIcon
           警告:此类的已序列化对象与以后的 Swing 版本不兼容。
static classMetalIconFactory.TreeFolderIcon
           警告:此类的已序列化对象与以后的 Swing 版本不兼容。
static classMetalIconFactory.TreeLeafIcon
           
 
字段摘要
static booleanDARK
           
static booleanLIGHT
           
 
构造方法摘要
MetalIconFactory()
           
 
方法摘要
static IcongetCheckBoxIcon()
          返回一个复选框图标。
static IcongetCheckBoxMenuItemIcon()
           
static IcongetFileChooserDetailViewIcon()
           
static IcongetFileChooserHomeFolderIcon()
           
static IcongetFileChooserListViewIcon()
           
static IcongetFileChooserNewFolderIcon()
           
static IcongetFileChooserUpFolderIcon()
           
static IcongetHorizontalSliderThumbIcon()
           
static IcongetInternalFrameAltMaximizeIcon(int size)
           
static IcongetInternalFrameCloseIcon(int size)
           
static IcongetInternalFrameDefaultMenuIcon()
           
static IcongetInternalFrameMaximizeIcon(int size)
           
static IcongetInternalFrameMinimizeIcon(int size)
           
static IcongetMenuArrowIcon()
           
static IcongetMenuItemArrowIcon()
           
static IcongetMenuItemCheckIcon()
          返回一个将由 JCheckBoxMenuItem 使用的图标。
static IcongetRadioButtonIcon()
           
static IcongetRadioButtonMenuItemIcon()
           
static IcongetTreeComputerIcon()
           
static IcongetTreeControlIcon(boolean isCollapsed)
           
static IcongetTreeFloppyDriveIcon()
           
static IcongetTreeFolderIcon()
           
static IcongetTreeHardDriveIcon()
           
static IcongetTreeLeafIcon()
           
static IcongetVerticalSliderThumbIcon()
           
 
从类 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)