|
com.aspose.pdf.elements
Class MarginInfo
java.lang.Object
com.aspose.pdf.elements.MarginInfo
- All Implemented Interfaces:
- java.lang.Cloneable
public class MarginInfo - extends java.lang.Object
- implements java.lang.Cloneable
Encapsulates margin info.
|
Constructor Summary |
MarginInfo()
Initializes a new instance of the MarginInfo class. |
MarginInfo(float top,
float bottom,
float left,
float right)
Initializes a new instance of the MarginInfo class. |
|
Method Summary |
java.lang.Object |
clone()
Gets a clone of MarginInfo. |
boolean |
equals(java.lang.Object arg0)
|
float |
getBottom()
Gets a float value that indicates the bottom margin. |
float |
getLeft()
Gets a float value that indicates the left margin. |
float |
getRight()
Gets a float value that indicates the right margin. |
float |
getTop()
Gets a float value that indicates the top margin. |
void |
setBottom(float bottom)
Sets a float value that indicates the bottom margin. |
void |
setLeft(float left)
Sets a float value that indicates the left margin. |
void |
setRight(float right)
Sets a float value that indicates the right margin. |
void |
setTop(float top)
Sets a float value that indicates the top margin. |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MarginInfo
public MarginInfo()
- Initializes a new instance of the MarginInfo class.
MarginInfo
public MarginInfo(float top,
float bottom,
float left,
float right)
- Initializes a new instance of the MarginInfo class.
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Gets a clone of MarginInfo.
- Overrides:
clone in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException - throw when Cloneable interface not implemented
getTop
public float getTop()
- Gets a float value that indicates the top margin.
The unit is point.
- Returns:
- Returns the top extents
setTop
public void setTop(float top)
- Sets a float value that indicates the top margin.
The unit is point.
- Parameters:
top - The top extents to set.
setBottom
public void setBottom(float bottom)
- Sets a float value that indicates the bottom margin.
The unit is point.
- Parameters:
bottom - The bottom extents to set.
getBottom
public float getBottom()
- Gets a float value that indicates the bottom margin.
The unit is point.
- Returns:
- Returns the bottom extents
setLeft
public void setLeft(float left)
- Sets a float value that indicates the left margin.
The unit is point.
- Parameters:
left - The left extents to set.
getLeft
public float getLeft()
- Gets a float value that indicates the left margin.
The unit is point.
- Returns:
- Returns the left extents
setRight
public void setRight(float right)
- Sets a float value that indicates the right margin.
The unit is point.
- Parameters:
right - The right extents to set.
getRight
public float getRight()
- Gets a float value that indicates the right margin.
The unit is point.
- Returns:
- Returns the right extents
equals
public boolean equals(java.lang.Object arg0)
- Overrides:
equals in class java.lang.Object
- See Also:
Object.equals(java.lang.Object)
|