Margins

Inheritance: java.lang.Object

public final class Margins

This class represents margins of an image.

Constructors

ConstructorDescription
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

MethodDescription
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:

ParameterTypeDescription
leftintThe left coordinate.
rightintThe right coordinate.
topintThe top coordinate.
bottomintThe 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:

ParameterTypeDescription
valueintint 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:

ParameterTypeDescription
valueintint 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:

ParameterTypeDescription
valueintint 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:

ParameterTypeDescription
valueintint value: The bottom.