public class Insets extends Object implements Cloneable, Serializable
Insetsオブジェクトは、コンテナのボーダーの表現です。これは、コンテナが各エッジに残さなければならない空間を指定します。空間は、境界、空白空間、またはタイトルです。LayoutManager, Container, 直列化された形式| 修飾子と型 | フィールドと説明 |
|---|---|
int |
bottom
下部からのイン・セットです。
|
int |
left
左側からのイン・セットです。
|
int |
right
右側からのイン・セットです。
|
int |
top
上部からのイン・セットです。
|
| コンストラクタと説明 |
|---|
Insets(int top, int left, int bottom, int right)
新しい
Insetsオブジェクトを、指定されたtop、left、bottom、およびrightイン・セットで作成して初期化します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
Object |
clone()
このオブジェクトのコピーを作成します。
|
boolean |
equals(Object obj)
2つのインセット・オブジェクトが等しいかどうかを判定します。
|
int |
hashCode()
このInsetsのハッシュ・コードを返します。
|
void |
set(int top, int left, int bottom, int right)
top、left、bottom、およびrightに指定した値を設定します。
|
String |
toString()
この
Insetsオブジェクトの文字列表現を返します。 |
public int top
clone()public int left
clone()public int bottom
clone()public int right
clone()public Insets(int top,
int left,
int bottom,
int right)
Insetsオブジェクトを、指定されたtop、left、bottom、およびrightイン・セットで作成して初期化します。top - 上部からのイン・セット。left - 左側からのイン・セット。bottom - 下部からのイン・セット。right - 右側からのイン・セット。public void set(int top,
int left,
int bottom,
int right)
top - 上部からのイン・セット。left - 左側からのイン・セット。bottom - 下部からのイン・セット。right - 右側からのイン・セット。public boolean equals(Object obj)
Insetsの2つのインスタンスは、top、left、bottom、およびrightフィールドの4つの整数値がすべて等しい場合に等しくなります。equals、クラス: Objectobj - 比較対象の参照オブジェクト。true、それ以外の場合はfalse。Object.hashCode(), HashMappublic int hashCode()
hashCode、クラス: ObjectObject.equals(java.lang.Object), System.identityHashCode(java.lang.Object)public String toString()
Insetsオブジェクトの文字列表現を返します。このメソッドはデバッグ専用であり、返される文字列の内容および形式は実装によって異なる場合があります。返される文字列は空の場合がありますが、nullにはなりません。 バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright© 1993, 2014, Oracle and/or its affiliates. All rights reserved.