JavaTM 2
Platform
Std. Ed. v1.4.0

クラス
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 デフォルトの Look & Feel である Java Look & Feel (コード名は Metal) に従って作成されたユーザインタフェースオブジェクトを提供します。  
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 Toolkit.getScreenInsets(GraphicsConfiguration gc)
          スクリーンのインセットを返します。
 

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

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

javax.swing.border での Insets の使用
 

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

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

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

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 BasicSliderUI.focusInsets
           
protected  Insets BasicSliderUI.insetCache
           
protected  Insets BasicTabbedPaneUI.tabInsets
           
protected  Insets BasicTabbedPaneUI.selectedTabPadInsets
           
protected  Insets BasicTabbedPaneUI.tabAreaInsets
           
protected  Insets BasicTabbedPaneUI.contentBorderInsets
           
 

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

Insets 型のパラメータを持つ javax.swing.plaf.basic のメソッド
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)
          行のレンダリング部分をペイントします。
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  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)
           
 Insets BasicBorders.RadioButtonBorder.getBorderInsets(Component c, Insets insets)
           
 Insets BasicBorders.ButtonBorder.getBorderInsets(Component c, Insets insets)
           
 Insets BasicBorders.ToggleButtonBorder.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 static void BasicTabbedPaneUI.rotateInsets(Insets topInsets, Insets targetInsets, int targetPlacement)
           
protected static void BasicTabbedPaneUI.rotateInsets(Insets topInsets, Insets targetInsets, int targetPlacement)
           
 

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.PaletteBorder.getBorderInsets(Component c)
           
 Insets MetalBorders.PaletteBorder.getBorderInsets(Component c, Insets newInsets)
           
 Insets MetalBorders.InternalFrameBorder.getBorderInsets(Component c)
           
 Insets MetalBorders.InternalFrameBorder.getBorderInsets(Component c, Insets newInsets)
           
 Insets MetalBorders.ScrollPaneBorder.getBorderInsets(Component c)
           
 Insets MetalBorders.Flush3DBorder.getBorderInsets(Component c)
           
 Insets MetalBorders.Flush3DBorder.getBorderInsets(Component c, Insets newInsets)
           
 Insets MetalBorders.ButtonBorder.getBorderInsets(Component c)
           
 Insets MetalBorders.ButtonBorder.getBorderInsets(Component c, Insets newInsets)
           
 Insets MetalBorders.OptionDialogBorder.getBorderInsets(Component c)
           
 Insets MetalBorders.OptionDialogBorder.getBorderInsets(Component c, Insets newInsets)
           
 Insets MetalBorders.MenuBarBorder.getBorderInsets(Component c)
           
 Insets MetalBorders.MenuBarBorder.getBorderInsets(Component c, Insets newInsets)
           
 Insets MetalBorders.MenuItemBorder.getBorderInsets(Component c)
           
 Insets MetalBorders.MenuItemBorder.getBorderInsets(Component c, Insets newInsets)
           
 Insets MetalBorders.PopupMenuBorder.getBorderInsets(Component c)
           
 Insets MetalBorders.PopupMenuBorder.getBorderInsets(Component c, Insets newInsets)
           
 Insets MetalBorders.ToolBarBorder.getBorderInsets(Component c)
           
 Insets MetalBorders.ToolBarBorder.getBorderInsets(Component c, Insets newInsets)
           
 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)
           
 Insets MetalBorders.PaletteBorder.getBorderInsets(Component c, Insets newInsets)
           
 Insets MetalBorders.InternalFrameBorder.getBorderInsets(Component c, Insets newInsets)
           
 Insets MetalBorders.Flush3DBorder.getBorderInsets(Component c, Insets newInsets)
           
 Insets MetalBorders.ButtonBorder.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)
           
 

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.4.0

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

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