Uses of Interface
javax.swing.Icon
-
Packages that use Icon 软件包 描述 javax.swing 提供一套“轻量级”(全Java语言)组件,尽可能地在所有平台上工作。javax.swing.border 提供用于绘制Swing组件周围特殊边框的类和接口。javax.swing.colorchooser 包含JColorChooser组件使用的类和接口。javax.swing.filechooser 包含JFileChooser组件使用的类和接口。javax.swing.plaf 提供一个接口和许多抽象类,Swing用来提供其可插拔的外观和感觉功能。javax.swing.plaf.basic 提供根据“基本”外观构建的用户界面对象。javax.swing.plaf.metal 提供根据Java外观构建的用户界面对象(一旦代号为 Metal ),这是默认的外观和感觉。javax.swing.plaf.nimbus 提供根据跨平台Nimbus外观构建的用户界面对象。javax.swing.plaf.synth 合成是一种可以让所有绘画委托的外观和感觉。javax.swing.text 提供处理可编辑和不可编辑文本组件的类和接口。javax.swing.text.html 提供类HTMLEditorKit和辅助类创建HTML文本编辑器。javax.swing.tree 提供处理javax.swing.JTree类和接口。 -
-
Uses of Icon in javax.swing
Classes in javax.swing that implement Icon Modifier and Type Class 描述 classImageIcon从图像绘制图标的图标界面的实现。Fields in javax.swing declared as Icon Modifier and Type Field 描述 protected IconJInternalFrame. frameIcon该内部框架左上角显示的图标。protected IconJOptionPane. icon窗格中使用的图标。Methods in javax.swing that return Icon Modifier and Type 方法 描述 IconAbstractButton. getDisabledIcon()返回按钮禁用时使用的图标。IconJLabel. getDisabledIcon()返回标签禁用时使用的图标。IconLookAndFeel. getDisabledIcon(JComponent component, Icon icon)返回一个禁用外观的Icon。IconJTabbedPane. getDisabledIconAt(int index)在index返回标签禁用图标。IconAbstractButton. getDisabledSelectedIcon()返回按钮在禁用和选择时使用的图标。IconLookAndFeel. getDisabledSelectedIcon(JComponent component, Icon icon)返回一个Icon用于还被选中的禁用组件。IconJInternalFrame. getFrameIcon()返回显示在该内部框架的标题栏中的图像(通常位于左上角)。IconAbstractButton. getIcon()返回默认图标。IconJFileChooser. getIcon(File f)返回此文件或文件类型的图标,具体取决于系统。IconJLabel. getIcon()返回标签显示的图形图像(字形,图标)。IconJOptionPane. getIcon()返回此窗格显示的图标。IconUIDefaults. getIcon(Object key)如果值key是Icon返回它,否则返回null。IconUIDefaults. getIcon(Object key, Locale l)如果值key对于给定Locale是Icon返回它,否则返回null。static IconUIManager. getIcon(Object key)从默认值返回Icon。static IconUIManager. getIcon(Object key, Locale l)从适用于给定语言环境的默认值返回一个Icon。IconJTabbedPane. getIconAt(int index)返回标签图标index。IconAbstractButton. getPressedIcon()返回按钮的按下图标。IconAbstractButton. getRolloverIcon()返回按钮的翻转图标。IconAbstractButton. getRolloverSelectedIcon()返回按钮的翻转选择图标。IconAbstractButton. getSelectedIcon()返回按钮的选定图标。IconTransferHandler. getVisualRepresentation(Transferable t)返回一个建立传输外观的对象。Methods in javax.swing with parameters of type Icon Modifier and Type 方法 描述 voidJTabbedPane. addTab(String title, Icon icon, Component component)添加一个由title和/或component表示的icon,其中一个可以是null。voidJTabbedPane. addTab(String title, Icon icon, Component component, String tip)增加了一个component和tip由a表示title和/或icon,其中任一个可以是null。static MatteBorderBorderFactory. createMatteBorder(int top, int left, int bottom, int right, Icon tileIcon)创建由指定图标的多个图块组成的无光泽边框。IconLookAndFeel. getDisabledIcon(JComponent component, Icon icon)返回Icon,具有禁用的外观。IconLookAndFeel. getDisabledSelectedIcon(JComponent component, Icon icon)返回一个Icon供选择的残疾组件使用。intJTabbedPane. indexOfTab(Icon icon)返回具有给定的icon的第一个选项卡索引,如果没有选项卡具有此图标,则返回-1。protected voidAbstractButton. init(String text, Icon icon)初始化AbstractButton。protected voidJMenuItem. init(String text, Icon icon)用指定的文本和图标初始化菜单项。voidJTextPane. insertIcon(Icon g)将图标插入到文档中作为当前所选内容的替代。voidJTabbedPane. insertTab(String title, Icon icon, Component component, String tip, int index)在给定的索引上插入给定组件的新选项卡,由给定的标题和/或图标表示,其中任一个可能是null。static StringSwingUtilities. layoutCompoundLabel(FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int textIconGap)计算并返回图标原点的位置,文本基线的原点位置以及复合标签字符串的可能剪切版本。static StringSwingUtilities. layoutCompoundLabel(JComponent c, FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int textIconGap)计算并返回图标原点的位置,文本基线的原点位置以及复合标签字符串的可能剪切版本。voidAbstractButton. setDisabledIcon(Icon disabledIcon)设置按钮的禁用图标。voidJLabel. setDisabledIcon(Icon disabledIcon)如果此JLabel为“禁用”(JLabel.setEnabled(false)),请设置要显示的图标。voidJTabbedPane. setDisabledIconAt(int index, Icon disabledIcon)将禁用图标设置为index至icon,可以是null。voidAbstractButton. setDisabledSelectedIcon(Icon disabledSelectedIcon)设置按钮的禁用选择图标。voidJInternalFrame. setFrameIcon(Icon icon)设置要显示在该内部框架的标题栏中的图像(通常位于左上角)。voidAbstractButton. setIcon(Icon defaultIcon)设置按钮的默认图标。voidJLabel. setIcon(Icon icon)定义该组件将显示的图标。voidJOptionPane. setIcon(Icon newIcon)设置要显示的图标。voidJTabbedPane. setIconAt(int index, Icon icon)将图标设置为index至icon,可以是null。voidAbstractButton. setPressedIcon(Icon pressedIcon)设置按钮的按下图标。voidAbstractButton. setRolloverIcon(Icon rolloverIcon)设置按钮的翻转图标。voidAbstractButton. setRolloverSelectedIcon(Icon rolloverSelectedIcon)设置按钮的滚动选择图标。voidAbstractButton. setSelectedIcon(Icon selectedIcon)设置按钮的选定图标。static intJOptionPane. showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon)启动具有指定图标的对话框,其中选择的数量由optionType参数确定。static ObjectJOptionPane. showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue)在阻止对话框中提示用户输入,可以指定初始选择,可能的选择和所有其他选项。static intJOptionPane. showInternalConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon)启动具有指定图标的内部对话面板,其中选择次数由optionType参数确定。static ObjectJOptionPane. showInternalInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue)在阻止内部对话框中提示输入用户,可以指定初始选择,可能的选择和所有其他选项。static voidJOptionPane. showInternalMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon)启动一个显示消息的内部对话框面板,指定所有参数。static intJOptionPane. showInternalOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue)启动具有指定图标的内部对话面板,其中初始选择由initialValue参数确定,选择次数由optionType参数确定。static voidJOptionPane. showMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon)显示一个显示消息的对话框,指定所有参数。static intJOptionPane. showOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue)启动一个带有指定图标的对话框,其初始选择由initialValue参数确定,选择次数由optionType参数决定。Constructors in javax.swing with parameters of type Icon Constructor 描述 AbstractAction(String name, Icon icon)创建一个Action具有指定的名称和小图标。JButton(String text, Icon icon)创建一个带有初始文本和图标的按钮。JButton(Icon icon)创建一个带有图标的按钮。JCheckBox(String text, Icon icon)使用指定的文本和图标创建最初未选择的复选框。JCheckBox(String text, Icon icon, boolean selected)创建一个带有文本和图标的复选框,并指定是否最初选择它。JCheckBox(Icon icon)创建一个带有图标的最初未选中的复选框。JCheckBox(Icon icon, boolean selected)创建一个带有图标的复选框,并指定是否最初选择它。JCheckBoxMenuItem(String text, Icon icon)使用指定的文本和图标创建最初未选择的复选框菜单项。JCheckBoxMenuItem(String text, Icon icon, boolean b)创建带有指定文本,图标和选择状态的复选框菜单项。JCheckBoxMenuItem(Icon icon)创建一个带有图标的最初未选中的复选框菜单项。JLabel(String text, Icon icon, int horizontalAlignment)创建具有指定文本,图像和水平对齐的JLabel实例。JLabel(Icon image)使用指定的图像创建一个JLabel实例。JLabel(Icon image, int horizontalAlignment)创建具有指定图像和水平对齐的JLabel实例。JMenuItem(String text, Icon icon)创建一个JMenuItem与指定的文本和图标。JMenuItem(Icon icon)创建一个JMenuItem与指定的图标。JOptionPane(Object message, int messageType, int optionType, Icon icon)创建一个JOptionPane的实例以显示具有指定消息类型,选项和图标的消息。JOptionPane(Object message, int messageType, int optionType, Icon icon, Object[] options)创建JOptionPane的实例以显示具有指定消息类型,图标和选项的消息。JOptionPane(Object message, int messageType, int optionType, Icon icon, Object[] options, Object initialValue)创建JOptionPane的实例以显示具有指定消息类型,图标和选项的消息,并指定最初选定的选项。JRadioButton(String text, Icon icon)创建具有指定文本和图像的单选按钮,最初未被选择。JRadioButton(String text, Icon icon, boolean selected)创建具有指定文本,图像和选择状态的单选按钮。JRadioButton(Icon icon)创建一个初始未选择的单选按钮与指定的图像,但没有文字。JRadioButton(Icon icon, boolean selected)创建具有指定图像和选择状态的单选按钮,但不包含文本。JRadioButtonMenuItem(String text, Icon icon)创建一个包含指定文本的单选按钮菜单项和Icon。JRadioButtonMenuItem(String text, Icon icon, boolean selected)创建具有指定文本,图像和选择状态的单选按钮菜单项。JRadioButtonMenuItem(Icon icon)创建一个带有图标的JRadioButtonMenuItem。JRadioButtonMenuItem(Icon icon, boolean selected)创建具有指定图像和选择状态但无文字的单选按钮菜单项。JToggleButton(String text, Icon icon)创建具有指定文本和图像的切换按钮,最初未被选择。JToggleButton(String text, Icon icon, boolean selected)创建具有指定文本,图像和选择状态的切换按钮。JToggleButton(Icon icon)创建一个最初未选择的切换按钮与指定的图像,但没有文本。JToggleButton(Icon icon, boolean selected)创建具有指定图像和选择状态但不包含文本的切换按钮。 -
Uses of Icon in javax.swing.border
Fields in javax.swing.border declared as Icon Modifier and Type Field 描述 protected IconMatteBorder. tileIcon用于平铺边框的图标。Methods in javax.swing.border that return Icon Modifier and Type 方法 描述 IconMatteBorder. getTileIcon()返回用于平铺边框的图标,如果使用纯色,则返回null。Constructors in javax.swing.border with parameters of type Icon Constructor 描述 MatteBorder(int top, int left, int bottom, int right, Icon tileIcon)使用指定的插图和图块图标创建无光泽边框。MatteBorder(Insets borderInsets, Icon tileIcon)使用指定的插图和图块图标创建无光泽边框。MatteBorder(Icon tileIcon)使用指定的图块图标创建无光泽边框。 -
Uses of Icon in javax.swing.colorchooser
Methods in javax.swing.colorchooser that return Icon Modifier and Type 方法 描述 abstract IconAbstractColorChooserPanel. getLargeDisplayIcon()返回面板的大显示图标。abstract IconAbstractColorChooserPanel. getSmallDisplayIcon()返回面板的小显示图标。 -
Uses of Icon in javax.swing.filechooser
Methods in javax.swing.filechooser that return Icon Modifier and Type 方法 描述 IconFileView. getIcon(File f)在JFileChooser中代表此文件的JFileChooser。IconFileSystemView. getSystemIcon(File f)文件,目录或文件夹的图标,将显示在系统文件浏览器中。 -
Uses of Icon in javax.swing.plaf
Classes in javax.swing.plaf that implement Icon Modifier and Type Class 描述 classIconUIResource一个实现UIResource的图标包装类。Constructors in javax.swing.plaf with parameters of type Icon Constructor 描述 IconUIResource(Icon delegate)创建一个UIResource图标对象,该对象包装现有的图标实例。MatteBorderUIResource(int top, int left, int bottom, int right, Icon tileIcon)构造一个MatteBorderUIResource。MatteBorderUIResource(Icon tileIcon)构造一个MatteBorderUIResource。 -
Uses of Icon in javax.swing.plaf.basic
Fields in javax.swing.plaf.basic declared as Icon Modifier and Type Field 描述 protected IconBasicMenuItemUI. arrowIcon箭头图标。protected IconBasicMenuItemUI. checkIcon检查图标。protected IconBasicInternalFrameTitlePane. closeIcon关闭图标。protected IconBasicTreeUI. collapsedIcon折叠图标。protected IconBasicFileChooserUI. computerIcon电脑图标protected IconBasicFileChooserUI. detailsViewIcon详细视图图标protected IconBasicFileChooserUI. directoryIcon目录图标protected IconBasicTreeUI. expandedIcon扩展图标。protected IconBasicFileChooserUI. fileIcon文件图标protected IconBasicFileChooserUI. floppyDriveIcon软盘驱动器图标protected IconBasicFileChooserUI. hardDriveIcon硬盘图标protected IconBasicFileChooserUI. homeFolderIcon主文件夹图标protected IconBasicRadioButtonUI. icon图标。protected IconBasicInternalFrameTitlePane. iconIcon图标图标。protected IconBasicFileChooserUI. listViewIcon列表视图图标protected IconBasicInternalFrameTitlePane. maxIcon最大化图标。protected IconBasicInternalFrameTitlePane. minIcon最小化图标。protected IconBasicFileChooserUI. newFolderIcon新文件夹图标protected IconBasicFileChooserUI. upFolderIcon向上文件夹图标protected IconBasicFileChooserUI. viewMenuIcon查看菜单图标Fields in javax.swing.plaf.basic with type parameters of type Icon Modifier and Type Field 描述 protected Hashtable<File,Icon>BasicFileChooserUI.BasicFileView. iconCache图标缓存Methods in javax.swing.plaf.basic that return Icon Modifier and Type 方法 描述 static IconBasicIconFactory. createEmptyFrameIcon()返回空框图标。IconBasicFileChooserUI.BasicFileView. getCachedIcon(File f)返回文件的缓存图标。static IconBasicIconFactory. getCheckBoxIcon()返回复选框图标。static IconBasicIconFactory. getCheckBoxMenuItemIcon()返回一个复选框菜单项图标。IconBasicTreeUI. getCollapsedIcon()返回折叠图标。IconBasicRadioButtonUI. getDefaultIcon()返回默认图标。IconBasicTreeUI. getExpandedIcon()返回展开的图标。IconBasicFileChooserUI.BasicFileView. getIcon(File f)在JFileChooser中代表此文件的JFileChooser。protected IconBasicOptionPaneUI. getIcon()从JOptionPane返回图标,接收者提供外观,或从getDefaultIcon返回的默认图标。protected IconBasicTabbedPaneUI. getIconForTab(int tabIndex)返回标签的图标。protected IconBasicOptionPaneUI. getIconForType(int messageType)返回用于传入类型的图标。static IconBasicIconFactory. getMenuArrowIcon()返回菜单箭头图标。static IconBasicIconFactory. getMenuItemArrowIcon()返回菜单项箭头图标。static IconBasicIconFactory. getMenuItemCheckIcon()返回菜单项检查图标。static IconBasicIconFactory. getRadioButtonIcon()返回单选按钮图标。static IconBasicIconFactory. getRadioButtonMenuItemIcon()返回单选按钮菜单项图标。Methods in javax.swing.plaf.basic with parameters of type Icon Modifier and Type 方法 描述 voidBasicFileChooserUI.BasicFileView. cacheIcon(File f, Icon i)缓存文件的图标。protected voidBasicTreeUI. drawCentered(Component c, Graphics graphics, Icon icon, int x, int y)以(x,y)为中心绘制icon。protected DimensionBasicMenuItemUI. getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap)返回菜单项的首选大小。protected StringBasicLabelUI. layoutCL(JLabel label, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR)转发给SwingUtilities.layoutCompoundLabel()的调用。protected voidBasicTabbedPaneUI. layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected)Laysout一个标签。protected voidBasicTabbedPaneUI. paintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected)画一个图标。protected voidBasicMenuItemUI. paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap)画一个菜单项。voidBasicTreeUI. setCollapsedIcon(Icon newG)设置折叠图标。voidBasicTreeUI. setExpandedIcon(Icon newG)设置展开的图标。 -
Uses of Icon in javax.swing.plaf.metal
Classes in javax.swing.plaf.metal that implement Icon Modifier and Type Class 描述 classMetalCheckBoxIconOrganicCheckBoxUI的CheckboxIcon实现classMetalComboBoxIcon此实用程序类绘制指示MetalComboBox的水平条static classMetalIconFactory.FileIcon16警告:此类的序列化对象与将来的Swing版本不兼容。static classMetalIconFactory.FolderIcon16警告:此类的序列化对象与将来的Swing版本不兼容。static classMetalIconFactory.PaletteCloseIcon定义调色板关闭的图标static classMetalIconFactory.TreeControlIcon警告:此类的序列化对象与将来的Swing版本不兼容。static classMetalIconFactory.TreeFolderIcon警告:此类的序列化对象与将来的Swing版本不兼容。static classMetalIconFactory.TreeLeafIcon该类代表树叶图标。Fields in javax.swing.plaf.metal declared as Icon Modifier and Type Field 描述 protected IconMetalComboBoxButton. comboIcon图标。protected static IconMetalSliderUI. horizThumbIcon默认水平拇指Icon。protected IconMetalInternalFrameTitlePane. paletteCloseIcon调色板关闭图标。protected static IconMetalSliderUI. vertThumbIcon默认垂直拇指Icon。Methods in javax.swing.plaf.metal that return Icon Modifier and Type 方法 描述 static IconMetalIconFactory. getCheckBoxIcon()返回一个复选框图标。static IconMetalIconFactory. getCheckBoxMenuItemIcon()返回JCheckBoxMenuItem要使用的JCheckBoxMenuItem。IconMetalComboBoxButton. getComboIcon()返回JComboBox的图标。IconMetalLookAndFeel. getDisabledIcon(JComponent component, Icon icon)返回一个禁用外观的Icon。IconMetalLookAndFeel. getDisabledSelectedIcon(JComponent component, Icon icon)返回一个Icon用于还被选中的禁用组件。static IconMetalIconFactory. getFileChooserDetailViewIcon()返回FileChooserDetailViewIcon的实例。static IconMetalIconFactory. getFileChooserHomeFolderIcon()返回FileChooserHomeFolderIcon的实例。static IconMetalIconFactory. getFileChooserListViewIcon()返回FileChooserListViewIcon的实例。static IconMetalIconFactory. getFileChooserNewFolderIcon()返回FileChooserNewFolderIcon的实例。static IconMetalIconFactory. getFileChooserUpFolderIcon()返回FileChooserUpFolderIcon的实例。static IconMetalIconFactory. getHorizontalSliderThumbIcon()返回水平滑块使用的缩略图标。static IconMetalIconFactory. getInternalFrameAltMaximizeIcon(int size)构造一个新的实例InternalFrameAltMaximizeIcon。static IconMetalIconFactory. getInternalFrameCloseIcon(int size)构造一个新的实例InternalFrameCloseIcon。static IconMetalIconFactory. getInternalFrameDefaultMenuIcon()返回InternalFrameDefaultMenuIcon的实例。static IconMetalIconFactory. getInternalFrameMaximizeIcon(int size)构造一个新的实例InternalFrameMaximizeIcon。static IconMetalIconFactory. getInternalFrameMinimizeIcon(int size)构造一个新的实例InternalFrameMinimizeIcon。static IconMetalIconFactory. getMenuArrowIcon()返回JMenu要使用的JMenu。static IconMetalIconFactory. getMenuItemArrowIcon()返回JMenuItem要使用的JMenuItem。static IconMetalIconFactory. getMenuItemCheckIcon()返回JCheckBoxMenuItem要使用的JCheckBoxMenuItem。static IconMetalIconFactory. getRadioButtonIcon()返回RadioButtonIcon的实例。static IconMetalIconFactory. getRadioButtonMenuItemIcon()返回JRadioButtonMenuItem要使用的JRadioButtonMenuItem。static IconMetalIconFactory. getTreeComputerIcon()返回TreeComputerIcon的实例。static IconMetalIconFactory. getTreeControlIcon(boolean isCollapsed)构造一个新的实例TreeControlIcon。static IconMetalIconFactory. getTreeFloppyDriveIcon()返回TreeFloppyDriveIcon的实例。static IconMetalIconFactory. getTreeFolderIcon()构造一个新的实例TreeFolderIcon。static IconMetalIconFactory. getTreeHardDriveIcon()返回TreeHardDriveIcon的实例。static IconMetalIconFactory. getTreeLeafIcon()构造一个新的实例TreeLeafIcon。static IconMetalIconFactory. getVerticalSliderThumbIcon()返回一个用于垂直滑块的缩略图标。Methods in javax.swing.plaf.metal with parameters of type Icon Modifier and Type 方法 描述 IconMetalLookAndFeel. getDisabledIcon(JComponent component, Icon icon)返回一个禁用外观的Icon。IconMetalLookAndFeel. getDisabledSelectedIcon(JComponent component, Icon icon)返回一个Icon供被还被选中的禁用组件使用。voidMetalComboBoxButton. setComboIcon(Icon i)设置JComboBox的图标。Constructors in javax.swing.plaf.metal with parameters of type Icon Constructor 描述 MetalComboBoxButton(JComboBox<Object> cb, Icon i, boolean onlyIcon, CellRendererPane pane, JList<Object> list)构造一个新的实例MetalComboBoxButton。MetalComboBoxButton(JComboBox<Object> cb, Icon i, CellRendererPane pane, JList<Object> list)构造一个新的实例MetalComboBoxButton。 -
Uses of Icon in javax.swing.plaf.nimbus
Methods in javax.swing.plaf.nimbus that return Icon Modifier and Type 方法 描述 IconNimbusLookAndFeel. getDisabledIcon(JComponent component, Icon icon)Methods in javax.swing.plaf.nimbus with parameters of type Icon Modifier and Type 方法 描述 IconNimbusLookAndFeel. getDisabledIcon(JComponent component, Icon icon) -
Uses of Icon in javax.swing.plaf.synth
Subinterfaces of Icon in javax.swing.plaf.synth Modifier and Type 接口 描述 interfaceSynthIcon一个图标通过一个SynthContext。Methods in javax.swing.plaf.synth that return Icon Modifier and Type 方法 描述 protected IconSynthButtonUI. getDefaultIcon(AbstractButton b)返回默认图标。IconSynthTreeUI. getExpandedIcon()返回展开的图标。protected IconSynthButtonUI. getIcon(AbstractButton b)返回用于绘制按钮的图标。IconSynthStyle. getIcon(SynthContext context, Object key)方便的方法来获取一个特定的样式属性,其值是一个Icon。protected IconSynthButtonUI. getSizingIcon(AbstractButton b)返回用于计算首选/最小/最大大小的图标。protected IconSynthRadioButtonUI. getSizingIcon(AbstractButton b)返回用于计算首选/最小/最大大小的图标。Methods in javax.swing.plaf.synth with parameters of type Icon Modifier and Type 方法 描述 protected voidSynthTreeUI. drawCentered(Component c, Graphics graphics, Icon icon, int x, int y)绘制以(x,y)为中心的icon。static intSynthGraphicsUtils. getIconHeight(Icon icon, SynthContext context)返回图标的高度。static intSynthGraphicsUtils. getIconWidth(Icon icon, SynthContext context)返回图标的宽度。DimensionSynthGraphicsUtils. getMaximumSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)返回正确呈现图标和文本所需的最大大小。DimensionSynthGraphicsUtils. getMinimumSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)返回正确呈现图标和文本所需的最小尺寸。protected DimensionSynthMenuItemUI. getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap)返回菜单项的首选大小。protected DimensionSynthMenuUI. getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap)返回菜单项的首选大小。DimensionSynthGraphicsUtils. getPreferredSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)返回正确呈现图标和文字所需的首选大小。StringSynthGraphicsUtils. layoutText(SynthContext ss, FontMetrics fm, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int iconTextGap)通过引用将文本和图标返回,放置图标和文本的位置。static voidSynthGraphicsUtils. paintIcon(Icon icon, SynthContext context, Graphics g, int x, int y, int width, int height)画图标。voidSynthGraphicsUtils. paintText(SynthContext ss, Graphics g, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex, int textOffset)画一个图标和文字。 -
Uses of Icon in javax.swing.text
Methods in javax.swing.text that return Icon Modifier and Type 方法 描述 static IconStyleConstants. getIcon(AttributeSet a)从属性列表中获取图标设置。Methods in javax.swing.text with parameters of type Icon Modifier and Type 方法 描述 static voidStyleConstants. setIcon(MutableAttributeSet a, Icon c)设置图标属性。 -
Uses of Icon in javax.swing.text.html
Methods in javax.swing.text.html that return Icon Modifier and Type 方法 描述 IconImageView. getLoadingImageIcon()在加载图像的过程中返回要使用的图标。IconImageView. getNoImageIcon()如果找不到图像,则返回要使用的图标。 -
Uses of Icon in javax.swing.tree
Fields in javax.swing.tree declared as Icon Modifier and Type Field 描述 protected IconDefaultTreeCellRenderer. closedIcon用于显示未展开的非叶节点的图标。protected IconDefaultTreeCellEditor. editingIcon编辑时使用的图标。protected IconDefaultTreeCellRenderer. leafIcon用于显示叶节点的图标。protected IconDefaultTreeCellRenderer. openIcon用于显示展开的非叶节点的图标。Methods in javax.swing.tree that return Icon Modifier and Type 方法 描述 IconDefaultTreeCellRenderer. getClosedIcon()返回用于表示未展开的非叶节点的图标。IconDefaultTreeCellRenderer. getDefaultClosedIcon()返回用于表示未展开的非叶节点的当前laf的默认图标。IconDefaultTreeCellRenderer. getDefaultLeafIcon()返回用于表示叶节点的当前laf的默认图标。IconDefaultTreeCellRenderer. getDefaultOpenIcon()返回用于表示展开的非叶节点的当前laf的默认图标。IconDefaultTreeCellRenderer. getLeafIcon()返回用于表示叶节点的图标。IconDefaultTreeCellRenderer. getOpenIcon()返回用于表示展开的非叶节点的图标。Methods in javax.swing.tree with parameters of type Icon Modifier and Type 方法 描述 voidDefaultTreeCellRenderer. setClosedIcon(Icon newIcon)设置用于表示未展开的非叶节点的图标。voidDefaultTreeCellRenderer. setLeafIcon(Icon newIcon)设置用于表示叶节点的图标。voidDefaultTreeCellRenderer. setOpenIcon(Icon newIcon)设置用于表示展开的非叶节点的图标。
-