Class java.awt.Insets
All Packages This Package Previous Next
Class java.awt.Insets
java.lang.Object
|
+----java.awt.Insets
-
public class
Insets
-
extends Object
The insets of a container.
This class is used to layout containers.
-
See Also:
-
LayoutManager,
Container
-
Version:
-
1.6, 10/05/95
-
Author:
-
Arthur van Hoff,
Sami Shaio
-
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.
-
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
All Packages This Package Previous Next