public static class Insets2D.Float extends Insets2D implements Serializable
Insets2D.Double, Insets2D.Float
Modifier and Type | Field and Description |
---|---|
float |
bottom |
float |
left |
float |
right |
float |
top |
Constructor and Description |
---|
Insets2D.Float(float top,
float left,
float bottom,
float right)
Construct an Insets2D instance using float precision
|
Modifier and Type | Method and Description |
---|---|
double |
getBottom()
Returns the inset from the bottom in double precision
|
double |
getLeft()
Returns the inset from the left in double precision
|
double |
getRight()
Returns the inset from the right in double precision
|
double |
getTop()
Returns the inset from the top in double precision
|
void |
set(float top,
float left,
float bottom,
float right)
Sets the insets with float precision
|
public float top
public float left
public float bottom
public float right
public Insets2D.Float(float top, float left, float bottom, float right)
top
- the inset from the topleft
- the inset from the leftbottom
- the inset from the bottomright
- the inset from the rightpublic void set(float top, float left, float bottom, float right)
top
- the inset from the topleft
- the inset from the leftbottom
- the inset from the bottomright
- the inset from the rightpublic double getBottom()
public double getLeft()
public double getRight()