java.awt
Class Insets

java.lang.Object
  |
  +--java.awt.Insets
All Implemented Interfaces:
Cloneable

public class Insets
extends Object
implements Cloneable

The insets of a container. This class is used to layout containers.

See Also:
LayoutManager, Container

Field Summary
 int bottom
          The inset from the bottom.
 int left
          The inset from the left.
 int right
          The inset from the right.
 int top
          The inset from the top.
 
Constructor Summary
Insets(int top, int left, int bottom, int right)
          Constructs and initializes a new Inset with the specified top, left, bottom, and right insets.
 
Method Summary
 Object clone()
          Creates a clone of the object.
 String toString()
          Returns a String object representing this Inset's values.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

top

public int top
The inset from the top.


left

public int left
The inset from the left.


bottom

public int bottom
The inset from the bottom.


right

public int right
The inset from the right.

Constructor Detail

Insets

public Insets(int top,
              int left,
              int bottom,
              int right)
Constructs and initializes a new Inset with the specified top, left, bottom, and right insets.

Parameters:
top - the inset from the top
left - the inset from the left
bottom - the inset from the bottom
right - the inset from the right
Method Detail

toString

public String toString()
Returns a String object representing this Inset's values.

Overrides:
toString in class Object

clone

public Object clone()
Description copied from class: Object
Creates a clone of the object. A new instance is allocated and a bitwise clone of the current object is place in the new object.

Overrides:
clone in class Object
Returns:
a clone of this Object.