|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Insets
public class Insets
This class represents the "margin" or space around a container.
Field Summary | |
---|---|
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 Summary | |
---|---|
Insets(int top,
int left,
int bottom,
int right)
Initializes a new instance of Inset with the specified
inset values. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int top
public int left
public int bottom
public int right
Constructor Detail |
---|
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 insetMethod Detail |
---|
public 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 Object
obj
- the object to test against
Object.hashCode()
public int hashCode()
XXX what is it?
.
hashCode
in class Object
Object.equals(Object)
,
System.identityHashCode(Object)
public String toString()
toString
in class Object
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)
public Object clone()
clone
in class Object
Cloneable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |