JavaTM 2 Platform
Std. Ed. v1.3

クラス
java.awt.Insets の使用

Insets を使用しているパッケージ
java.awt このパッケージには、ユーザインタフェースの作成と、グラフィックスとイメージのペイントのためのクラスがすべて含まれています。 
java.awt.dnd ドラッグ&ドロップ操作は、多くのグラフィカルユーザインタフェースシステムで見られる直接的な操作ジェスチャーで、GUI の表現要素に論理的に関連した 2 つのエンティティ間で情報を変換する機構を提供します。 
javax.swing すべてのプラットフォームで可能な限り同じように機能する、「軽量」(Java 共通言語) コンポーネントのセットを提供します。 
javax.swing.border Swing コンポーネントの周囲に各種のボーダを描画するための、クラスおよびインタフェースを提供します。 
javax.swing.plaf 1 つのインタフェースおよび多くの抽象クラスを提供しており、Swing は、プラグイン可能な Look & Feel 機能を実現するためにこれらのクラスを利用します。 
javax.swing.plaf.basic 基本 Look & Feel に従って作成されたユーザインタフェースオブジェクトを提供します。 
javax.swing.plaf.metal このパッケージは、Metal の Look & Feel に従って構築されるユーザインタフェースオブジェクトを提供します。  
javax.swing.text 編集可能/編集不能テキストコンポーネントを処理するクラスとインタフェースを提供します。 
 

java.awt での Insets の使用
 

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

Insets を返す java.awt のメソッド
 Insets Container.getInsets()
          コンテナの境界のサイズを示す、このコンテナのインセットを判定します。
 Insets Container.insets()
          推奨されていません。 JDK バージョン 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 JComponent.getInsets(Insets insets)
          このコンポーネントのインセット値を格納する Insets オブジェクトを返します。
 Insets JViewport.getInsets()
          JViewport ではボーダがサポートされていないので、インセット (ボーダ) の寸法を (0,0,0,0) として返します。
 Insets JViewport.getInsets(Insets insets)
          この JViewport のインセット値を格納する Insets オブジェクトを返します。
 Insets AbstractButton.getMargin()
          ボタンのボーダとラベルの間のマージンを返します。
 Insets JPopupMenu.getMargin()
          ポップアップメニューのボーダと内容の間にあるマージンの値を返します (ピクセル単位)。
 Insets UIDefaults.getInsets(Object key)
          key の値が Insets の場合はそれを返し、そうでない場合は null を返します。
 Insets JToolBar.getMargin()
          ツールバーのボーダとそのボタンの間のマージンを返します。
 Insets JMenuBar.getMargin()
          メニューバーのボーダとそのメニューの間のマージンを返します。
static Insets UIManager.getInsets(Object key)
          デフォルトテーブルから Insets オブジェクトを返します。
 

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 AbstractBorder.getBorderInsets(Component c)
          このデフォルト実装は getBorderMargins の値を返します。
 Insets AbstractBorder.getBorderInsets(Component c, Insets insets)
          インセットパラメータを、この Border の現在のインセットで初期化し直します。
 Insets BevelBorder.getBorderInsets(Component c)
          ボーダのインセットの値を返します。
 Insets BevelBorder.getBorderInsets(Component c, Insets insets)
          insets パラメータを、この Border の現在の Insets で初期化し直します。
 Insets SoftBevelBorder.getBorderInsets(Component c)
          ボーダのインセットの値を返します。
 Insets EmptyBorder.getBorderInsets(Component c)
          ボーダのインセットの値を返します。
 Insets EmptyBorder.getBorderInsets(Component c, Insets insets)
          insets パラメータを、この Border の現在の Insets で初期化し直します。
 Insets EmptyBorder.getBorderInsets()
          ボーダのインセットの値を返します。
 Insets MatteBorder.getBorderInsets(Component c)
          ボーダのインセットの値を返します。
 Insets MatteBorder.getBorderInsets(Component c, Insets insets)
          insets パラメータを、この Border の現在の Insets で初期化し直します。
 Insets MatteBorder.getBorderInsets()
          ボーダのインセットの値を返します。
 Insets CompoundBorder.getBorderInsets(Component c, Insets insets)
          insets パラメータを、この Border の現在の Insets で初期化し直します。
 Insets CompoundBorder.getBorderInsets(Component c)
          外側ボーダの insets の値を内側ボーダの insets に加算して、複合ボーダの insets の値を返します。
 Insets LineBorder.getBorderInsets(Component c)
          ボーダのインセットの値を返します。
 Insets LineBorder.getBorderInsets(Component c, Insets insets)
          insets パラメータを、この Border の現在の Insets で初期化し直します。
 Insets EtchedBorder.getBorderInsets(Component c)
          ボーダのインセットの値を返します。
 Insets EtchedBorder.getBorderInsets(Component c, Insets insets)
          insets パラメータを、この Border の現在の Insets で初期化し直します。
 Insets TitledBorder.getBorderInsets(Component c)
          ボーダのインセットの値を返します。
 Insets TitledBorder.getBorderInsets(Component c, Insets insets)
          insets パラメータを、この Border の現在の Insets で初期化し直します。
 Insets Border.getBorderInsets(Component c)
          ボーダのインセットの値を返します。
 

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

Insets 型のパラメータを持つ javax.swing.border のコンストラクタ
EmptyBorder(Insets borderInsets)
          指定された insets の値を持つ、空のボーダを作成します。
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.tabInsets
           
protected  Insets BasicTabbedPaneUI.selectedTabPadInsets
           
protected  Insets BasicTabbedPaneUI.tabAreaInsets
           
protected  Insets BasicTabbedPaneUI.contentBorderInsets
           
protected  Insets BasicSliderUI.focusInsets
           
protected  Insets BasicSliderUI.insetCache
           
 

Insets を返す javax.swing.plaf.basic のメソッド
protected  Insets BasicTabbedPaneUI.getTabInsets(int tabPlacement, int tabIndex)
           
protected  Insets BasicTabbedPaneUI.getSelectedTabPadInsets(int tabPlacement)
           
protected  Insets BasicTabbedPaneUI.getTabAreaInsets(int tabPlacement)
           
protected  Insets BasicTabbedPaneUI.getContentBorderInsets(int tabPlacement)
           
static Insets BasicGraphicsUtils.getEtchedInsets()
          drawEtchedRect() で描画されたボーダが占める領域を返します。
static Insets BasicGraphicsUtils.getGrooveInsets()
          drawGroove() で描画されたボーダが占める領域を返します。
 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 BasicToolBarUI.DragWindow.getInsets()
           
protected  Insets BasicComboBoxUI.getInsets()
          JComboBox からインセットを取得します。
 Insets BasicSplitPaneUI.getInsets(JComponent jc)
          インセットを返します。
 Insets BasicSplitPaneDivider.getInsets()
          このコンポーネントでボーダが設定されている場合は、ボーダのインセットを返します。
 Insets BasicDesktopIconUI.getInsets(JComponent c)
           
 

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

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

Insets として宣言されている javax.swing.plaf.metal のフィールド
protected static Insets MetalComboBoxEditor.editorBorderInsets
           
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
           
 

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 型のパラメータを持つ javax.swing.plaf.metal のメソッド
protected  void MetalTreeUI.paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)
           
protected  void MetalTreeUI.paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
           
 

javax.swing.text での Insets の使用
 

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

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


JavaTM 2 Platform
Std. Ed. v1.3

バグや機能要求の報告
さらに詳しい API リファレンスおよび開発者ドキュメントについては、 Java 2 SDK SE Developer Documentation を参照してください。このドキュメントには、概念、用語の定義、回避策、 実用的なコード例など、開発者を対象にした詳細な解説が掲載されています。

Java、Java 2D、JDBC は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.