public interface Border
Swingコンポーネント・セットでコンポーネントの周囲に(装飾的、あるいは単なる区切りの)領域を作成するメカニズムとしては、Insetsではなくボーダーを使ってください。
使用上の注意:
setInsetsが置き換えられる)。
BorderFactory, EmptyBorder, CompoundBorder| 修飾子と型 | メソッドと説明 |
|---|---|
Insets |
getBorderInsets(Component c)
ボーダーのイン・セットを返します。
|
boolean |
isBorderOpaque()
ボーダーが不透明かどうかを返します。
|
void |
paintBorder(Component c, Graphics g, int x, int y, int width, int height)
指定されたコンポーネントのボーダーを、指定された位置およびサイズでペイントします。
|
void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
c - このボーダーがペイントされるコンポーネントg - ペイント・グラフィックスx - ペイントされるボーダーのx座標y - ペイントされるボーダーのy座標width - ペイントされるボーダーの幅height - ペイントされるボーダーの高さInsets getBorderInsets(Component c)
c - このボーダーのイン・セットの値を適用するコンポーネントboolean isBorderOpaque()
バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright© 1993, 2014, Oracle and/or its affiliates. All rights reserved.