Java プラットフォーム 1.2

javax.swing.border
クラス AbstractBorder

java.lang.Object
  |
  +--javax.swing.border.AbstractBorder
直接の既知のサブクラス:
BasicBorders.ButtonBorder, BasicBorders.FieldBorder, BasicBorders.MarginBorder, BasicBorders.MenuBarBorder, BevelBorder, CompoundBorder, EmptyBorder, EtchedBorder, LineBorder, MetalBorders.ButtonBorder, MetalBorders.Flush3DBorder, MetalBorders.InternalFrameBorder, MetalBorders.MenuBarBorder, MetalBorders.MenuItemBorder, MetalBorders.PopupMenuBorder, MetalBorders.ScrollPaneBorder, 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 の現在の Insets で、insets パラメータを初期化し直します。
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)
          static メソッドを呼び出す簡易メソッドです。
 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

getBorderInsets

public Insets getBorderInsets(Component c)
このデフォルト実装は getBorderMargins の値を返します。
定義:
インタフェース Border 内の getBorderInsets

getBorderInsets

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

isBorderOpaque

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

getInteriorRectangle

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

getInteriorRectangle

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

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.