public final class Table extends ShapeGroup
| Modifier and Type | Field | Description |
|---|---|---|
protected static int |
BORDER_BOTTOM |
|
protected static int |
BORDER_LEFT |
|
protected static int |
BORDER_RIGHT |
|
protected static int |
BORDER_TOP |
|
protected static int |
BORDERS_ALL |
|
protected static int |
BORDERS_INSIDE |
|
protected static int |
BORDERS_NONE |
|
protected static int |
BORDERS_OUTSIDE |
|
protected TableCell[][] |
cells |
_escherContainer, _fill, _parent, _sheet, EMU_PER_CENTIMETER, EMU_PER_INCH, EMU_PER_POINT, logger, MASTER_DPI, PIXEL_DPI, POINT_DPI| Constructor | Description |
|---|---|
Table(int numrows,
int numcols) |
Create a new Table of the given number of rows and columns
|
Table(EscherContainerRecord escherRecord,
Shape parent) |
Create a Table object and initilize it from the supplied Record container.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
afterInsert(Sheet sh) |
Event which fires when a shape is inserted in the sheet.
|
Line |
createBorder() |
Create a border to format this table
|
TableCell |
getCell(int row,
int col) |
Gets a cell
|
int |
getNumberOfColumns() |
|
int |
getNumberOfRows() |
|
protected void |
initTable() |
|
void |
setAllBorders(Line line) |
Format the table and apply the specified Line to all cell boundaries,
both outside and inside
|
void |
setColumnWidth(int col,
int width) |
Sets the column width.
|
void |
setInsideBorders(Line line) |
Format the inside border using the specified Line object
|
void |
setOutsideBorders(Line line) |
Format the outside border using the specified Line object
|
void |
setRowHeight(int row,
int height) |
Sets the row height.
|
void |
setSheet(Sheet sheet) |
Assign the
SlideShow this shape belongs to |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnchor, getEscherChild, getEscherOptRecord, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getFlipHorizontal, getFlipVertical, getLogicalAnchor2D, getOutline, getParent, getRotation, getShapeId, getShapeName, getSheet, getSpContainer, moveTo, setAnchor, setEscherProperty, setEscherProperty, setRotation, setShapeId, setShapeTypeaddShape, createSpContainer, draw, getAnchor2D, getCoordinates, getEscherChild, getHyperlink, getShapes, getShapeType, moveTo, setAnchor, setCoordinatesprotected static final int BORDER_TOP
protected static final int BORDER_RIGHT
protected static final int BORDER_BOTTOM
protected static final int BORDER_LEFT
protected static final int BORDERS_ALL
protected static final int BORDERS_OUTSIDE
protected static final int BORDERS_INSIDE
protected static final int BORDERS_NONE
protected TableCell[][] cells
public Table(int numrows,
int numcols)
numrows - the number of rowsnumcols - the number of columnspublic Table(EscherContainerRecord escherRecord, Shape parent)
escherRecord - EscherSpContainer container which holds information about this shapeparent - the parent of the shapepublic TableCell getCell(int row, int col)
row - the row index (0-based)col - the column index (0-based)public int getNumberOfColumns()
public int getNumberOfRows()
protected void afterInsert(Sheet sh)
ShapeafterInsert in class Shapesh - - owning shapeprotected void initTable()
public void setSheet(Sheet sheet)
SlideShow this shape belongs topublic void setRowHeight(int row,
int height)
row - the row index (0-based)height - the height to set (in pixels)public void setColumnWidth(int col,
int width)
col - the column index (0-based)width - the width to set (in pixels)public void setAllBorders(Line line)
line - the border linepublic void setOutsideBorders(Line line)
line - the border linepublic void setInsideBorders(Line line)
line - the border linepublic Line createBorder()
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.