|
ReportCat 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectli.netcat.print.util.PrintInsets
PrintInsets are similar to the java.awt.Insets with top, left, bottom and right insets. In addition,
PrintInsets have a topOpened and a bottomOpened property that report the inset when the PrintInsets are
broken on multiple pages.
Note that PrintInsets is an immutable class in contrast to Insets.
| Constructor Summary | |
PrintInsets(int top,
int left,
int bottom,
int right,
int topOpened,
int bottomOpened)
Constructs a new and immutable PrintInsets object with the given insets. |
|
| Method Summary | |
int |
getBottom(boolean opened)
Returns the inset from the bottom. |
int |
getBottomMax()
Returns the maximum of the bottom insets. |
int |
getHeight(boolean topOpened,
boolean bottomOpened)
Returns the height of the insets. |
int |
getLeft()
Returns the inset from the left. |
int |
getRight()
Returns the inset from the right. |
int |
getTop(boolean opened)
Returns the inset from the top. |
int |
getTopMax()
Returns the maximum of the top insets. |
int |
getWidth()
Returns the width of the insets. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PrintInsets(int top,
int left,
int bottom,
int right,
int topOpened,
int bottomOpened)
PrintInsets object with the given insets.
top - The inset from the top.left - The inset from the left.bottom - The inset from the bottom.right - The inset from the right.topOpened - The inset from the top when this inset is displayed on the following page(s) (after a pagebreak).bottomOpened - The inset from the bottom when this inset will be displayed on the following page(s) (before a pagebreak).| Method Detail |
public int getTop(boolean opened)
opened - Specifies, if the top (of the PrintInsets) is opened.
public int getTopMax()
public int getLeft()
public int getBottom(boolean opened)
opened - Specifies, if the bottom is opened.
public int getBottomMax()
public int getRight()
public int getWidth()
public int getHeight(boolean topOpened,
boolean bottomOpened)
topOpened - Specifies, if the top (of the PrintInsets) is opened.bottomOpened - Specifies, if the bottom is opened.
|
ReportCat 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||