com.aspose.j2me.barcode.generation
Class Margins

java.lang.Object
  extended bycom.aspose.j2me.barcode.generation.Margins

public class Margins
extends java.lang.Object

Specifies the size of the marginal area of the barcode image


Constructor Summary
Margins()
          Constructs Margins with default settings.
Margins(int left, int right, int top, int bottom)
          Constructs Margins with custom settings
 
Method Summary
 int getBottom()
          Gets the bottom area of x barcode image
 int getLeft()
          Gets the marginal area at the left of the barcode image
 int getRight()
          Gets the marginal area at the right of the barcode image
 int getTop()
          Gets the top area of the barcode image
 void reset()
          Reset the marginal area to be 0
 void setBottom(int value)
          Sets the bottom area of x barcode image
 void setLeft(int value)
          Sets the marginal area at the left of the barcode image
 void setRight(int value)
          Sets the marginal area at the right of the barcode image
 void setTop(int value)
          Sets the top area of the barcode image
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Margins

public Margins()
Constructs Margins with default settings.


Margins

public Margins(int left,
               int right,
               int top,
               int bottom)
Constructs Margins with custom settings

Parameters:
left - left marginal size
right - right marginal size
top - top marginal size
bottom - bottom marginal size
Method Detail

getTop

public int getTop()
Gets the top area of the barcode image


setTop

public void setTop(int value)
Sets the top area of the barcode image


getBottom

public int getBottom()
Gets the bottom area of x barcode image


setBottom

public void setBottom(int value)
Sets the bottom area of x barcode image


getLeft

public int getLeft()
Gets the marginal area at the left of the barcode image


setLeft

public void setLeft(int value)
Sets the marginal area at the left of the barcode image


getRight

public int getRight()
Gets the marginal area at the right of the barcode image


setRight

public void setRight(int value)
Sets the marginal area at the right of the barcode image


reset

public void reset()
Reset the marginal area to be 0