|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.barcode.Margins
public class Margins
Specifies the margins of a barcode image.
Constructor Summary | |
---|---|
Margins()
Initialize a new instance of MarginsMargins class with 0 margins. |
|
Margins(int left,
int right,
int top,
int bottom)
Initialize a new instance of MarginsMargins class with specified left, right, top, bottom marigns. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Determines whether two MarginsMargins instances are equal. |
int |
getBottom()
Gets or sets the bottom marign. |
int |
getLeft()
Gets or sets the left margin. |
int |
getRight()
Gets or sets the right margin. |
int |
getTop()
Gets or sets the top marign. |
int |
hashCode()
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
void |
setBottom(int value)
|
void |
setLeft(int value)
|
void |
setRight(int value)
|
void |
setTop(int value)
|
String |
toString()
Returns a String that represents the current MarginsMargins instance. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Margins()
Initialize a new instance of MarginsMargins class with 0 margins.
public Margins(int left, int right, int top, int bottom)
Initialize a new instance of MarginsMargins class with specified left, right, top, bottom marigns.
left
- The Left marign.right
- The right marign.top
- The top marign.bottom
- The bottom marign.Method Detail |
---|
public boolean equals(Object obj)
Determines whether two MarginsMargins instances are equal.
equals
in class Object
obj
- The MarginsMargins instance on the left
public int hashCode()
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
hashCode
in class Object
public String toString()
Returns a String that represents the current MarginsMargins instance.
toString
in class Object
public int getBottom()
Gets or sets the bottom marign.
IllegalArgumentException
- The bottom parameter value is less than 0.
public void setBottom(int value)
public int getLeft()
Gets or sets the left margin.
IllegalArgumentException
- The Left parameter value is less than 0.
public void setLeft(int value)
public int getRight()
Gets or sets the right margin.
IllegalArgumentException
- The Right parameter value is less than 0.
public void setRight(int value)
public int getTop()
Gets or sets the top marign.
IllegalArgumentException
- The Top parameter value is less than 0.
public void setTop(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |