boolean |
equals(java.lang.Object obj)
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
equals
public boolean equals(java.lang.Object obj)
Determines whether two MarginsFMarginsF instances are equal.
- Overrides:
equals in class java.lang.Object
- Parameters:
obj - The MarginsFMarginsF instance on the left
- Returns:
<b>true</b> if the left MarginsFMarginsF instances is equal to the right one; otherwise, <b>false</b> .
getBottom
public float getBottom()
Gets the <b>bottom</b> marign.
- Throws:
ArgumentException - <p>The <b>bottom</b> parameter value is less than 0.</p>
getLeft
public float getLeft()
Gets the <b>left</b> margin.
- Throws:
ArgumentException - <p>The <b>Left</b> parameter value is less than 0.</p>
getRight
public float getRight()
Gets the <b>right</b> margin.
- Throws:
ArgumentException - <p>The <b>Right</b> parameter value is less than 0.</p>
getTop
public float getTop()
Gets the <b>top</b> marign.
- Throws:
ArgumentException - <p>The <b>Top</b> parameter value is less than 0.</p>
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 java.lang.Object
- Returns:
- A hash code for the current Object.
set
public void set(float margin)
Sets the specified margin for all sides.
- Parameters:
margin - The margin for all sides.
set
public void set(float left,
float right,
float top,
float bottom)
Sets the specified margins.
- Parameters:
left - The left side.right - The right side.top - The top side.bottom - The bottom side.
setBottom
public void setBottom(float value)
Sets the <b>bottom</b> marign.
- Throws:
ArgumentException - <p>The <b>bottom</b> parameter value is less than 0.</p>
setLeft
public void setLeft(float value)
Sets the <b>left</b> margin.
- Throws:
ArgumentException - <p>The <b>Left</b> parameter value is less than 0.</p>
setRight
public void setRight(float value)
Sets the <b>right</b> margin.
- Throws:
ArgumentException - <p>The <b>Right</b> parameter value is less than 0.</p>
setTop
public void setTop(float value)
Sets the <b>top</b> marign.
- Throws:
ArgumentException - <p>The <b>Top</b> parameter value is less than 0.</p>
toString
public java.lang.String toString()
Returns a String that represents the current MarginsFMarginsF instance.
- Overrides:
toString in class java.lang.Object
- Returns:
- A
System.StringString that represents the current Object.
|