软件包 | 描述 |
---|---|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
javax.swing.border |
提供用于绘图的类和接口,以绘制一个摆动组件的专门边框。
|
javax.swing.colorchooser |
包含由
JColorChooser 组件使用的类和接口。
|
javax.swing.filechooser |
包含由
JFileChooser 组件使用的类和接口。
|
javax.swing.plaf |
提供一个接口和抽象类的使用许多摆动为可插拔的外观和感觉的能力。
|
javax.swing.plaf.basic |
根据基本的外观和感觉提供内置的用户界面对象。
|
javax.swing.plaf.metal |
提供用户界面对象建立根据java的外观和感觉(一次代号为金属),它是默认的外观和感觉。
|
javax.swing.plaf.nimbus |
提供用户界面对象建立跨平台的灵气的外观和感觉。
|
javax.swing.plaf.synth |
它是一个可更换皮肤的外观和感觉的绘画是授。
|
javax.swing.text |
提供类和接口处理编辑和不可编辑的文本组件。
|
javax.swing.text.html |
提供类
HTMLEditorKit 和创建HTML文本编辑器支持类。
|
javax.swing.tree |
处理
javax.swing.JTree 提供类和接口。
|
Modifier and Type | Class and Description |
---|---|
class |
ImageIcon
从图像绘制图标的图标界面的实现。
|
Modifier and Type | Field and Description |
---|---|
protected Icon |
JInternalFrame.frameIcon
这个内部框架的左上角显示的图标。
|
protected Icon |
JOptionPane.icon
窗格中使用的图标。
|
Modifier and Type | Method and Description |
---|---|
Icon |
JLabel.getDisabledIcon()
返回标签被禁用时使用的图标。
|
Icon |
AbstractButton.getDisabledIcon()
返回按钮时禁用按钮所使用的图标。
|
Icon |
LookAndFeel.getDisabledIcon(JComponent component, Icon icon)
返回一个残疾的
Icon 外观。
|
Icon |
JTabbedPane.getDisabledIconAt(int index)
返回
index 选项卡禁用图标。
|
Icon |
AbstractButton.getDisabledSelectedIcon()
返回按钮时,它的禁用和选定的图标。
|
Icon |
LookAndFeel.getDisabledSelectedIcon(JComponent component, Icon icon)
返回一个
Icon 供残疾人使用的组件,并选择。
|
Icon |
JInternalFrame.getFrameIcon()
返回显示在这个内部框架的标题栏中的图像(通常在左上角)。
|
Icon |
JOptionPane.getIcon()
返回此窗格显示的图标。
|
Icon |
JLabel.getIcon()
返回标签显示的图形图像(标志符号)。
|
Icon |
AbstractButton.getIcon()
返回默认图标。
|
Icon |
JFileChooser.getIcon(File f)
返回此文件或文件类型的图标,取决于系统。
|
Icon |
UIDefaults.getIcon(Object key)
如果
key 值是一个
Icon 返回,否则返回
null 。
|
static Icon |
UIManager.getIcon(Object key)
返回默认的
Icon 。
|
Icon |
UIDefaults.getIcon(Object key, Locale l)
如果
key 对于给定的
Locale 值是一个
Icon 返回,否则返回
null 。
|
static Icon |
UIManager.getIcon(Object key, Locale l)
返回默认值,对于给定的区域是适当的
Icon 。
|
Icon |
JTabbedPane.getIconAt(int index)
返回
index 标签图标。
|
Icon |
AbstractButton.getPressedIcon()
返回按钮的按下图标。
|
Icon |
AbstractButton.getRolloverIcon()
返回按钮的翻转图标。
|
Icon |
AbstractButton.getRolloverSelectedIcon()
返回按钮的翻转选择图标。
|
Icon |
AbstractButton.getSelectedIcon()
返回按钮的选定图标。
|
Icon |
TransferHandler.getVisualRepresentation(Transferable t)
返回一个建立传输外观的对象。
|
Modifier and Type | Method and Description |
---|---|
void |
JTabbedPane.addTab(String title, Icon icon, Component component)
增加了一个
component 由
title 和/或
icon 表示,也可
null 。
|
void |
JTabbedPane.addTab(String title, Icon icon, Component component, String tip)
增加了一个
component 和
tip 由
title 和/或
icon 表示,也可
null 。
|
static MatteBorder |
BorderFactory.createMatteBorder(int top, int left, int bottom, int right, Icon tileIcon)
创建一个磨砂外观边框,由一个指定的图标的多个瓷砖组成。
|
Icon |
LookAndFeel.getDisabledIcon(JComponent component, Icon icon)
返回一个残疾的
Icon 外观。
|
Icon |
LookAndFeel.getDisabledSelectedIcon(JComponent component, Icon icon)
返回一个
Icon 供残疾人使用的组件,并选择。
|
int |
JTabbedPane.indexOfTab(Icon icon)
返回第一个选项卡索引与一个给定的
icon ,或1如果没有标签的图标。
|
protected void |
JMenuItem.init(String text, Icon icon)
用指定的文本和图标初始化菜单项。
|
protected void |
AbstractButton.init(String text, Icon icon) |
void |
JTextPane.insertIcon(Icon g)
将一个图标插入到文档中,作为当前选定内容的替换。
|
void |
JTabbedPane.insertTab(String title, Icon icon, Component component, String tip, int index)
插入一个新的标签,对于给定的组件,在给定的指标,由给定的标题和/或图标,均可
null 。
|
static String |
SwingUtilities.layoutCompoundLabel(FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int textIconGap)
计算和返回图标原点的位置,文本基线的原点位置,以及复合标签字符串的可能裁剪的版本。
|
static String |
SwingUtilities.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)
计算和返回图标原点的位置,文本基线的原点位置,以及复合标签字符串的可能裁剪的版本。
|
void |
JLabel.setDisabledIcon(Icon disabledIcon)
设置图标显示,如果这个方法是“残疾人”(JLabel。setenabled(假))。
|
void |
AbstractButton.setDisabledIcon(Icon disabledIcon)
设置按钮的禁用图标。
|
void |
JTabbedPane.setDisabledIconAt(int index, Icon disabledIcon)
套在
index 到
icon 可
null 残疾人图标。
|
void |
AbstractButton.setDisabledSelectedIcon(Icon disabledSelectedIcon)
设置按钮的禁用选择图标。
|
void |
JInternalFrame.setFrameIcon(Icon icon)
设置要在内部框架的标题栏显示的图像(通常在左上角)。
|
void |
JOptionPane.setIcon(Icon newIcon)
设置图标显示。
|
void |
JLabel.setIcon(Icon icon)
定义此组件将显示的图标。
|
void |
AbstractButton.setIcon(Icon defaultIcon)
设置按钮的默认图标。
|
void |
JTabbedPane.setIconAt(int index, Icon icon)
套在
index 到
icon 可
null 图标。
|
void |
AbstractButton.setPressedIcon(Icon pressedIcon)
设置按钮的按下图标。
|
void |
AbstractButton.setRolloverIcon(Icon rolloverIcon)
设置按钮的翻转图标。
|
void |
AbstractButton.setRolloverSelectedIcon(Icon rolloverSelectedIcon)
设置按钮的翻转选择图标。
|
void |
AbstractButton.setSelectedIcon(Icon selectedIcon)
设置按钮的选定图标。
|
static int |
JOptionPane.showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon)
提出了一种具有指定图标的对话框,这里选择的数量是由
optionType 参数确定。
|
static Object |
JOptionPane.showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue)
提示用户在一个阻塞对话框中输入初始选择,可能的选择,和所有其他选项可以指定。
|
static int |
JOptionPane.showInternalConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon)
提出了用指定的图标内部对话面板,在选择的数量是由
optionType 参数确定。
|
static Object |
JOptionPane.showInternalInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue)
提示用户在一个阻塞的内部对话框中输入的输入,在初始选择,可能的选择,和所有其他选项可以指定。
|
static void |
JOptionPane.showInternalMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon)
调出一个显示消息的内部对话框,指定所有参数。
|
static int |
JOptionPane.showInternalOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue)
提出了用指定的图标内部对话面板,在最初的选择是由
initialValue 参数和选择的数量决定的
optionType 参数确定。
|
static void |
JOptionPane.showMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon)
显示一个对话框,显示一个消息,指定所有参数。
|
static int |
JOptionPane.showOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue)
提出了一种用指定的图标对话框,在最初的选择是由
initialValue 参数和选择的数量决定的
optionType 参数确定。
|
Constructor and Description |
---|
AbstractAction(String name, Icon icon)
创建具有指定名称和小图标的
Action 。
|
JButton(Icon icon)
创建一个按钮图标。
|
JButton(String text, Icon icon)
创建一个带有初始文本和图标的按钮。
|
JCheckBox(Icon icon)
创建一个最初选中的复选框有一个图标。
|
JCheckBox(Icon icon, boolean selected)
创建一个带有图标的复选框,并指定它是否最初选择。
|
JCheckBox(String text, Icon icon)
创建一个最初未选中的复选框以指定文本和图标。
|
JCheckBox(String text, Icon icon, boolean selected)
创建一个带有文本和图标的复选框,并指定它是否最初选择。
|
JCheckBoxMenuItem(Icon icon)
创建一个最初未选中的复选框菜单项的图标。
|
JCheckBoxMenuItem(String text, Icon icon)
创建一个最初选中的复选框菜单项指定的文本和图标。
|
JCheckBoxMenuItem(String text, Icon icon, boolean b)
用指定的文本、图标和选择状态创建一个复选框菜单项。
|
JLabel(Icon image)
创建一个具有指定的图像
JLabel 实例。
|
JLabel(Icon image, int horizontalAlignment)
创建一个
JLabel 实例与指定的图像和水平对齐。
|
JLabel(String text, Icon icon, int horizontalAlignment)
创建一个具有指定文本、图像
JLabel 实例,水平对齐方式。
|
JMenuItem(Icon icon)
创建一个指定的图标
JMenuItem 。
|
JMenuItem(String text, 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(Icon icon)
创建一个最初选中的单选按钮以指定的图像而没有文字。
|
JRadioButton(Icon icon, boolean selected)
用指定的图像和选择状态创建一个广播按钮,但没有文本。
|
JRadioButton(String text, Icon icon)
创建一个单选按钮,指定的文本和图像,这是最初的选择。
|
JRadioButton(String text, Icon icon, boolean selected)
创建一个具有指定文本、图像和选择状态的广播按钮。
|
JRadioButtonMenuItem(Icon icon)
创建一个带图标的
JRadioButtonMenuItem 。
|
JRadioButtonMenuItem(Icon icon, boolean selected)
用指定的图像和选择状态创建一个按钮菜单项,但没有文本。
|
JRadioButtonMenuItem(String text, Icon icon)
创建一个单选按钮菜单项指定的文本和
Icon 。
|
JRadioButtonMenuItem(String text, Icon icon, boolean selected)
创建一个具有指定文本、图像和选择状态的广播按钮菜单项。
|
JToggleButton(Icon icon)
创建一个最初选择的切换按钮以指定的图像而没有文字。
|
JToggleButton(Icon icon, boolean selected)
创建一个指定的图像和选择状态的切换按钮,但没有文本。
|
JToggleButton(String text, Icon icon)
创建一个切换按钮,指定的文本和图像,这是最初的选择。
|
JToggleButton(String text, Icon icon, boolean selected)
用指定的文本、图像和选择状态创建一个切换按钮。
|
Modifier and Type | Field and Description |
---|---|
protected Icon |
MatteBorder.tileIcon |
Modifier and Type | Method and Description |
---|---|
Icon |
MatteBorder.getTileIcon()
返回用于平铺边界或null如果纯色所使用的图标。
|
Constructor and Description |
---|
MatteBorder(Icon tileIcon)
用指定的瓷砖图标创建一个磨砂边框。
|
MatteBorder(Insets borderInsets, Icon tileIcon)
创建一个磨砂边框与指定的插图和图标。
|
MatteBorder(int top, int left, int bottom, int right, Icon tileIcon)
创建一个磨砂边框与指定的插图和图标。
|
Modifier and Type | Method and Description |
---|---|
abstract Icon |
AbstractColorChooserPanel.getLargeDisplayIcon()
返回面板的大显示图标。
|
abstract Icon |
AbstractColorChooserPanel.getSmallDisplayIcon()
返回面板的小显示图标。
|
Modifier and Type | Method and Description |
---|---|
Icon |
FileView.getIcon(File f)
在表示
JFileChooser 这个文件的图标。
|
Icon |
FileSystemView.getSystemIcon(File f)
用于将要显示的文件、目录或文件夹的图标显示在系统文件浏览器中。
|
Modifier and Type | Class and Description |
---|---|
class |
IconUIResource
一个图标包装类实现uiresource。
|
Constructor and Description |
---|
IconUIResource(Icon delegate)
创建一个uiresource图标对象将一个现有的图标实例。
|
MatteBorderUIResource(Icon tileIcon) |
MatteBorderUIResource(int top, int left, int bottom, int right, Icon tileIcon) |
Modifier and Type | Field and Description |
---|---|
protected Icon |
BasicMenuItemUI.arrowIcon |
protected Icon |
BasicMenuItemUI.checkIcon |
protected Icon |
BasicInternalFrameTitlePane.closeIcon |
protected Icon |
BasicTreeUI.collapsedIcon |
protected Icon |
BasicFileChooserUI.computerIcon |
protected Icon |
BasicFileChooserUI.detailsViewIcon |
protected Icon |
BasicFileChooserUI.directoryIcon |
protected Icon |
BasicTreeUI.expandedIcon |
protected Icon |
BasicFileChooserUI.fileIcon |
protected Icon |
BasicFileChooserUI.floppyDriveIcon |
protected Icon |
BasicFileChooserUI.hardDriveIcon |
protected Icon |
BasicFileChooserUI.homeFolderIcon |
protected Icon |
BasicRadioButtonUI.icon |
protected Icon |
BasicInternalFrameTitlePane.iconIcon |
protected Icon |
BasicFileChooserUI.listViewIcon |
protected Icon |
BasicInternalFrameTitlePane.maxIcon |
protected Icon |
BasicInternalFrameTitlePane.minIcon |
protected Icon |
BasicFileChooserUI.newFolderIcon |
protected Icon |
BasicFileChooserUI.upFolderIcon |
protected Icon |
BasicFileChooserUI.viewMenuIcon |
Modifier and Type | Field and Description |
---|---|
protected Hashtable<File,Icon> |
BasicFileChooserUI.BasicFileView.iconCache |
Modifier and Type | Method and Description |
---|---|
static Icon |
BasicIconFactory.createEmptyFrameIcon() |
Icon |
BasicFileChooserUI.BasicFileView.getCachedIcon(File f) |
static Icon |
BasicIconFactory.getCheckBoxIcon() |
static Icon |
BasicIconFactory.getCheckBoxMenuItemIcon() |
Icon |
BasicTreeUI.getCollapsedIcon() |
Icon |
BasicRadioButtonUI.getDefaultIcon() |
Icon |
BasicTreeUI.getExpandedIcon() |
protected Icon |
BasicOptionPaneUI.getIcon()
返回从JOptionPane接收机提供的外观和感觉的图标,或默认的图标
getDefaultIcon 归来。
|
Icon |
BasicFileChooserUI.BasicFileView.getIcon(File f) |
protected Icon |
BasicTabbedPaneUI.getIconForTab(int tabIndex) |
protected Icon |
BasicOptionPaneUI.getIconForType(int messageType)
返回用于类型传递的图标。
|
static Icon |
BasicIconFactory.getMenuArrowIcon() |
static Icon |
BasicIconFactory.getMenuItemArrowIcon() |
static Icon |
BasicIconFactory.getMenuItemCheckIcon() |
static Icon |
BasicIconFactory.getRadioButtonIcon() |
static Icon |
BasicIconFactory.getRadioButtonMenuItemIcon() |
Modifier and Type | Method and Description |
---|---|
void |
BasicFileChooserUI.BasicFileView.cacheIcon(File f, Icon i) |
protected void |
BasicTreeUI.drawCentered(Component c, Graphics graphics, Icon icon, int x, int y) |
protected Dimension |
BasicMenuItemUI.getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) |
protected String |
BasicLabelUI.layoutCL(JLabel label, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR)
将调用转发给layoutcompoundlabel() swingutilities。
|
protected void |
BasicTabbedPaneUI.layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected) |
protected void |
BasicTabbedPaneUI.paintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected) |
protected void |
BasicMenuItemUI.paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) |
void |
BasicTreeUI.setCollapsedIcon(Icon newG) |
void |
BasicTreeUI.setExpandedIcon(Icon newG) |
Modifier and Type | Class and Description |
---|---|
class |
MetalCheckBoxIcon
为实现organiccheckboxui checkboxicon
|
class |
MetalComboBoxIcon
此实用工具类画表明metalcombobox单杠
|
static class |
MetalIconFactory.FileIcon16
警告:序列化该类的对象与以后的Swing版本不兼容。
|
static class |
MetalIconFactory.FolderIcon16
警告:序列化该类的对象与以后的Swing版本不兼容。
|
static class |
MetalIconFactory.PaletteCloseIcon
定义调色板关闭的图标
|
static class |
MetalIconFactory.TreeControlIcon
警告:序列化该类的对象与以后的Swing版本不兼容。
|
static class |
MetalIconFactory.TreeFolderIcon
警告:序列化该类的对象与以后的Swing版本不兼容。
|
static class |
MetalIconFactory.TreeLeafIcon |
Modifier and Type | Field and Description |
---|---|
protected Icon |
MetalComboBoxButton.comboIcon |
protected static Icon |
MetalSliderUI.horizThumbIcon
默认的水平
Icon 拇指。
|
protected Icon |
MetalInternalFrameTitlePane.paletteCloseIcon |
protected static Icon |
MetalSliderUI.vertThumbIcon
默认
Icon 竖拇指。
|
Modifier and Type | Method and Description |
---|---|
static Icon |
MetalIconFactory.getCheckBoxIcon()
返回一个复选框图标。
|
static Icon |
MetalIconFactory.getCheckBoxMenuItemIcon() |
Icon |
MetalComboBoxButton.getComboIcon() |
Icon |
MetalLookAndFeel.getDisabledIcon(JComponent component, Icon icon)
返回一个残疾的
Icon 外观。
|
Icon |
MetalLookAndFeel.getDisabledSelectedIcon(JComponent component, Icon icon)
返回一个
Icon 供残疾人使用的组件,并选择。
|
static Icon |
MetalIconFactory.getFileChooserDetailViewIcon() |
static Icon |
MetalIconFactory.getFileChooserHomeFolderIcon() |
static Icon |
MetalIconFactory.getFileChooserListViewIcon() |
static Icon |
MetalIconFactory.getFileChooserNewFolderIcon() |
static Icon |
MetalIconFactory.getFileChooserUpFolderIcon() |
static Icon |
MetalIconFactory.getHorizontalSliderThumbIcon() |
static Icon |
MetalIconFactory.getInternalFrameAltMaximizeIcon(int size) |
static Icon |
MetalIconFactory.getInternalFrameCloseIcon(int size) |
static Icon |
MetalIconFactory.getInternalFrameDefaultMenuIcon() |
static Icon |
MetalIconFactory.getInternalFrameMaximizeIcon(int size) |
static Icon |
MetalIconFactory.getInternalFrameMinimizeIcon(int size) |
static Icon |
MetalIconFactory.getMenuArrowIcon() |
static Icon |
MetalIconFactory.getMenuItemArrowIcon() |
static Icon |
MetalIconFactory.getMenuItemCheckIcon()
返回一个图标被
JCheckBoxMenuItem 。
|
static Icon |
MetalIconFactory.getRadioButtonIcon() |
static Icon |
MetalIconFactory.getRadioButtonMenuItemIcon() |
static Icon |
MetalIconFactory.getTreeComputerIcon() |
static Icon |
MetalIconFactory.getTreeControlIcon(boolean isCollapsed) |
static Icon |
MetalIconFactory.getTreeFloppyDriveIcon() |
static Icon |
MetalIconFactory.getTreeFolderIcon() |
static Icon |
MetalIconFactory.getTreeHardDriveIcon() |
static Icon |
MetalIconFactory.getTreeLeafIcon() |
static Icon |
MetalIconFactory.getVerticalSliderThumbIcon() |
Modifier and Type | Method and Description |
---|---|
Icon |
MetalLookAndFeel.getDisabledIcon(JComponent component, Icon icon)
返回一个残疾的
Icon 外观。
|
Icon |
MetalLookAndFeel.getDisabledSelectedIcon(JComponent component, Icon icon)
返回一个
Icon 供残疾人使用的组件,并选择。
|
void |
MetalComboBoxButton.setComboIcon(Icon i) |
Constructor and Description |
---|
MetalComboBoxButton(JComboBox cb, Icon i, boolean onlyIcon, CellRendererPane pane, JList list) |
MetalComboBoxButton(JComboBox cb, Icon i, CellRendererPane pane, JList list) |
Modifier and Type | Method and Description |
---|---|
Icon |
NimbusLookAndFeel.getDisabledIcon(JComponent component, Icon icon) |
Modifier and Type | Method and Description |
---|---|
Icon |
NimbusLookAndFeel.getDisabledIcon(JComponent component, Icon icon) |
Modifier and Type | Method and Description |
---|---|
protected Icon |
SynthButtonUI.getDefaultIcon(AbstractButton b)
返回默认图标。
|
Icon |
SynthTreeUI.getExpandedIcon() |
protected Icon |
SynthButtonUI.getIcon(AbstractButton b)
返回用于画按钮的图标。
|
Icon |
SynthStyle.getIcon(SynthContext context, Object key)
方便的方法得到一个特定的样式属性,其值是一个图标。
|
protected Icon |
SynthButtonUI.getSizingIcon(AbstractButton b)
返回用于计算首选/最小/最大大小的图标。
|
protected Icon |
SynthRadioButtonUI.getSizingIcon(AbstractButton b)
返回用于计算首选/最小/最大大小的图标。
|
Modifier and Type | Method and Description |
---|---|
protected void |
SynthTreeUI.drawCentered(Component c, Graphics graphics, Icon icon, int x, int y) |
Dimension |
SynthGraphicsUtils.getMaximumSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)
返回正确呈现图标和文本所需的最大大小。
|
Dimension |
SynthGraphicsUtils.getMinimumSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)
返回正确呈现图标和文本所需的最小尺寸。
|
protected Dimension |
SynthMenuUI.getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) |
protected Dimension |
SynthMenuItemUI.getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) |
Dimension |
SynthGraphicsUtils.getPreferredSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)
返回正确呈现图标和文本所需的首选大小。
|
String |
SynthGraphicsUtils.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)
放置文本和一个图标返回,通过参考,将图标和文本放置的位置。
|
void |
SynthGraphicsUtils.paintText(SynthContext ss, Graphics g, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex, int textOffset)
画一个图标和文本。
|
Modifier and Type | Method and Description |
---|---|
static Icon |
StyleConstants.getIcon(AttributeSet a)
从属性列表中获取图标设置。
|
Modifier and Type | Method and Description |
---|---|
static void |
StyleConstants.setIcon(MutableAttributeSet a, Icon c)
设置图标属性。
|
Modifier and Type | Method and Description |
---|---|
Icon |
ImageView.getLoadingImageIcon()
返回在加载图像的过程中使用的图标。
|
Icon |
ImageView.getNoImageIcon()
返回使用的图标,如果图像不能被发现。
|
Modifier and Type | Field and Description |
---|---|
protected Icon |
DefaultTreeCellRenderer.closedIcon
用于显示未扩展的非叶节点的图标。
|
protected Icon |
DefaultTreeCellEditor.editingIcon
编辑时使用的图标。
|
protected Icon |
DefaultTreeCellRenderer.leafIcon
显示叶节点的图标。
|
protected Icon |
DefaultTreeCellRenderer.openIcon
用于显示扩展的非叶节点的图标。
|
Modifier and Type | Method and Description |
---|---|
Icon |
DefaultTreeCellRenderer.getClosedIcon()
返回用于表示未展开的非叶节点的图标。
|
Icon |
DefaultTreeCellRenderer.getDefaultClosedIcon()
返回默认的图标,对于当前的LAF,是用来代表非叶节点不扩大。
|
Icon |
DefaultTreeCellRenderer.getDefaultLeafIcon()
返回默认的图标,对于当前的LAF,是用来表示叶节点。
|
Icon |
DefaultTreeCellRenderer.getDefaultOpenIcon()
返回默认的图标,对于当前的LAF,是用来代表非叶节点的扩展。
|
Icon |
DefaultTreeCellRenderer.getLeafIcon()
返回用于表示叶节点的图标。
|
Icon |
DefaultTreeCellRenderer.getOpenIcon()
返回用于表示扩展的非叶节点的图标。
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultTreeCellRenderer.setClosedIcon(Icon newIcon)
设置用于表示未展开的非叶节点的图标。
|
void |
DefaultTreeCellRenderer.setLeafIcon(Icon newIcon)
设置用于表示叶节点的图标。
|
void |
DefaultTreeCellRenderer.setOpenIcon(Icon newIcon)
设置用于表示扩展的非叶节点的图标。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.