public final class HSLFTable extends HSLFGroupShape implements HSLFShapeContainer, TableShape<HSLFShape,HSLFTextParagraph>
| Modifier and Type | Field and 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 HSLFTableCell[][] |
cells |
| Constructor and Description |
|---|
HSLFTable(EscherContainerRecord escherRecord,
ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
Create a Table object and initilize it from the supplied Record container.
|
HSLFTable(int numRows,
int numCols)
Create a new Table of the given number of rows and columns
|
HSLFTable(int numRows,
int numCols,
ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
Create a new Table of the given number of rows and columns
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterInsert(HSLFSheet sh)
Event which fires when a shape is inserted in the sheet.
|
HSLFLine |
createBorder()
Create a border to format this table
|
HSLFTableCell |
getCell(int row,
int col)
Gets a cell
|
int |
getNumberOfColumns() |
int |
getNumberOfRows() |
protected void |
initTable() |
void |
setAllBorders(HSLFLine 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(HSLFLine line)
Format the inside border using the specified Line object
|
void |
setOutsideBorders(HSLFLine line)
Format the outside border using the specified Line object
|
void |
setRowHeight(int row,
int height)
Sets the row height.
|
void |
setSheet(HSLFSheet sheet)
Assign the
SlideShow this shape belongs to |
addShape, createAutoShape, createConnector, createFreeform, createGroup, createPicture, createSpContainer, createTable, createTextBox, getAnchor, getEscherChild, getHyperlink, getInteriorAnchor, getShapes, getShapeType, iterator, moveTo, removeShape, setAnchor, setInteriorAnchordraw, getEscherChild, getEscherOptRecord, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getFillStyle, getFlipHorizontal, getFlipVertical, getParent, getRotation, getShapeId, getShapeName, getSheet, getSpContainer, isPlaceholder, moveTo, setEscherProperty, setEscherProperty, setFlipHorizontal, setFlipVertical, setRotation, setShapeId, setShapeTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateAutoShape, createConnector, createFreeform, createGroup, createPicture, createTextBoxaddShape, createTable, getShapes, removeShapegetAnchor, getFlipHorizontal, getFlipVertical, getParent, getRotation, setAnchor, setFlipHorizontal, setFlipVertical, setRotationprotected 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 HSLFTableCell[][] cells
public HSLFTable(int numRows,
int numCols)
numRows - the number of rowsnumCols - the number of columnspublic HSLFTable(int numRows,
int numCols,
ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
numRows - the number of rowsnumCols - the number of columnsparent - the parent shape, or null if table is added to sheetpublic HSLFTable(EscherContainerRecord escherRecord, ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
escherRecord - EscherSpContainer container which holds information about this shapeparent - the parent of the shapepublic HSLFTableCell 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(HSLFSheet sh)
HSLFShapeafterInsert in class HSLFShapesh - - owning shapeprotected void initTable()
public void setSheet(HSLFSheet 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(HSLFLine line)
line - the border linepublic void setOutsideBorders(HSLFLine line)
line - the border linepublic void setInsideBorders(HSLFLine line)
line - the border linepublic HSLFLine createBorder()
Copyright 2016 The Apache Software Foundation or its licensors, as applicable.