public class Margin extends Object
| Constructor and Description |
|---|
Margin() |
Margin(float left,
float top,
float right,
float bottom) |
| Modifier and Type | Method and Description |
|---|---|
float |
getBottom()
Returns bottom margin.
|
float |
getLeft()
Returns left margin.
|
MeasurementUnit |
getMeasurementUnit()
Returns current measurement unit in which the margins are applied.
|
float |
getRight()
Returns right margin.
|
float |
getTop()
Returns top margin.
|
void |
setBottom(float bottom)
Sets specified value as the bottom margin.
|
void |
setLeft(float left)
Sets specified value as the left margin.
|
void |
setMeasurementUnit(MeasurementUnit measurementUnit)
Sets measurement unit in which the margins need to be applied.
|
void |
setRight(float right)
Sets specified value as the right margin.
|
void |
setTop(float top)
Sets specified value as the top margin.
|
public Margin()
public Margin(float left,
float top,
float right,
float bottom)
public float getLeft()
public void setLeft(float left)
left - left margin that needs to be setpublic float getTop()
public void setTop(float top)
top - top margin that needs to be setpublic float getRight()
public void setRight(float right)
right - right margin that needs to be setpublic float getBottom()
public void setBottom(float bottom)
bottom - bottom margin that needs to be setpublic MeasurementUnit getMeasurementUnit()
public void setMeasurementUnit(MeasurementUnit measurementUnit)
measurementUnit - measurement unit in which the margins need to be applied