Insets

Name

Insets

[Graphic: Figure from the text]

Description

The Insets class provides a way to encapsulate the layout margins of the four different sides of a Container.

Class Definition

public class java.awt.Insets extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable {
 // Variables public int bottom;
public int left;
public int right;
public int top; // Constructors public Insets (int top, int left, int bottom, int right); // Instance Methods public Object clone();
public boolean equals (Object obj); public String toString();
}

Variables

bottom

public int bottom

The border width for the bottom of a Container.

left

public int left

The border width for the left side of a Container.

right

public int right

The border width for the right side of a Container.

top

public int top

The border width for the top of a Container.

Constructors

Insets

public Insets (int top, int left, int bottom, int right)

Instance Methods

clone

public Object clone()

equals

public boolean equals (Object obj)

toString

public String toString()

See Also

Cloneable, Container, Object, Serializable, String