com.aspose.barcode
Class MarginsF

java.lang.Object
  extended by com.aspose.barcode.MarginsF

public class MarginsF
extends Object

Specifies the margins of a barcode image.


Constructor Summary
MarginsF()
           Initialize a new instance of MarginsFMarginsF class with 0 margins.
MarginsF(float left, float right, float top, float bottom)
           Initialize a new instance of MarginsFMarginsF class with specified left, right, top, bottom marigns.
 
Method Summary
 boolean equals(Object obj)
          Determines whether two MarginsFMarginsF instances are equal.
 float getBottom()
          Gets or sets the bottom marign.
 float getLeft()
          Gets or sets the left margin.
 float getRight()
          Gets or sets the right margin.
 float 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(float value)
           
 void setLeft(float value)
           
 void setRight(float value)
           
 void setTop(float value)
           
 String toString()
          Returns a String that represents the current MarginsFMarginsF instance.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MarginsF

public MarginsF()

Initialize a new instance of MarginsFMarginsF class with 0 margins.


MarginsF

public MarginsF(float left,
                float right,
                float top,
                float bottom)

Initialize a new instance of MarginsFMarginsF class with specified left, right, top, bottom marigns.

Parameters:
left - The Left marign.
right - The right marign.
top - The top marign.
bottom - The bottom marign.
Throws:
com.aspose.ms.System.IllegalArgumentException - The left parameter value is less than 0. The right parameter value is less than 0. -or- The top parameter value is less than 0. -or- The bottom parameter value is less than 0.
Method Detail

equals

public boolean equals(Object obj)
Determines whether two MarginsFMarginsF instances are equal.

Overrides:
equals in class Object
Parameters:
obj - The MarginsFMarginsF instance on the left
Returns:
true if the left MarginsFMarginsF instances is equal to the right one; otherwise, false.

hashCode

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.

Overrides:
hashCode in class Object
Returns:
A hash code for the current Object.

toString

public String toString()
Returns a String that represents the current MarginsFMarginsF instance.

Overrides:
toString in class Object
Returns:
A System.StringString that represents the current Object.

getBottom

public float getBottom()
Gets or sets the bottom marign.

Throws:
com.aspose.ms.System.IllegalArgumentException - The bottom parameter value is less than 0.

setBottom

public void setBottom(float value)

getLeft

public float getLeft()
Gets or sets the left margin.

Throws:
com.aspose.ms.System.IllegalArgumentException - The Left parameter value is less than 0.

setLeft

public void setLeft(float value)

getRight

public float getRight()
Gets or sets the right margin.

Throws:
com.aspose.ms.System.IllegalArgumentException - The Right parameter value is less than 0.

setRight

public void setRight(float value)

getTop

public float getTop()
Gets or sets the top marign.

Throws:
com.aspose.ms.System.IllegalArgumentException - The Top parameter value is less than 0.

setTop

public void setTop(float value)


Copyright (c) 2002-2012 Aspose Pty Ltd. All Rights Reserved.