クラスjava.awt.Insets
の使用
Insetsを使用するパッケージ
パッケージ
説明
ユーザー・インタフェースの作成およびグラフィックスとイメージのペイント用のすべてのクラスを含みます。
ドラッグ&ドロップ操作は、多くのグラフィカル・ユーザー・インタフェース・システムで見られる直接的な操作ジェスチャで、GUIの表現要素に論理的に関連付けられた2つのエンティティ間で情報を変換するメカニズムを提供します。
すべてのプラットフォーム上で可能なかぎり同じように機能する「軽量」(Java共通言語)コンポーネントのセットを提供します。
Swingコンポーネントの周囲に各種ボーダーを描画するためのクラスおよびインタフェースを提供します。
1つのインタフェースおよび多くのabstractクラスを提供しており、Swingはプラグイン可能なLook & Feel機能を提供するためにこれらを利用します。
基本Look & Feelに従って構築されたユーザー・インタフェース・オブジェクトを提供します。
デフォルトのLook & FeelであるJava Look & Feel (以前のコード名はMetal)に従って構築されたユーザー・インタフェース・オブジェクトを提供します。
クロス・プラットフォームのNimbus Look & Feelに従って構築されたユーザー・インタフェース・オブジェクトを提供します。
Synthは、すべてのペイントが委譲されるスキン設定可能なLook & Feelです。
編集可能なテキスト・コンポーネントと編集不能なテキスト・コンポーネントを処理するクラスとインタフェースを提供します。
-
java.awtでのInsetsの使用
修飾子と型メソッド説明Container.getInsets()コンテナの境界のサイズを示す、このコンテナのイン・セットを判定します。Toolkit.getScreenInsets(GraphicsConfiguration gc) スクリーンのイン・セットを返します。Container.insets()非推奨。修飾子コンストラクタ説明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のメソッド修飾子と型メソッド説明Autoscroll.getAutoscrollInsets()このメソッドは、実装しているComponentの幾何学的図形を基準に、自動スクロール領域またはボーダーを記述したInsetsを返します。 -
javax.swingでのInsetsの使用
Insetsを返すjavax.swingのメソッド修飾子と型メソッド説明JComponent.getInsets()このコンポーネントでボーダーが設定されている場合はボーダーのイン・セットを返し、それ以外の場合はsuper.getInsetsを呼び出します。このコンポーネントのイン・セット値を含むInsetsオブジェクトを返します。final InsetsJViewport.getInsets()JViewportではボーダーがサポートされていないため、イン・セット(ボーダー)の寸法を(0,0,0,0)として返します。final InsetsこのJViewportのイン・セット値を含むInsetsオブジェクトを返します。keyの値がInsetsである場合はそれを返し、それ以外の場合はnullを返します。指定されたLocaleのkeyの値がInsetsである場合はそれを返し、それ以外の場合はnullを返します。static InsetsデフォルトからInsetsオブジェクトを返します。static Insetsデフォルトから、指定されたロケールに適したInsetsオブジェクトを返します。AbstractButton.getMargin()ボタンのボーダーとラベルの間のマージンを返します。JMenuBar.getMargin()メニュー・バーのボーダーとそのメニューの間のマージンを返します。JPopupMenu.getMargin()ポップアップ・メニューのボーダーとコンテナの間にあるマージンを返します(ピクセル単位)。JToolBar.getMargin()ツールバーのボーダーとそのボタンの間のマージンを返します。型Insetsのパラメータを持つjavax.swingのメソッド修飾子と型メソッド説明このコンポーネントのイン・セット値を含むInsetsオブジェクトを返します。final InsetsこのJViewportのイン・セット値を含むInsetsオブジェクトを返します。voidボタンのボーダーとラベルの間のマージンを設定します。voidメニュー・バーのボーダーとそのメニューの間のマージンを設定します。voidツールバーのボーダーとそのボタンの間のマージンを設定します。 -
javax.swing.borderでのInsetsの使用
Insetsを返すjavax.swing.borderのメソッド修飾子と型メソッド説明AbstractBorder.getBorderInsets(Component c) このデフォルトの実装は、AbstractBorder.getBorderInsets(Component,Insets)メソッドによって初期化される新しいInsetsオブジェクトを返します。AbstractBorder.getBorderInsets(Component c, Insets insets) インセット・パラメータを、このBorderの現在のイン・セットで初期化し直します。BevelBorder.getBorderInsets(Component c, Insets insets) insetsパラメータを、このBorderの現在のInsetsで初期化し直します。Border.getBorderInsets(Component c) ボーダーのイン・セットを返します。CompoundBorder.getBorderInsets(Component c, Insets insets) insetsパラメータを、このBorderの現在のInsetsで初期化し直します。EmptyBorder.getBorderInsets()ボーダーのイン・セットを返します。EmptyBorder.getBorderInsets(Component c, Insets insets) insetsパラメータを、このBorderの現在のInsetsで初期化し直します。EtchedBorder.getBorderInsets(Component c, Insets insets) insetsパラメータを、このBorderの現在のInsetsで初期化し直します。LineBorder.getBorderInsets(Component c, Insets insets) insetsパラメータを、このBorderの現在のInsetsで初期化し直します。MatteBorder.getBorderInsets()ボーダーのイン・セットを返します。MatteBorder.getBorderInsets(Component c, Insets insets) insetsパラメータを、このBorderの現在のInsetsで初期化し直します。SoftBevelBorder.getBorderInsets(Component c, Insets insets) insetsパラメータを、このBorderの現在のInsetsで初期化し直します。StrokeBorder.getBorderInsets(Component c, Insets insets) insetsパラメータを、このボーダーの現在のイン・セットで初期化し直します。TitledBorder.getBorderInsets(Component c, Insets insets) insetsパラメータを、このBorderの現在のInsetsで初期化し直します。型Insetsのパラメータを持つjavax.swing.borderのメソッド修飾子と型メソッド説明AbstractBorder.getBorderInsets(Component c, Insets insets) インセット・パラメータを、このBorderの現在のイン・セットで初期化し直します。BevelBorder.getBorderInsets(Component c, Insets insets) insetsパラメータを、このBorderの現在のInsetsで初期化し直します。CompoundBorder.getBorderInsets(Component c, Insets insets) insetsパラメータを、このBorderの現在のInsetsで初期化し直します。EmptyBorder.getBorderInsets(Component c, Insets insets) insetsパラメータを、このBorderの現在のInsetsで初期化し直します。EtchedBorder.getBorderInsets(Component c, Insets insets) insetsパラメータを、このBorderの現在のInsetsで初期化し直します。LineBorder.getBorderInsets(Component c, Insets insets) insetsパラメータを、このBorderの現在のInsetsで初期化し直します。MatteBorder.getBorderInsets(Component c, Insets insets) insetsパラメータを、このBorderの現在のInsetsで初期化し直します。SoftBevelBorder.getBorderInsets(Component c, Insets insets) insetsパラメータを、このBorderの現在のInsetsで初期化し直します。StrokeBorder.getBorderInsets(Component c, Insets insets) insetsパラメータを、このボーダーの現在のイン・セットで初期化し直します。TitledBorder.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のサブクラスInsetsを返すjavax.swing.plafのメソッド型Insetsのパラメータを持つjavax.swing.plafのコンストラクタ -
javax.swing.plaf.basicでのInsetsの使用
Insetsとして宣言されたjavax.swing.plaf.basicのフィールド修飾子と型フィールド説明protected InsetsBasicTabbedPaneUI.contentBorderInsetsコンテンツのボーダー・インセットprotected InsetsBasicSliderUI.focusInsetsフォーカス・インセットprotected InsetsBasicSliderUI.insetCacheインセット・キャッシュprotected InsetsBasicComboBoxUI.paddingこれらのイン・セットは、「選択された」項目をコンボボックスに配置し、ペイントする際に、セル・レンダラ周囲のパディングとして機能します。protected InsetsBasicTabbedPaneUI.selectedTabPadInsets選択されたタブ・インセットprotected InsetsBasicTabbedPaneUI.tabAreaInsetsタブ領域のインセットprotected InsetsBasicTabbedPaneUI.tabInsetsタブ・インセットInsetsを返すjavax.swing.plaf.basicのメソッド修飾子と型メソッド説明BasicBorders.SplitPaneBorder.getBorderInsets(Component c) protected InsetsBasicTabbedPaneUI.getContentBorderInsets(int tabPlacement) コンテンツ・ボーダー・インセットを返します。static InsetsBasicGraphicsUtils.getEtchedInsets()drawEtchedRect()によって描画されるボーダーで占有される領域の量を返します。static InsetsBasicGraphicsUtils.getGrooveInsets()drawGroove()によって描画されるボーダーで占有される領域の量を返します。protected InsetsBasicComboBoxUI.getInsets()JComboBoxからイン・セットを取得します。BasicDesktopIconUI.getInsets(JComponent c) イン・セットを返します。BasicSplitPaneDivider.getInsets()このコンポーネントでボーダーが設定されている場合は、ボーダーのイン・セットを返します。そうでない場合はsuper.getInsetsを呼び出します。BasicSplitPaneUI.getInsets(JComponent jc) イン・セットを返します。protected InsetsBasicTabbedPaneUI.getSelectedTabPadInsets(int tabPlacement) 選択したタブ・パッド・インセットを返します。protected InsetsBasicTabbedPaneUI.getTabAreaInsets(int tabPlacement) タブ・エリア・インセットを返します。protected InsetsBasicTabbedPaneUI.getTabInsets(int tabPlacement, int tabIndex) タブ・インセットを返します。型Insetsのパラメータを持つjavax.swing.plaf.basicのメソッド修飾子と型メソッド説明protected intBasicProgressBarUI.getAmountFull(Insets b, int width, int height) モデルから集めた完了パーセント情報に基づいて、塗りつぶすべき進捗バーの量を決定します。protected intBasicSplitPaneUI.BasicHorizontalLayoutManager.getAvailableSize(Dimension containerSize, Insets insets) コンテナのサイズとInsetsに基づいて使用可能な幅を返します。protected intBasicSplitPaneUI.BasicHorizontalLayoutManager.getInitialLocation(Insets insets) Insetsがnullの場合、0が返されないかぎり、左のインセットを返します。protected voidBasicTreeUI.paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) 行の展開(切り替え)部分をペイントします。protected voidBasicTreeUI.paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) 脚の水平部分をペイントします。protected voidBasicTreeUI.paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) 行のレンダラ部分をペイントします。protected voidBasicProgressBarUI.paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b) 進捗文字列をペイントします。protected voidBasicTreeUI.paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path) 脚の垂直部分をペイントします。protected static voidBasicTabbedPaneUI.rotateInsets(Insets topInsets, Insets targetInsets, int targetPlacement) インセットを回転します。protected voidBasicSplitPaneUI.BasicHorizontalLayoutManager.setComponentToSize(Component c, int size, int location, Insets insets, Dimension containerSize) コンポーネントcの幅をsizeに設定し、そのxロケーションをlocationに、yをinsets.topに、高さを上下のインセットより小さいcontainerSize.heightに設定します。 -
javax.swing.plaf.metalでのInsetsの使用
Insetsとして宣言されたjavax.swing.plaf.metalのフィールド修飾子と型フィールド説明protected static InsetsMetalBorders.ButtonBorder.borderInsetsボーダー・インセット。protected static InsetsMetalBorders.MenuBarBorder.borderInsetsボーダー・インセット。protected static InsetsMetalBorders.MenuItemBorder.borderInsetsボーダー・インセット。protected static InsetsMetalBorders.PopupMenuBorder.borderInsetsボーダー・インセット。protected InsetsMetalBorders.TableHeaderBorder.editorBorderInsetsボーダー・インセット。protected static InsetsMetalComboBoxEditor.editorBorderInsetsデフォルトのエディタのボーダーのInsetsです。 -
javax.swing.plaf.nimbusでのInsetsの使用
Insetsを返すjavax.swing.plaf.nimbusのメソッド型Insetsのパラメータを持つjavax.swing.plaf.nimbusのメソッド型Insetsのパラメータを持つjavax.swing.plaf.nimbusのコンストラクタ修飾子コンストラクタ説明PaintContext(Insets insets, Dimension canvasSize, boolean inverted) キャッシュされたイメージをキャッシュまたはスケーリングしようとしない、新しいPaintContextを作成します。PaintContext(Insets insets, Dimension canvasSize, boolean inverted, AbstractRegionPainter.PaintContext.CacheMode cacheMode, double maxH, double maxV) 新しいPaintContextを作成します。 -
javax.swing.plaf.synthでのInsetsの使用
Insetsを返すjavax.swing.plaf.synthのメソッド修飾子と型メソッド説明SynthStyle.getInsets(SynthContext context, Insets insets) サイズ変更情報の計算に使用されるInsetsを返します。型Insetsのパラメータを持つjavax.swing.plaf.synthのメソッド修飾子と型メソッド説明SynthStyle.getInsets(SynthContext context, Insets insets) サイズ変更情報の計算に使用されるInsetsを返します。 -
javax.swing.textでのInsetsの使用
Insetsを返すjavax.swing.textのメソッド型Insetsのパラメータを持つjavax.swing.textのメソッド
getInsets()に置き換えられています。