Package java.awt Previous
Previous
Java API
Java API
Index
Index
Next
Next

Class Insets

Fields , Constructors , Methods

public  class  java.awt.Insets
    extends  java.lang.Object  
    implements java.lang.Cloneable  
{
        // Fields
    public int bottom;	
    public int left;	
    public int right;	
    public int top;	

        // Constructors
    public Insets(int  top, int  left, int  bottom, int right);	

        // Methods
    public Object clone();	
    public String toString();	
}

The Insets object is a representation of the borders of a container. It specifies the space that a container must leave at each of its edges. The space can either be a border, blank space, or a title.
See Also: LayoutManager Container .


Fields


bottom

public int bottom 

The inset from the bottom.


left

public int left 

The inset from the left.


right

public int right 

The inset from the right.


top

public int top 

The inset from the top.


Constructors


Insets

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

Creates and initializes a new Inset with the specified top, left, bottom, and right insets.

ParameterDescription
top the inset from the top
left the inset from the left
bottom the inset from the bottom
right the inset from the right


Methods


clone

public Object clone() 

Return Value:

Returns a copy of this inset.

Overrides:

clone in class Object .


toString

public String toString() 

Return Value:

Returns a string representation of this inset.

Overrides:

toString in class Object .



Top© 1996 Sun Microsystems, Inc. All rights reserved.