Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.awt

Class Insets

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

All Implemented Interfaces:

Cloneable, Serializable


public class Insets

extends Object

implements Cloneable, Serializable

This class represents the "margin" or space around a container.

Authors:

Field Summary

intbottom

The gap from the bottom.
intleft

The gap from the left.
intright

The gap from the right.
inttop

The gap from the top.

Constructor Summary

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

Initializes a new instance of Inset with the specified inset values.

Method Summary

java.lang.Objectclone()

Returns a copy of this object.
booleanequals(java.lang.Object obj)

Tests whether this object is equal to the specified object.
inthashCode()

Returns a hashcode for this instance.
java.lang.StringtoString()

Returns a string representation of this object, which will be non-null.

Field Details

bottom

public int bottom

The gap from the bottom.


left

public int left

The gap from the left.


right

public int right

The gap from the right.


top

public int top

The gap from the top.


Constructor Details

Insets

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

Initializes a new instance of Inset with the specified inset values.

Parameters:


Method Details

clone

public Object clone()

Returns a copy of this object.

Returns:


equals

public boolean equals(java.lang.Object obj)

Tests whether this object is equal to the specified object. The other object must be an instance of Insets with identical field values.

Parameters:

Returns:


hashCode

public int hashCode()

Returns a hashcode for this instance. The formula is unspecified, but appears to be XXX what is it? .

Returns:


toString

public String toString()

Returns a string representation of this object, which will be non-null. The format is unspecified, but appears to be XXX what is it?.

Returns: