public class Insets
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double |
bottom
Insets at bottom side.
|
double |
left
Insets at left side.
|
double |
right
Insets at right side.
|
double |
top
Insets at top side.
|
static Insets |
ZERO_INSETS
Constant object which represents zero insets.
|
Constructor and Description |
---|
Insets(double top,
double left,
double bottom,
double right)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Point |
asPoint()
Get starting point of inner area.
|
double |
heightDelta()
Get sum of top and bottom deltas.
|
double |
widthDelta()
Get sum of left and right deltas.
|
public static final Insets ZERO_INSETS
public double top
public double left
public double bottom
public double right
public Insets(double top, double left, double bottom, double right)
top
- Top side insets.left
- Left side insets.bottom
- Bottom side insets.right
- Right side insets.public double widthDelta()
public double heightDelta()
public Point asPoint()