JavaTM 2 Platform
Std. Ed. v1.3

javax.swing.border
クラス AbstractBorder

java.lang.Object
  |
  +--javax.swing.border.AbstractBorder
すべての実装インタフェース:
Border, Serializable
直系の既知のサブクラス:
BasicBorders.ButtonBorder, BasicBorders.FieldBorder, BasicBorders.MarginBorder, BasicBorders.MenuBarBorder, BevelBorder, CompoundBorder, EmptyBorder, EtchedBorder, LineBorder, MetalBorders.ButtonBorder, MetalBorders.Flush3DBorder, MetalBorders.InternalFrameBorder, MetalBorders.MenuBarBorder, MetalBorders.MenuItemBorder, MetalBorders.OptionDialogBorder, MetalBorders.PaletteBorder, MetalBorders.PopupMenuBorder, MetalBorders.ScrollPaneBorder, MetalBorders.TableHeaderBorder, MetalBorders.ToolBarBorder, TitledBorder

public abstract class AbstractBorder
extends Object
implements Border, Serializable

サイズ指定のない空のボーダを実装するクラスです。他のボーダのクラスを簡単に派生できる、便利な基底クラスを提供します。

警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。今後の Swing リリースでは、長期間の持続性をサポートする予定です。

関連項目:
直列化された形式

コンストラクタの概要
AbstractBorder()
           
 
メソッドの概要
 Insets getBorderInsets(Component c)
          このデフォルト実装は getBorderMargins の値を返します。
 Insets getBorderInsets(Component c, Insets insets)
          インセットパラメータを、この Border の現在のインセットで初期化し直します。
static Rectangle getInteriorRectangle(Component c, Border b, int x, int y, int width, int height)
          ボーダのインセットから引数の値を減算して矩形を返します。
 Rectangle getInteriorRectangle(Component c, int x, int y, int width, int height)
          静的メソッドを呼び出す簡易メソッドです。
 boolean isBorderOpaque()
          このデフォルト実装は false を返します。
 void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
          このデフォルト実装では、ペイントを行いません。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

AbstractBorder

public AbstractBorder()
メソッドの詳細

paintBorder

public void paintBorder(Component c,
                        Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
このデフォルト実装では、ペイントを行いません。
定義:
インタフェース Border 内の paintBorder
インタフェース javax.swing.border.Border からコピーされたタグ:
パラメータ:
c - このボーダがペイントされるコンポーネント
g - ペイントのグラフィックス
x - ペイントされたボーダの x 座標
y - ペイントされたボーダの y 座標
width - ペイントされたボーダの幅
height - ペイントされたボーダの高さ

getBorderInsets

public Insets getBorderInsets(Component c)
このデフォルト実装は getBorderMargins の値を返します。
定義:
インタフェース Border 内の getBorderInsets
インタフェース javax.swing.border.Border からコピーされたタグ:
パラメータ:
c - このボーダのインセットの値を適用するコンポーネント

getBorderInsets

public Insets getBorderInsets(Component c,
                              Insets insets)
インセットパラメータを、この Border の現在のインセットで初期化し直します。
パラメータ:
c - このボーダのインセットの値を適用するコンポーネント
insets - 初期化し直されるオブジェクト

isBorderOpaque

public boolean isBorderOpaque()
このデフォルト実装は false を返します。
定義:
インタフェース Border 内の isBorderOpaque

getInteriorRectangle

public Rectangle getInteriorRectangle(Component c,
                                      int x,
                                      int y,
                                      int width,
                                      int height)
静的メソッドを呼び出す簡易メソッドです。

getInteriorRectangle

public static Rectangle getInteriorRectangle(Component c,
                                             Border b,
                                             int x,
                                             int y,
                                             int width,
                                             int height)
ボーダのインセットから引数の値を減算して矩形を返します。コンポーネントが描画して埋める領域を、ボーダと交差しないように決めるのに便利です。

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.