Class CellPadding
- All Implemented Interfaces:
ICellPadding
Gets or sets the cell padding.
-
Constructor Summary
Constructors
Assign the four properties of cellPadding with the same value
Assign different values to the four properties of cellPadding
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CellPadding
public CellPadding(int all)
Assign the four properties of cellPadding with the same value
- Parameters:
all
- The padding value for all sides.
-
CellPadding
public CellPadding(int top,
int right,
int bottom,
int left)
Assign different values to the four properties of cellPadding
- Parameters:
top
- The integer value representing the top padding.
right
- The integer value representing the right padding.
bottom
- The integer value representing the bottom padding.
left
- The integer value representing the left padding.
-
Method Details
-
getLeft
public int getLeft()
get left cell padding.
- Specified by:
getLeft
in interface ICellPadding
- Returns:
- The left padding of the cell.
-
getRight
public int getRight()
get right cell padding.
- Specified by:
getRight
in interface ICellPadding
- Returns:
- The right padding of the cell.
-
getTop
public int getTop()
get top cell padding.
- Specified by:
getTop
in interface ICellPadding
- Returns:
- The top padding of the cell.
-
getBottom
public int getBottom()
get bottom cell padding.
- Specified by:
getBottom
in interface ICellPadding
- Returns:
- The bottom padding of the cell.