Packages This Package Prev Next Index
§1.25 Class Insets
public class java.awt.Insets
extends java.lang.Object (I-§1.12)
implements java.lang.Cloneable (I-§1.22)
{
// Fields
public int bottom; §1.25.1
public int left; §1.25.2
public int right; §1.25.3
public int top; §1.25.4
// Constructors
public Insets(int top, int left, int bottom, int right); §1.25.5
// Methods
public Object clone(); §1.25.6
public String toString(); §1.25.7
}
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 (II-§1.43)
Container (II-§1.11).
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.
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.
- 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
clone
public Object clone()
- Returns:
- a copy of this inset.
- Overrides:
- clone in class Object (I-§1.12.2).
toString
public String toString()
- Returns:
- a string representation of this inset.
- Overrides:
- toString in class Object (I-§1.12.9).
Packages This Package Prev Next Index
Java API Document (HTML generated by dkramer on April 22, 1996)
Copyright © 1996 Sun Microsystems, Inc.
All rights reserved
Please send any comments or corrections to doug.kramer@sun.com