com.teamdev.jxbrowser.print
Class PageMargins

java.lang.Object
  extended by com.teamdev.jxbrowser.print.PageMargins

public class PageMargins
extends java.lang.Object

Represents the page margins in millimeters.


Constructor Summary
PageMargins(double top, double left, double right, double bottom)
          Construct a new PageMargins instance with initial values.
 
Method Summary
 double getBottom()
          Returns the page bottom margin in millimeters.
 double getLeft()
          Returns the page left margin in millimeters.
 double getRight()
          Returns the page right margin in millimeters.
 double getTop()
          Returns the page top margin in millimeters.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageMargins

public PageMargins(double top,
                   double left,
                   double right,
                   double bottom)
Construct a new PageMargins instance with initial values.

Parameters:
top - the page top margin in millimeters.
left - the page left margin in millimeters.
right - the page right margin in millimeters.
bottom - the page bottom margin in millimeters.
Method Detail

getTop

public double getTop()
Returns the page top margin in millimeters.

Returns:
the page top margin in millimeters.

getLeft

public double getLeft()
Returns the page left margin in millimeters.

Returns:
the page left margin in millimeters.

getRight

public double getRight()
Returns the page right margin in millimeters.

Returns:
the page right margin in millimeters.

getBottom

public double getBottom()
Returns the page bottom margin in millimeters.

Returns:
the page bottom margin in millimeters.