public interface TableShape<S extends Shape<S,P>,P extends TextParagraph<S,P,? extends TextRun>> extends Shape<S,P>, PlaceableShape<S,P>
Modifier and Type | Method and Description |
---|---|
TableCell<S,P> |
getCell(int row,
int col)
Gets a cell
|
double |
getColumnWidth(int idx)
Gets the width (in points) of the n-th column
|
int |
getNumberOfColumns()
Return the maximum number of columns.
|
int |
getNumberOfRows()
Return the number of rows
|
double |
getRowHeight(int row)
Gets the row height
|
void |
setColumnWidth(int idx,
double width)
Sets the width (in points) of the n-th column
|
void |
setRowHeight(int row,
double height)
Sets the row height.
|
draw, getAnchor, getParent, getShapeId, getShapeName, getSheet
getAnchor, getFlipHorizontal, getFlipVertical, getParent, getRotation, getSheet, setAnchor, setFlipHorizontal, setFlipVertical, setRotation
int getNumberOfColumns()
int getNumberOfRows()
TableCell<S,P> getCell(int row, int col)
row
- the row index (0-based)col
- the column index (0-based)double getColumnWidth(int idx)
idx
- the column index (0-based)void setColumnWidth(int idx, double width)
idx
- the column index (0-based)width
- the width (in points)double getRowHeight(int row)
row
- the row index (0-based)void setRowHeight(int row, double height)
row
- the row index (0-based)height
- the height to set (in points)Copyright 2018 The Apache Software Foundation or its licensors, as applicable.