java.awt
Class Insets
java.lang.Object
|
+--java.awt.Insets
All Implemented Interfaces:
Cloneable, Serializable
This class represents the "margin" or space around a container.
Authors:- Aaron M. Renn <arenn@urbanophile.com>
- Eric Blake <ebb9@email.byu.edu>
Insets(int top, int left, int bottom, int right)
|
bottom
public int bottom
The gap from the bottom.
left
public int left
The gap from the left.
right
public int right
The gap from the right.
top
public int top
The gap from the top.
Insets
public Insets(int top, int left, int bottom, int right)
Initializes a new instance of Inset
with the specified
inset values.
Parameters:
clone
public Object clone()
Returns a copy of this object.
Returns:
equals
public boolean equals(java.lang.Object obj)
Tests whether this object is equal to the specified object. The other
object must be an instance of Insets with identical field values.
Parameters:
Returns:
- true if the specified object is equal to this one
hashCode
public int hashCode()
Returns a hashcode for this instance. The formula is unspecified, but
appears to be XXX what is it?
.
Returns:
toString
public String toString()
Returns a string representation of this object, which will be non-null.
The format is unspecified, but appears to be XXX what is it?
.
Returns:
- a string representation of this object