public class: Insets
All Implemented Interfaces:
Direct Known Subclasses:
object is a representation of the borders
of a container. It specifies the space that a container must leave
at each of its edges. The space can be a border, a blank space, or
|public int ||top ||The inset from the top.
This value is added to the Top of the rectangle
to yield a new location for the Top. |
|public int ||left ||The inset from the left.
This value is added to the Left of the rectangle
to yield a new location for the Left edge. |
|public int ||bottom ||The inset from the bottom.
This value is subtracted from the Bottom of the rectangle
to yield a new location for the Bottom. |
|public int ||right ||The inset from the right.
This value is subtracted from the Right of the rectangle
to yield a new location for the Right edge. |
public Insets(int top,
Creates and initializes a new
Insets object with the
specified top, left, bottom, and right insets.
top - the inset from the top.
left - the inset from the left.
bottom - the inset from the bottom.
right - the inset from the right.
|Methods from java.lang.Object:|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait|
|Method from java.awt.Insets Detail:|
public Object clone()
Create a copy of this object.
public boolean equals(Object obj)
Checks whether two insets objects are equal. Two instances
Insets are equal if the four integer values
of the fields
right are all equal.
public int hashCode()
Returns the hash code for this Insets.
public void set(int top,
Set top, left, bottom, and right to the specified values
public String toString()
Returns a string representation of this
This method is intended to be used only for debugging purposes, and
the content and format of the returned string may vary between
implementations. The returned string may be empty but may not be