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 インセットで作成して初期化します。 |
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, 2013, Oracle and/or its affiliates. All rights reserved.