public static class Insets2D.Float extends Insets2D
Float
class defines insets specified in
float
precision.Insets2D.Double, Insets2D.Float
Modifier and Type | Field and Description |
---|---|
float |
bottom |
float |
left |
float |
right |
float |
top |
Constructor and Description |
---|
Float()
Constructs and initializes an
Insets2D with
all insets set to 0. |
Float(float top,
float left,
float bottom,
float right)
Constructs and initializes an
Insets2D with the
specified insets. |
Modifier and Type | Method and Description |
---|---|
double |
getBottom()
Returns the bottom insets in double precision.
|
double |
getLeft()
Returns the left insets in double precision.
|
double |
getRight()
Returns the right insets in double precision.
|
double |
getTop()
Returns the top insets in double precision.
|
void |
set(double top,
double left,
double bottom,
double right)
Sets the insets.
|
void |
set(float top,
float left,
float bottom,
float right) |
public float top
public float left
public float bottom
public float right
public Float()
Insets2D
with
all insets set to 0.public Float(float top, float left, float bottom, float right)
Insets2D
with the
specified insets.top
- The top insets.left
- The left insets.bottom
- The bottom insets.right
- The right insets.public double getTop()
Insets2D
public double getLeft()
Insets2D
public double getBottom()
Insets2D
public double getRight()
Insets2D
public void set(double top, double left, double bottom, double right)
Insets2D
public void set(float top, float left, float bottom, float right)