public class Insets extends java.lang.Object implements java.lang.Cloneable, java.io.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 |
|---|---|
java.lang.Object |
clone()
Returns a copy of this object.
|
boolean |
equals(java.lang.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.
|
java.lang.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(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to test againstObject.hashCode()public int hashCode()
XXX what is it? .hashCode in class java.lang.ObjectObject.equals(Object),
System.identityHashCode(Object)public java.lang.String toString()
toString in class java.lang.ObjectObject.getClass(),
Object.hashCode(),
Class.getName(),
Integer.toHexString(int)public java.lang.Object clone()
clone in class java.lang.ObjectCloneable