public final class Insets
extends java.lang.Object
ROOT_PANEL.| Modifier and Type | Field and Description |
|---|---|
int |
bottom
The bottom (+Y) inset size.
|
int |
left
The left (-X) inset size.
|
static Insets |
NONE
Empty layout insets that do not provide any borders around content.
|
int |
right
The right (+X) inset size.
|
static Insets |
ROOT_PANEL
The default insets of a root panel, providing 7 pixels around the content on all sides.
|
int |
top
The top (-Y) inset size.
|
| Constructor and Description |
|---|
Insets(int size)
Constructs layout insets.
|
Insets(int vertical,
int horizontal)
Constructs layout insets.
|
Insets(int top,
int left,
int bottom,
int right)
Constructs layout insets.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
toString() |
public static final Insets NONE
public static final Insets ROOT_PANEL
public final int top
public final int left
public final int bottom
public final int right
public Insets(int top,
int left,
int bottom,
int right)
top - the top (-Y) inset sizeleft - the left (-X) inset sizebottom - the bottom (+Y) inset sizeright - the right (+X) inset sizepublic Insets(int vertical,
int horizontal)
vertical - the vertical (Y) size of the insetshorizontal - the horizontal (X) size of the insetspublic Insets(int size)
size - the size of the insets on all sides