com.teamdev.jxbrowser.printing
Class Margins
java.lang.Object
com.teamdev.jxbrowser.printing.Margins
public class Margins
- extends java.lang.Object
MarginSettings encapsulates data for page margins for printing.
Constructor Summary |
Margins()
Empty constructor, for Java Bean spec |
Margins(double top,
double left,
double right,
double bottom)
Create the MarginSettings with constructor injection |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Margins
public Margins()
- Empty constructor, for Java Bean spec
Margins
public Margins(double top,
double left,
double right,
double bottom)
- Create the MarginSettings with constructor injection
- Parameters:
top
- - top margin on pageleft
- - left margin on pageright
- - right margin on pagebottom
- - bottom margin on page
getTop
public double getTop()
setTop
public void setTop(double top)
getLeft
public double getLeft()
setLeft
public void setLeft(double left)
getRight
public java.lang.Double getRight()
setRight
public void setRight(double right)
getBottom
public double getBottom()
setBottom
public void setBottom(double bottom)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object