Margins
Contents
[
Hide
]Inheritance: java.lang.Object
public final class Margins
This class represents margins of an image.
Constructors
| Constructor | Description |
|---|---|
| Margins(int left, int right, int top, int bottom) | Initializes a new instance of the Margins class. |
| Margins() | Initializes a new instance of the Margins class. |
Methods
| Method | Description |
|---|---|
| getLeft() | Gets the left. |
| setLeft(int value) | Sets the left. |
| getRight() | Gets the right. |
| setRight(int value) | Sets the right. |
| getTop() | Gets the top. |
| setTop(int value) | Sets the top. |
| getBottom() | Gets the bottom. |
| setBottom(int value) | Sets the bottom. |
Margins(int left, int right, int top, int bottom)
public Margins(int left, int right, int top, int bottom)
Initializes a new instance of the Margins class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| left | int | The left coordinate. |
| right | int | The right coordinate. |
| top | int | The top coordinate. |
| bottom | int | The bottom coordinate. |
Margins()
public Margins()
Initializes a new instance of the Margins class.
getLeft()
public int getLeft()
Gets the left.
Returns: int - int value: The left.
setLeft(int value)
public void setLeft(int value)
Sets the left.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | int value: The left. |
getRight()
public int getRight()
Gets the right.
Returns: int - int value: The right.
setRight(int value)
public void setRight(int value)
Sets the right.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | int value: The right. |
getTop()
public int getTop()
Gets the top.
Returns: int - int value: The top.
setTop(int value)
public void setTop(int value)
Sets the top.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | int value: The top. |
getBottom()
public int getBottom()
Gets the bottom.
Returns: int - int value: The bottom.
setBottom(int value)
public void setBottom(int value)
Sets the bottom.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | int value: The bottom. |