|
ReportCat 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectli.netcat.print.table.TableMargins
This immutable class defines the margins of a table.
Constructor Summary | |
TableMargins(int hGap,
int vGap,
int headerGap,
int footerGap,
int top,
int left,
int bottom,
int right)
Constructs and initializes a new instance of an immutable TableMargins object. |
Method Summary | |
int |
calculateTotalHeight(int headerHeight,
int[] rowHeights,
int footerHeight)
Utility method that calculates the total height of the table. |
int |
calculateTotalWidth(int[] columnWidths)
Utility method that calculates the total width of the table. |
int |
getBottom()
Returns the bottom inset of the table look. |
int |
getFooterGap()
Returns the gap between the footer cells and the data cells. |
int |
getHeaderGap()
Returns the gap between the header cells and the data cells. |
int |
getHGap()
Returns the horizontal gap between the data cells. |
int |
getLeft()
Returns the left inset of the table look. |
int |
getRight()
Returns the right inset of the table look. |
int |
getTop()
Returns the top inset of the table look. |
int |
getVGap()
Returns the vertical gap between the data cells. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TableMargins(int hGap, int vGap, int headerGap, int footerGap, int top, int left, int bottom, int right)
TableMargins
object.
hGap
- The horizontal gap between the data cells.vGap
- The vertical gap between the data cells.headerGap
- The gap between the header cells and the data cells. This gap is only considered when a header is present.footerGap
- The gap between the footer cells and the data cells. This gap is only considered when a footer is present.top
- The top inset.left
- The left inset.bottom
- The bottom inset.right
- The right inset.Method Detail |
public int getHGap()
public int getVGap()
public int getHeaderGap()
public int getFooterGap()
public int getTop()
public int getLeft()
public int getBottom()
public int getRight()
public int calculateTotalWidth(int[] columnWidths)
columnWidths
- The widths of the columns.
public int calculateTotalHeight(int headerHeight, int[] rowHeights, int footerHeight)
headerHeight
- The height of the header. A negative value means that no header is present.rowHeights
- The heights of the rows. This parameter does not get modified.footerHeight
- The height of the footer. A negative value means that no footer is present.
|
ReportCat 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |