    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class java.awt.Insets

    java.lang.Object
       |
       +----java.awt.Insets

public class Insets
extends Object
implements Cloneable, Serializable

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

See Also:
  LayoutManager, Container

##

bottom
  The inset from the bottom.
left
  The inset from the left.
right
  The inset from the right.
top
  The inset from the top.

##

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

##

clone()
  Creates a new object of the same class as this object.
equals(Object)
  Checks whether two insets objects are equal.
toString()
  Returns a String object representing this Inset's values.

##

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.

##

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

##

equals

      public boolean equals(Object obj)

  Checks whether two insets objects are equal.

  Overrides:
    equals in class Object

toString

      public String toString()

  Returns a String object representing this Inset's values.

  Overrides:
    toString in class Object

clone

      public Object clone()

  Creates a new object of the same class as this object.

  Overrides:
    clone in class Object

    All Packages  Class Hierarchy  This Package  Previous  Next  Index