Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.awt
Class Insets  view Insets download Insets.java

java.lang.Object
  extended byjava.awt.Insets
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class Insets
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

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


Field Summary
 int bottom
          The gap from the bottom.
 int left
          The gap from the left.
 int right
          The gap from the right.
private static long serialVersionUID
          Compatible with JDK 1.0+.
 int top
          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.Object clone()
          Returns a copy of this object.
 boolean equals(java.lang.Object obj)
          Tests whether this object is equal to the specified object.
 int hashCode()
          Returns a hashcode for this instance.
 void set(int top, int left, int bottom, int right)
          Set the contents of this Insets object to the specified values.
 java.lang.String toString()
          Returns a string representation of this object, which will be non-null.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Compatible with JDK 1.0+.

See Also:
Constant Field Values

top

public int top
The gap from the top.


left

public int left
The gap from the left.


bottom

public int bottom
The gap from the bottom.


right

public int right
The gap from the right.

Constructor Detail

Insets

public Insets(int top,
              int left,
              int bottom,
              int right)
Initializes a new instance of Inset with the specified inset values.

Method Detail

set

public void set(int top,
                int left,
                int bottom,
                int right)
Set the contents of this Insets object to the specified values.

Since:
1.5

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.

Since:
1.1

hashCode

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


toString

public java.lang.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?.


clone

public java.lang.Object clone()
Returns a copy of this object.