Class java.awt.Insets
All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.Insets
java.lang.Object
|
+----java.awt.Insets
- public class Insets
- extends Object
- implements Cloneable
The insets of a container.
This class is used to layout containers. - See Also:
- LayoutManager, Container
- bottom
- The inset from the bottom.
- left
- The inset from the left.
- right
- The inset from the right.
- top
- The inset from the top.
- Insets(int, int, int, int)
- Constructs and initializes a new Inset with the specified top,
left, bottom, and right insets.
- clone()
- Creates a clone of the object.
- toString()
- Returns a String object representing this Inset's values.
top
public int top
- The inset from the top.
left
public int left
- The inset from the left.
bottom
public int bottom
- The inset from the bottom.
right
public int right
- The inset from the right.
Insets
public Insets(int top,
int left,
int bottom,
int right)
- Constructs 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
toString
public String toString()
- Returns a String object representing this Inset's values.
- Overrides:
- toString in class Object
clone
public Object clone()
- Creates a clone of the object.
- Overrides:
- clone in class Object
All Packages Class Hierarchy This Package Previous Next Index