com.teamdev.jxbrowser.printing
Class Margins

java.lang.Object
  extended by 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
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 double getBottom()
           
 double getLeft()
           
 java.lang.Double getRight()
           
 double getTop()
           
 int hashCode()
           
 void setBottom(double bottom)
           
 void setLeft(double left)
           
 void setRight(double right)
           
 void setTop(double top)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 page
left - - left margin on page
right - - right margin on page
bottom - - bottom margin on page
Method Detail

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