JavaTM 2 Platform
Standard Ed. 5.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.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 バージョン 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 AbstractBorder.getBorderInsets(Component c)
          このデフォルト実装は、topleftbottom、および right フィールドが 0 に設定される新規 Insets インスタンスを返します。
 Insets EmptyBorder.getBorderInsets(Component c)
          ボーダのインセットの値を返します。
 Insets CompoundBorder.getBorderInsets(Component c)
          外側ボーダの insets の値を内側ボーダの insets に加算して、複合ボーダの insets の値を返します。
 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 AbstractBorder.getBorderInsets(Component c, Insets insets)
          インセットパラメータを、この Border の現在のインセットで初期化し直します。
 Insets EmptyBorder.getBorderInsets(Component c, Insets insets)
          insets パラメータを、この Border の現在の Insets で初期化し直します。
 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 AbstractBorder.getBorderInsets(Component c, Insets insets)
          インセットパラメータを、この Border の現在のインセットで初期化し直します。
 Insets EmptyBorder.getBorderInsets(Component c, Insets insets)
          insets パラメータを、この Border の現在の Insets で初期化し直します。
 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)
          指定された 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.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() で描画されるボーダが占める容量を返します。
 Insets BasicToolBarUI.DragWindow.getInsets()
           
protected  Insets BasicComboBoxUI.getInsets()
          JComboBox からインセットを取得します。
 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 でない限り、左インセットを返します。
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 を返す 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 2 Platform
Standard Ed. 5.0

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

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