Home » openjdk-7 » java » awt » [javadoc | source]
java.awt
public class: Insets [javadoc | source]
java.lang.Object
   java.awt.Insets

All Implemented Interfaces:
    Cloneable, java$io$Serializable

Direct Known Subclasses:
    InsetsUIResource

An Insets 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 a title.
Field Summary
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. 
Constructor:
 public Insets(int top,
    int left,
    int bottom,
    int right) 
Method from java.awt.Insets Summary:
clone,   equals,   hashCode,   set,   toString
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 of Insets are equal if the four integer values of the fields top, left, bottom, and right are all equal.
 public int hashCode() 
    Returns the hash code for this Insets.
 public  void set(int top,
    int left,
    int bottom,
    int right) 
    Set top, left, bottom, and right to the specified values
 public String toString() 
    Returns a string representation of this Insets object. 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 null.