JavaTM Platform
Standard Ed. 6

クラス
java.awt.Insets の使用

Insets を使用しているパッケージ
java.awt ユーザーインタフェースの作成およびグラフィックスとイメージのペイント用のすべてのクラスを含みます。 
java.awt.dnd ドラッグ&ドロップ操作は、多くのグラフィカルユーザーインタフェースシステムで見られる直接的な操作ジェスチャーで、GUI の表現要素に論理的に関連した 2 つのエンティティー間で情報を変換する機構を提供します。 
javax.swing すべてのプラットフォームで可能なかぎり同じように機能する「軽量」(Java 共通言語) コンポーネントのセットを提供します。 
javax.swing.border Swing コンポーネントの周囲に各種ボーダーを描画するためのクラスおよびインタフェースを提供します。 
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 編集可能なテキストコンポーネントと編集不能なテキストコンポーネントを処理するクラスとインタフェースを提供します。 
 

java.awt での Insets の使用
 

Insets として宣言されている java.awt のフィールド
 Insets GridBagConstraints.insets
          コンポーネントの外側のパディング、つまりコンポーネントとその表示領域の端までの領域の最小値を指定します。
 

Insets を返す java.awt のメソッド
 Insets Container.getInsets()
          コンテナの境界のサイズを示す、このコンテナのインセットを判定します。
 Insets Toolkit.getScreenInsets(GraphicsConfiguration gc)
          スクリーンのインセットを返します。
 Insets Container.insets()
          推奨されていません。 JDK Version 1.1 以降は、 getInsets() に置き換えられました。
 

Insets 型のパラメータを持つ java.awt のコンストラクタ
GridBagConstraints(int gridx, int gridy, int gridwidth, int gridheight, double weightx, double weighty, int anchor, int fill, Insets insets, int ipadx, int ipady)
          すべてのフィールドを渡された引数に設定して GridBagConstraints オブジェクトを作成します。
 

java.awt.dnd での Insets の使用
 

Insets を返す java.awt.dnd のメソッド
 Insets Autoscroll.getAutoscrollInsets()
          このインタフェースを実装する Component の幾何学的図形を基準に、自動スクロール領域またはボーダーを記述する Insets が返されます。
 

javax.swing での Insets の使用
 

Insets を返す javax.swing のメソッド
 Insets JComponent.getInsets()
          このコンポーネントでボーダーが設定されている場合はボーダーのインセットを返し、そうでない場合は super.getInsets を呼び出します。
 Insets JViewport.getInsets()
          JViewport ではボーダーがサポートされていないので、インセット (ボーダー) の寸法を (0,0,0,0) として返します。
 Insets JComponent.getInsets(Insets insets)
          このコンポーネントのインセット値を格納する Insets オブジェクトを返します。
 Insets JViewport.getInsets(Insets insets)
          この JViewport のインセット値を格納する Insets オブジェクトを返します。
static Insets UIManager.getInsets(Object key)
          デフォルトから Insets オブジェクトを返します。
 Insets UIDefaults.getInsets(Object key)
          key の値が Insets の場合はそれを返し、そうでない場合は null を返します。
static Insets UIManager.getInsets(Object key, Locale l)
          デフォルトから、指定されたロケールに適した Insets オブジェクトを返します。
 Insets UIDefaults.getInsets(Object key, Locale l)
          指定の Localekey の値が Insets の場合はそれを返し、そうでない場合は null を返します。
 Insets AbstractButton.getMargin()
          ボタンのボーダーとラベルの間のマージンを返します。
 Insets JToolBar.getMargin()
          ツールバーのボーダーとそのボタンの間のマージンを返します。
 Insets JMenuBar.getMargin()
          メニューバーのボーダーとそのメニューの間のマージンを返します。
 Insets JPopupMenu.getMargin()
          ポップアップメニューのボーダーと内容の間にあるマージンの値を返します (ピクセル単位)。
 

Insets 型のパラメータを持つ javax.swing のメソッド
 Insets JComponent.getInsets(Insets insets)
          このコンポーネントのインセット値を格納する Insets オブジェクトを返します。
 Insets JViewport.getInsets(Insets insets)
          この JViewport のインセット値を格納する Insets オブジェクトを返します。
 void AbstractButton.setMargin(Insets m)
          ボタンのボーダーとラベルの間のマージンを設定します。
 void JToolBar.setMargin(Insets m)
          ツールバーのボーダーとそのボタンの間のマージンを設定します。
 void JMenuBar.setMargin(Insets m)
          メニューバーのボーダーとそのメニューの間のマージンを設定します。
 

javax.swing.border での Insets の使用
 

Insets を返す javax.swing.border のメソッド
 Insets EmptyBorder.getBorderInsets()
          ボーダーのインセットの値を返します。
 Insets MatteBorder.getBorderInsets()
          ボーダーのインセットの値を返します。
 Insets Border.getBorderInsets(Component c)
          ボーダーのインセットの値を返します。
 Insets EmptyBorder.getBorderInsets(Component c)
          ボーダーのインセットの値を返します。
 Insets AbstractBorder.getBorderInsets(Component c)
          このデフォルト実装は、topleftbottom、および right の各フィールドが 0 に設定されているとき、新しい Insets インスタンスを返します。
 Insets CompoundBorder.getBorderInsets(Component c)
          外側ボーダーのインセットを内側ボーダーのインセットに加算して、複合ボーダーのインセットの値を返します。
 Insets MatteBorder.getBorderInsets(Component c)
          ボーダーのインセットの値を返します。
 Insets LineBorder.getBorderInsets(Component c)
          ボーダーのインセットの値を返します。
 Insets EtchedBorder.getBorderInsets(Component c)
          ボーダーのインセットの値を返します。
 Insets BevelBorder.getBorderInsets(Component c)
          ボーダーのインセットの値を返します。
 Insets TitledBorder.getBorderInsets(Component c)
          ボーダーのインセットの値を返します。
 Insets SoftBevelBorder.getBorderInsets(Component c)
          ボーダーのインセットの値を返します。
 Insets EmptyBorder.getBorderInsets(Component c, Insets insets)
          insets パラメータを、この Border の現在の Insets で初期化し直します。
 Insets AbstractBorder.getBorderInsets(Component c, Insets insets)
          インセットパラメータを、この Border の現在のインセットで初期化し直します。
 Insets CompoundBorder.getBorderInsets(Component c, Insets insets)
          insets パラメータを、この Border の現在の Insets で初期化し直します。
 Insets MatteBorder.getBorderInsets(Component c, Insets insets)
          insets パラメータを、この Border の現在の Insets で初期化し直します。
 Insets LineBorder.getBorderInsets(Component c, Insets insets)
          insets パラメータを、この Border の現在の Insets で初期化し直します。
 Insets EtchedBorder.getBorderInsets(Component c, Insets insets)
          insets パラメータを、この Border の現在の Insets で初期化し直します。
 Insets BevelBorder.getBorderInsets(Component c, Insets insets)
          insets パラメータを、この Border の現在の Insets で初期化し直します。
 Insets TitledBorder.getBorderInsets(Component c, Insets insets)
          insets パラメータを、この Border の現在の Insets で初期化し直します。
 Insets SoftBevelBorder.getBorderInsets(Component c, Insets insets)
          insets パラメータを、この Border の現在の Insets で初期化し直します。
 

Insets 型のパラメータを持つ javax.swing.border のメソッド
 Insets EmptyBorder.getBorderInsets(Component c, Insets insets)
          insets パラメータを、この Border の現在の Insets で初期化し直します。
 Insets AbstractBorder.getBorderInsets(Component c, Insets insets)
          インセットパラメータを、この Border の現在のインセットで初期化し直します。
 Insets CompoundBorder.getBorderInsets(Component c, Insets insets)
          insets パラメータを、この Border の現在の Insets で初期化し直します。
 Insets MatteBorder.getBorderInsets(Component c, Insets insets)
          insets パラメータを、この Border の現在の Insets で初期化し直します。
 Insets LineBorder.getBorderInsets(Component c, Insets insets)
          insets パラメータを、この Border の現在の Insets で初期化し直します。
 Insets EtchedBorder.getBorderInsets(Component c, Insets insets)
          insets パラメータを、この Border の現在の Insets で初期化し直します。
 Insets BevelBorder.getBorderInsets(Component c, Insets insets)
          insets パラメータを、この Border の現在の Insets で初期化し直します。
 Insets TitledBorder.getBorderInsets(Component c, Insets insets)
          insets パラメータを、この Border の現在の Insets で初期化し直します。
 Insets SoftBevelBorder.getBorderInsets(Component c, Insets insets)
          insets パラメータを、この Border の現在の Insets で初期化し直します。
 

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

javax.swing.plaf での Insets の使用
 

javax.swing.plaf での Insets のサブクラス
 class InsetsUIResource
           
 

Insets を返す javax.swing.plaf のメソッド
 Insets BorderUIResource.getBorderInsets(Component c)
           
 

Insets 型のパラメータを持つ javax.swing.plaf のコンストラクタ
BorderUIResource.EmptyBorderUIResource(Insets insets)
           
 

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

Insets として宣言されている javax.swing.plaf.basic のフィールド
protected  Insets BasicTabbedPaneUI.contentBorderInsets
           
protected  Insets BasicSliderUI.focusInsets
           
protected  Insets BasicSliderUI.insetCache
           
protected  Insets BasicTabbedPaneUI.selectedTabPadInsets
           
protected  Insets BasicTabbedPaneUI.tabAreaInsets
           
protected  Insets BasicTabbedPaneUI.tabInsets
           
 

Insets を返す javax.swing.plaf.basic のメソッド
 Insets BasicBorders.ButtonBorder.getBorderInsets(Component c)
           
 Insets BasicBorders.ToggleButtonBorder.getBorderInsets(Component c)
           
 Insets BasicBorders.RadioButtonBorder.getBorderInsets(Component c)
           
 Insets BasicBorders.MenuBarBorder.getBorderInsets(Component c)
           
 Insets BasicBorders.MarginBorder.getBorderInsets(Component c)
           
 Insets BasicBorders.FieldBorder.getBorderInsets(Component c)
           
 Insets BasicBorders.SplitPaneBorder.getBorderInsets(Component c)
           
 Insets BasicBorders.ButtonBorder.getBorderInsets(Component c, Insets insets)
           
 Insets BasicBorders.ToggleButtonBorder.getBorderInsets(Component c, Insets insets)
           
 Insets BasicBorders.RadioButtonBorder.getBorderInsets(Component c, Insets insets)
           
 Insets BasicBorders.MenuBarBorder.getBorderInsets(Component c, Insets insets)
           
 Insets BasicBorders.MarginBorder.getBorderInsets(Component c, Insets insets)
           
 Insets BasicBorders.FieldBorder.getBorderInsets(Component c, Insets insets)
           
protected  Insets BasicTabbedPaneUI.getContentBorderInsets(int tabPlacement)
           
static Insets BasicGraphicsUtils.getEtchedInsets()
          drawEtchedRect() で描画されるボーダーが占める容量を返します。
static Insets BasicGraphicsUtils.getGrooveInsets()
          drawGroove() で描画されるボーダーが占める容量を返します。
protected  Insets BasicComboBoxUI.getInsets()
          JComboBox からインセットを取得します。
 Insets BasicToolBarUI.DragWindow.getInsets()
           
 Insets BasicSplitPaneDivider.getInsets()
          このコンポーネントでボーダーが設定されている場合は、ボーダーのインセットを返します。
 Insets BasicSplitPaneUI.getInsets(JComponent jc)
          インセットを返します。
 Insets BasicDesktopIconUI.getInsets(JComponent c)
           
protected  Insets BasicTabbedPaneUI.getSelectedTabPadInsets(int tabPlacement)
           
protected  Insets BasicTabbedPaneUI.getTabAreaInsets(int tabPlacement)
           
protected  Insets BasicTabbedPaneUI.getTabInsets(int tabPlacement, int tabIndex)
           
 

Insets 型のパラメータを持つ javax.swing.plaf.basic のメソッド
protected  int BasicProgressBarUI.getAmountFull(Insets b, int width, int height)
          モデルから集めた完了パーセント情報に基づいて、塗りつぶされる進捗バーの量を決定します。
protected  int BasicSplitPaneUI.BasicHorizontalLayoutManager.getAvailableSize(Dimension containerSize, Insets insets)
          コンテナのサイズとインセットに基づいて有効な幅を返します。
 Insets BasicBorders.ButtonBorder.getBorderInsets(Component c, Insets insets)
           
 Insets BasicBorders.ToggleButtonBorder.getBorderInsets(Component c, Insets insets)
           
 Insets BasicBorders.RadioButtonBorder.getBorderInsets(Component c, Insets insets)
           
 Insets BasicBorders.MenuBarBorder.getBorderInsets(Component c, Insets insets)
           
 Insets BasicBorders.MarginBorder.getBorderInsets(Component c, Insets insets)
           
 Insets BasicBorders.FieldBorder.getBorderInsets(Component c, Insets insets)
           
protected  int BasicSplitPaneUI.BasicHorizontalLayoutManager.getInitialLocation(Insets insets)
          Insets が null でない場合は左インセット、null の場合は 0 を返します。
protected  void BasicTreeUI.paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
          行の展開 (切り替え) 部分をペイントします。
protected  void BasicTreeUI.paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
          脚の水平部分をペイントします。
protected  void BasicTreeUI.paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
          行のレンダリング部分をペイントします。
protected  void BasicProgressBarUI.paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b)
           
protected  void BasicTreeUI.paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)
          脚の垂直部分をペイントします。
protected static void BasicTabbedPaneUI.rotateInsets(Insets topInsets, Insets targetInsets, int targetPlacement)
           
protected  void BasicSplitPaneUI.BasicHorizontalLayoutManager.setComponentToSize(Component c, int size, int location, Insets insets, Dimension containerSize)
          x 位置を location、y 位置を insets.top に配置することにより、コンポーネント c の幅を size に設定し、その高さを containersize.height から上インセットと下インセットを減算した値に設定します。
 

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

Insets として宣言されている javax.swing.plaf.metal のフィールド
protected static Insets MetalBorders.ButtonBorder.borderInsets
           
protected static Insets MetalBorders.MenuBarBorder.borderInsets
           
protected static Insets MetalBorders.MenuItemBorder.borderInsets
           
protected static Insets MetalBorders.PopupMenuBorder.borderInsets
           
protected  Insets MetalBorders.TableHeaderBorder.editorBorderInsets
           
protected static Insets MetalComboBoxEditor.editorBorderInsets
          デフォルトのエディタのボーダーの Insets です。
 

Insets を返す javax.swing.plaf.metal のメソッド
 Insets MetalBorders.Flush3DBorder.getBorderInsets(Component c)
           
 Insets MetalBorders.ButtonBorder.getBorderInsets(Component c)
           
 Insets MetalBorders.InternalFrameBorder.getBorderInsets(Component c)
           
 Insets MetalBorders.PaletteBorder.getBorderInsets(Component c)
           
 Insets MetalBorders.OptionDialogBorder.getBorderInsets(Component c)
           
 Insets MetalBorders.MenuBarBorder.getBorderInsets(Component c)
           
 Insets MetalBorders.MenuItemBorder.getBorderInsets(Component c)
           
 Insets MetalBorders.PopupMenuBorder.getBorderInsets(Component c)
           
 Insets MetalBorders.ToolBarBorder.getBorderInsets(Component c)
           
 Insets MetalBorders.ScrollPaneBorder.getBorderInsets(Component c)
           
 Insets MetalBorders.TableHeaderBorder.getBorderInsets(Component c)
           
 Insets MetalBorders.Flush3DBorder.getBorderInsets(Component c, Insets newInsets)
           
 Insets MetalBorders.ButtonBorder.getBorderInsets(Component c, Insets newInsets)
           
 Insets MetalBorders.InternalFrameBorder.getBorderInsets(Component c, Insets newInsets)
           
 Insets MetalBorders.PaletteBorder.getBorderInsets(Component c, Insets newInsets)
           
 Insets MetalBorders.OptionDialogBorder.getBorderInsets(Component c, Insets newInsets)
           
 Insets MetalBorders.MenuBarBorder.getBorderInsets(Component c, Insets newInsets)
           
 Insets MetalBorders.MenuItemBorder.getBorderInsets(Component c, Insets newInsets)
           
 Insets MetalBorders.PopupMenuBorder.getBorderInsets(Component c, Insets newInsets)
           
 Insets MetalBorders.ToolBarBorder.getBorderInsets(Component c, Insets newInsets)
           
 

Insets 型のパラメータを持つ javax.swing.plaf.metal のメソッド
 Insets MetalBorders.Flush3DBorder.getBorderInsets(Component c, Insets newInsets)
           
 Insets MetalBorders.ButtonBorder.getBorderInsets(Component c, Insets newInsets)
           
 Insets MetalBorders.InternalFrameBorder.getBorderInsets(Component c, Insets newInsets)
           
 Insets MetalBorders.PaletteBorder.getBorderInsets(Component c, Insets newInsets)
           
 Insets MetalBorders.OptionDialogBorder.getBorderInsets(Component c, Insets newInsets)
           
 Insets MetalBorders.MenuBarBorder.getBorderInsets(Component c, Insets newInsets)
           
 Insets MetalBorders.MenuItemBorder.getBorderInsets(Component c, Insets newInsets)
           
 Insets MetalBorders.PopupMenuBorder.getBorderInsets(Component c, Insets newInsets)
           
 Insets MetalBorders.ToolBarBorder.getBorderInsets(Component c, Insets newInsets)
           
protected  void MetalTreeUI.paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
           
protected  void MetalTreeUI.paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)
           
 

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

Insets を返す javax.swing.plaf.synth のメソッド
 Insets SynthStyle.getInsets(SynthContext context, Insets insets)
          サイズ変更情報の計算に使用される Insets を返します。
 

Insets 型のパラメータを持つ javax.swing.plaf.synth のメソッド
 Insets SynthStyle.getInsets(SynthContext context, Insets insets)
          サイズ変更情報の計算に使用される Insets を返します。
 

javax.swing.text での Insets の使用
 

Insets を返す javax.swing.text のメソッド
 Insets JTextComponent.getMargin()
          テキストコンポーネントの境界とそのテキストの間のマージンを返します。
 

Insets 型のパラメータを持つ javax.swing.text のメソッド
 void JTextComponent.setMargin(Insets m)
          テキストコンポーネントの境界とそのテキストの間のマージン空白を設定します。
 


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 も参照してください。