public final class HSLFTable extends HSLFGroupShape implements HSLFShapeContainer, TableShape<HSLFShape,HSLFTextParagraph>
| Modifier and Type | Field and Description |
|---|---|
protected static int |
BORDERS_ALL |
protected static int |
BORDERS_INSIDE |
protected static int |
BORDERS_NONE |
protected static int |
BORDERS_OUTSIDE |
protected HSLFTableCell[][] |
cells |
| Modifier | Constructor and Description |
|---|---|
protected |
HSLFTable(EscherContainerRecord escherRecord,
ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
Create a Table object and initialize it from the supplied Record container.
|
protected |
HSLFTable(int numRows,
int numCols)
Create a new Table of the given number of rows and columns
|
protected |
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.
|
HSLFTableCell |
getCell(int row,
int col) |
double |
getColumnWidth(int col) |
int |
getNumberOfColumns() |
int |
getNumberOfRows() |
protected HSLFTableCell |
getRelativeCell(HSLFTableCell origin,
int row,
int col) |
double |
getRowHeight(int row) |
protected void |
initTable() |
protected void |
moveAndScale(java.awt.geom.Rectangle2D anchorDest)
Moves and scales this
ShapeGroup to the specified anchor. |
void |
setColumnWidth(int col,
double width) |
void |
setRowHeight(int row,
double height) |
void |
setSheet(HSLFSheet sheet)
Assign the
SlideShow this shape belongs to |
addShape, createAutoShape, createConnector, createFreeform, createGroup, createOleShape, createPicture, createSpContainer, createTable, createTextBox, getAnchor, getEscherChild, getHyperlink, getInteriorAnchor, getShapes, getShapeType, iterator, removeShape, setAnchor, setExteriorAnchor, setInteriorAnchordraw, getClientData, getClientDataRecord, getClientRecords, getEscherChild, getEscherChild, 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, createOleShape, createPicture, createTextBoxaddShape, createTable, getShapes, removeShapedraw, getAnchor, getParent, getShapeId, getShapeName, getSheetgetAnchor, getFlipHorizontal, getFlipVertical, getParent, getRotation, getSheet, setAnchor, setFlipHorizontal, setFlipVertical, setRotationprotected 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
protected HSLFTable(int numRows,
int numCols)
numRows - the number of rowsnumCols - the number of columnsprotected 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 sheetprotected 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)
getCell in interface TableShape<HSLFShape,HSLFTextParagraph>public int getNumberOfColumns()
getNumberOfColumns in interface TableShape<HSLFShape,HSLFTextParagraph>public int getNumberOfRows()
getNumberOfRows in interface TableShape<HSLFShape,HSLFTextParagraph>protected void afterInsert(HSLFSheet sh)
HSLFShapeafterInsert in class HSLFShapesh - - owning shapeprotected void initTable()
public void setSheet(HSLFSheet sheet)
SlideShow this shape belongs topublic double getRowHeight(int row)
getRowHeight in interface TableShape<HSLFShape,HSLFTextParagraph>public void setRowHeight(int row,
double height)
setRowHeight in interface TableShape<HSLFShape,HSLFTextParagraph>public double getColumnWidth(int col)
getColumnWidth in interface TableShape<HSLFShape,HSLFTextParagraph>public void setColumnWidth(int col,
double width)
setColumnWidth in interface TableShape<HSLFShape,HSLFTextParagraph>protected HSLFTableCell getRelativeCell(HSLFTableCell origin, int row, int col)
protected void moveAndScale(java.awt.geom.Rectangle2D anchorDest)
HSLFGroupShapeShapeGroup to the specified anchor.moveAndScale in class HSLFGroupShape