Java プラットフォーム 1.2

クラス
java.awt.Insets の使用

Insets を使用するパッケージ
java.awt このパッケージには、ユーザインタフェースの作成と、グラフィックスとイメージのペイントのためのクラスがすべて含まれています。 
java.awt.dnd ドラッグ&ドロップ操作をサポートするためのインタフェースおよびクラスを提供します。 
javax.swing 可能な限りすべてのプラットフォームで同じように機能する「軽量」コンポーネント (Java 言語全体で共通) のセットを提供します。 
javax.swing.border Swing コンポーネントの周囲に各種のボーダを描画するための、クラスおよびインタフェースを提供します。 
javax.swing.plaf 1 つのインタフェースおよび多くの抽象クラスを提供しており、Swing は、プラグイン可能な Look & Feel 機能を実現するためにこれらのクラスを利用します。 
javax.swing.plaf.basic 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.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()
          このコンポーネントでボーダが設定されている場合は、ボーダのインセットを返します。
 Insets JComponent.getInsets(Insets insets)
          このコンポーネントのインセット値を格納する Insets オブジェクトを返します。
static Insets UIManager.getInsets(Object key)
          デフォルトテーブルから Insets オブジェクトを返します。
 Insets UIDefaults.getInsets(Object key)
          key の値が Insets の場合はそれを返し、そうでない場合は null を返します。
 Insets JToolBar.getMargin()
          ツールバーのボーダとそのボタンの間のマージンを返します。
 Insets AbstractButton.getMargin()
          ボタンのボーダとラベルの間のマージンを返します。
 Insets JViewport.getInsets()
          JViewPort ではボーダがサポートされていないので、インセット (ボーダ) の寸法を (0,0,0,0) として返します。
 Insets JViewport.getInsets(Insets insets)
          この JViewPort のインセット値を格納する Insets オブジェクトを返します。
 Insets JMenuBar.getMargin()
          メニューバーのボーダとメニュー間のマージンを返します。
 Insets JPopupMenu.getMargin()
          ポップアップメニューのボーダと内容の間にあるマージンの値を返します。
 

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

javax.swing.border における Insets の使用方法
 

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

Insets のパラメータを持つ javax.swing.border におけるメソッド
 Insets AbstractBorder.getBorderInsets(Component c, Insets insets)
          Border の現在の Insets で、insets パラメータを初期化し直します。
 Insets TitledBorder.getBorderInsets(Component c, Insets insets)
          insets パラメータを、この Border の現在の Insets で初期化し直します。
 Insets LineBorder.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 BevelBorder.getBorderInsets(Component c, Insets insets)
          insets パラメータを、この Border の現在の Insets で初期化し直します。
 Insets EtchedBorder.getBorderInsets(Component c, Insets insets)
          insets パラメータを、この Border の現在の Insets で初期化し直します。
 

Insets のパラメータを持つ javax.swing.border におけるコンストラクタ
EmptyBorder.EmptyBorder(Insets insets)
          指定された 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.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)
           
 Insets BasicDesktopIconUI.getInsets(JComponent c)
           
 Insets BasicToolBarUI.DragWindow.getInsets()
           
 Insets BasicSplitPaneUI.getInsets(JComponent jc)
          インセットを返します。
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)
           
protected  Insets BasicComboBoxUI.getInsets()
          JComboBox からインセットを取得します。
 

Insets のパラメータを持つ javax.swing.plaf.basic におけるメソッド
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  int BasicSplitPaneUI.BasicVerticalLayoutManager.getAvailableSize(Dimension containerSize, Insets insets)
          コンテナのサイズとインセットに基づいて有効な高さを返します。
protected  int BasicSplitPaneUI.BasicVerticalLayoutManager.getInitialLocation(Insets insets)
          Insets が null でない限り、上インセットを返します。
protected  void BasicSplitPaneUI.BasicVerticalLayoutManager.setComponentToSize(Component c, int size, int location, Insets insets, Dimension containerSize)
          x 位置を insets.left、y 位置を location に配置することにより、コンポーネント c の高さを size に設定し、その幅を containersize.width から左インセットと右インセットを減算した値に設定します。
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  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 MetalBorders.ButtonBorder.borderInsets
           
protected static Insets MetalBorders.MenuBarBorder.borderInsets
           
protected static Insets MetalBorders.MenuItemBorder.borderInsets
           
protected static Insets MetalBorders.PopupMenuBorder.borderInsets
           
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.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 のパラメータを持つ 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)
          テキストコンポーネントの境界とそのテキストの間のマージン空白を設定します。
 


Java プラットフォーム 1.2

バグや機能要求の報告
新しい javadoc の表示についてのコメントやご提案
Java は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.