JavaTM Platform
Standard Ed. 6

インタフェース
javax.swing.Icon の使用

Icon を使用しているパッケージ
javax.swing すべてのプラットフォームで可能なかぎり同じように機能する「軽量」(Java 共通言語) コンポーネントのセットを提供します。 
javax.swing.border Swing コンポーネントの周囲に各種ボーダーを描画するためのクラスおよびインタフェースを提供します。 
javax.swing.colorchooser このパッケージには、JColorChooser コンポーネントによって使われるクラスおよびインタフェースが含まれています。 
javax.swing.filechooser このパッケージには、JFileChooser コンポーネントによって使用されるクラスおよびインタフェースが含まれています。 
javax.swing.plaf 1 つのインタフェースおよび多くの abstract クラスを提供しており、Swing は、プラグイン可能な Look & Feel 機能を実現するためにこれらのクラスを利用します。 
javax.swing.plaf.basic 基本 Look & Feel に従って構築されたユーザーインタフェースオブジェクトを提供します。 
javax.swing.plaf.metal デフォルトの Look & Feel である Java Look & Feel (コード名は Metal) に従って作成されたユーザーインタフェースオブジェクトを提供します。 
javax.swing.plaf.synth Synth は、すべてのペイントが委譲されるスキン設定可能な Look & Feel です。 
javax.swing.text 編集可能なテキストコンポーネントと編集不能なテキストコンポーネントを処理するクラスとインタフェースを提供します。 
javax.swing.text.html HTML テキストエディタを作成するための HTMLEditorKit クラスとサポートクラスを提供します。 
javax.swing.tree javax.swing.JTree を処理するためのクラスとインタフェースを提供します。 
 

javax.swing での Icon の使用
 

Icon を実装している javax.swing のクラス
 class ImageIcon
          アイコンをイメージからペイントする Icon インタフェースの実装です。
 

Icon として宣言されている javax.swing のフィールド
protected  Icon JInternalFrame.frameIcon
          内部フレームの左上隅に表示されるアイコンです。
protected  Icon JOptionPane.icon
          区画で使用されるアイコンです。
 

Icon を返す javax.swing のメソッド
 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 JLabel.getIcon()
          ラベルに表示するグラフィックイメージ (グリフやアイコン) を返します。
 Icon AbstractButton.getIcon()
          デフォルトのアイコンを返します。
 Icon JOptionPane.getIcon()
          この区画が表示するアイコンを返します。
 Icon JFileChooser.getIcon(File f)
          このファイルまたはファイル型のアイコンを返します。
static Icon UIManager.getIcon(Object key)
          デフォルトから Icon を返します。
 Icon UIDefaults.getIcon(Object key)
          key の値が Icon の場合はそれを返し、そうでない場合は null を返します。
static Icon UIManager.getIcon(Object key, Locale l)
          デフォルトから、指定されたロケールに適した Icon を返します。
 Icon UIDefaults.getIcon(Object key, Locale l)
          指定の Localekey の値が Icon の場合はそれを返し、そうでない場合は null を返します。
 Icon JTabbedPane.getIconAt(int index)
          index のタブのアイコンを返します。
 Icon AbstractButton.getPressedIcon()
          押された状態のボタンのアイコンを返します。
 Icon AbstractButton.getRolloverIcon()
          反転した状態のボタンのアイコンを返します。
 Icon AbstractButton.getRolloverSelectedIcon()
          反転して選択された状態のボタンのアイコンを返します。
 Icon AbstractButton.getSelectedIcon()
          選択された状態のボタンのアイコンを返します。
 Icon TransferHandler.getVisualRepresentation(Transferable t)
          転送の外観を設定するオブジェクトを返します。
 

Icon 型のパラメータを持つ javax.swing のメソッド
 void JTabbedPane.addTab(String title, Icon icon, Component component)
          title または icon、あるいはその両方 (どちらかは null でもかまわない) で表される component を追加します。
 void JTabbedPane.addTab(String title, Icon icon, Component component, String tip)
          title または icon、あるいはその両方 (どちらかは null でもかまわない) によって表される component および tip を追加します。
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 を持つ最初のタブインデックスを返します。
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)
          title または icon、あるいはその両方 (どちらかは null でもかまわない) で表される componentindex の位置に挿入します。
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 が無効にされている (JLabel.setEnabled(false) が実行されている) 場合に表示されるアイコンを設定します。
 void AbstractButton.setDisabledIcon(Icon disabledIcon)
          無効な状態のボタンのアイコンを設定します。
 void JTabbedPane.setDisabledIconAt(int index, Icon disabledIcon)
          index の無効なアイコンを icon に設定します。
 void AbstractButton.setDisabledSelectedIcon(Icon disabledSelectedIcon)
          無効かつ選択状態のボタンのアイコンを設定します。
 void JInternalFrame.setFrameIcon(Icon icon)
          この内部フレームのタイトルバー (通常は左上隅) に表示するイメージを設定します。
 void JLabel.setIcon(Icon icon)
          このコンポーネントが表示するアイコンを定義します。
 void AbstractButton.setIcon(Icon defaultIcon)
          ボタンのデフォルトのアイコンを設定します。
 void JOptionPane.setIcon(Icon newIcon)
          表示するアイコンを設定します。
 void JTabbedPane.setIconAt(int index, Icon icon)
          index のアイコンを icon に設定します。
 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)
          指定されたアイコンを持つダイアログを表示します。
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)
          指定されたアイコンを持つ内部ダイアログパネルを表示します。
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)
          指定されたアイコンを持つ内部ダイアログパネルを表示します。
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)
          指定されたアイコンを持つダイアログを表示します。
 

Icon 型のパラメータを持つ javax.swing のコンストラクタ
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)
          トグルボタンを、指定されたテキスト、イメージ、および選択状態で作成します。
 

javax.swing.border での Icon の使用
 

Icon として宣言されている javax.swing.border のフィールド
protected  Icon MatteBorder.tileIcon
           
 

Icon を返す javax.swing.border のメソッド
 Icon MatteBorder.getTileIcon()
          ボーダーのタイリングに使用したカラーを返します。
 

Icon 型のパラメータを持つ javax.swing.border のコンストラクタ
MatteBorder(Icon tileIcon)
          飾り縁ボーダーを、指定されたタイルアイコンで作成します。
MatteBorder(Insets borderInsets, Icon tileIcon)
          飾り縁ボーダーを、指定されたインセットおよびタイルアイコンで作成します。
MatteBorder(int top, int left, int bottom, int right, Icon tileIcon)
          飾り縁ボーダーを、指定されたインセットおよびタイルアイコンで作成します。
 

javax.swing.colorchooser での Icon の使用
 

Icon を返す javax.swing.colorchooser のメソッド
abstract  Icon AbstractColorChooserPanel.getLargeDisplayIcon()
          パネルの大きな表示アイコンを返します。
abstract  Icon AbstractColorChooserPanel.getSmallDisplayIcon()
          パネルの小さな表示アイコンを返します。
 

javax.swing.filechooser での Icon の使用
 

Icon を返す javax.swing.filechooser のメソッド
 Icon FileView.getIcon(File f)
          JFileChooser でこのファイルを表すアイコンです。
 Icon FileSystemView.getSystemIcon(File f)
          システムファイルブラウザに表示されるファイル、ディレクトリ、またはフォルダのアイコンです。
 

javax.swing.plaf での Icon の使用
 

Icon を実装している javax.swing.plaf のクラス
 class IconUIResource
          UIResource を実装する Icon ラッパークラスです。
 

Icon 型のパラメータを持つ javax.swing.plaf のコンストラクタ
BorderUIResource.MatteBorderUIResource(Icon tileIcon)
           
BorderUIResource.MatteBorderUIResource(int top, int left, int bottom, int right, Icon tileIcon)
           
IconUIResource(Icon delegate)
          既存の Icon インスタンスをラップする、UIResource のアイコンオブジェクトを作成します。
 

javax.swing.plaf.basic での Icon の使用
 

Icon として宣言されている javax.swing.plaf.basic のフィールド
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
           
 

Icon 型の型パラメータを持つ javax.swing.plaf.basic のフィールド
protected  Hashtable<File,Icon> BasicFileChooserUI.BasicFileView.iconCache
           
 

Icon を返す javax.swing.plaf.basic のメソッド
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()
          レシーバが Look & Feel を提供している 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()
           
 

Icon 型のパラメータを持つ javax.swing.plaf.basic のメソッド
 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)
          SwingUtilities.layoutCompoundLabel() への呼び出しを転送します。
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)
           
 

javax.swing.plaf.metal での Icon の使用
 

Icon を実装している javax.swing.plaf.metal のクラス
 class MetalCheckBoxIcon
          OrganicCheckBoxUI に使用する CheckboxIcon の実装です。
 class MetalComboBoxIcon
          MetalComboBox を示す水平線を描画するユーティリティークラスです。
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
           
 

Icon として宣言されている javax.swing.plaf.metal のフィールド
protected  Icon MetalComboBoxButton.comboIcon
           
protected static Icon MetalSliderUI.horizThumbIcon
          デフォルトの水平サム Icon です。
protected  Icon MetalInternalFrameTitlePane.paletteCloseIcon
           
protected static Icon MetalSliderUI.vertThumbIcon
          デフォルトの垂直サム Icon です。
 

Icon を返す javax.swing.plaf.metal のメソッド
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()
           
 

Icon 型のパラメータを持つ javax.swing.plaf.metal のメソッド
 Icon MetalLookAndFeel.getDisabledIcon(JComponent component, Icon icon)
          無効な状態の Icon を返します。
 Icon MetalLookAndFeel.getDisabledSelectedIcon(JComponent component, Icon icon)
          無効で、かつ選択されているコンポーネントによって使用される Icon を返します。
 void MetalComboBoxButton.setComboIcon(Icon i)
           
 

Icon 型のパラメータを持つ javax.swing.plaf.metal のコンストラクタ
MetalComboBoxButton(JComboBox cb, Icon i, boolean onlyIcon, CellRendererPane pane, JList list)
           
MetalComboBoxButton(JComboBox cb, Icon i, CellRendererPane pane, JList list)
           
 

javax.swing.plaf.synth での Icon の使用
 

Icon を返す javax.swing.plaf.synth のメソッド
 Icon SynthStyle.getIcon(SynthContext context, Object key)
          値が Icon である特定のスタイルプロパティーを取得する簡易メソッドです。
 

Icon 型のパラメータを持つ javax.swing.plaf.synth のメソッド
 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)
          アイコンやテキストを正しく描画するのに必要な最小サイズを返します。
 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)
          アイコンとテキストをペイントします。
 

javax.swing.text での Icon の使用
 

Icon を返す javax.swing.text のメソッド
static Icon StyleConstants.getIcon(AttributeSet a)
          属性リストからアイコンの設定を返します。
 

Icon 型のパラメータを持つ javax.swing.text のメソッド
static void StyleConstants.setIcon(MutableAttributeSet a, Icon c)
          アイコンの属性を設定します。
 

javax.swing.text.html での Icon の使用
 

Icon を返す javax.swing.text.html のメソッド
 Icon ImageView.getLoadingImageIcon()
          イメージのロード処理中に使うアイコンを返します。
 Icon ImageView.getNoImageIcon()
          イメージが見つからなかった場合に使うアイコンを返します。
 

javax.swing.tree での Icon の使用
 

Icon として宣言されている javax.swing.tree のフィールド
protected  Icon DefaultTreeCellRenderer.closedIcon
          展開されていない、葉以外のノードを表示するのに使うアイコンです。
protected  Icon DefaultTreeCellEditor.editingIcon
          編集時に使うアイコンです。
protected  Icon DefaultTreeCellRenderer.leafIcon
          葉ノードを表示するのに使うアイコンです。
protected  Icon DefaultTreeCellRenderer.openIcon
          展開されている、葉以外のノードを表示するのに使うアイコンです。
 

Icon を返す javax.swing.tree のメソッド
 Icon DefaultTreeCellRenderer.getClosedIcon()
          展開されていない葉以外のノードを表すために使用するアイコンを返します。
 Icon DefaultTreeCellRenderer.getDefaultClosedIcon()
          展開されている葉以外のノードを表すために使用する、現在の葉のデフォルトアイコンを返します。
 Icon DefaultTreeCellRenderer.getDefaultLeafIcon()
          展開されている葉以外のノードを表すために使用する、現在の葉のデフォルトアイコンを返します。
 Icon DefaultTreeCellRenderer.getDefaultOpenIcon()
          展開されている葉以外のノードを表すために使用する、現在の葉のデフォルトアイコンを返します。
 Icon DefaultTreeCellRenderer.getLeafIcon()
          葉ノードを表すために使用するアイコンを返します。
 Icon DefaultTreeCellRenderer.getOpenIcon()
          展開されている葉以外のノードを表すために使用するアイコンを返します。
 

Icon 型のパラメータを持つ javax.swing.tree のメソッド
 void DefaultTreeCellRenderer.setClosedIcon(Icon newIcon)
          展開されていない葉以外のノードを表すために使用するアイコンを設定します。
 void DefaultTreeCellRenderer.setLeafIcon(Icon newIcon)
          葉ノードを表すために使用するアイコンを設定します。
 void DefaultTreeCellRenderer.setOpenIcon(Icon newIcon)
          展開されている葉以外のノードを表すために使用するアイコンを設定します。
 


JavaTM Platform
Standard Ed. 6

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。