public class Insets extends Object implements Cloneable, Serializable
| Modifier and Type | Field and Description |
|---|---|
int |
bottom
The gap from the bottom.
|
int |
left
The gap from the left.
|
int |
right
The gap from the right.
|
int |
top
The gap from the top.
|
| Constructor and Description |
|---|
Insets(int top,
int left,
int bottom,
int right)
Initializes a new instance of
Inset with the specified
inset values. |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Returns a copy of this object.
|
boolean |
equals(Object obj)
Tests whether this object is equal to the specified object.
|
int |
hashCode()
Returns a hashcode for this instance.
|
void |
set(int top,
int left,
int bottom,
int right)
Set the contents of this Insets object to the specified values.
|
String |
toString()
Returns a string representation of this object, which will be non-null.
|
public int top
public int left
public int bottom
public int right
public Insets(int top, int left, int bottom, int right)
Inset with the specified
inset values.top - the top insetleft - the left insetbottom - the bottom insetright - the right insetpublic void set(int top, int left, int bottom, int right)
top - the top insetleft - the left insetbottom - the bottom insetright - the right insetpublic boolean equals(Object obj)
equals in class Objectobj - the object to test againstObject.hashCode()public int hashCode()
XXX what is it? .hashCode in class ObjectObject.equals(Object),
System.identityHashCode(Object)public String toString()
toString in class ObjectObject.getClass(),
Object.hashCode(),
Class.getName(),
Integer.toHexString(int)