|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.hslf.usermodel.HSLFShape
org.apache.poi.hslf.usermodel.HSLFGroupShape
org.apache.poi.hslf.usermodel.HSLFTable
public final class HSLFTable
Represents a table in a PowerPoint presentation
Field Summary | |
---|---|
protected static int |
BORDERS_ALL
|
protected static int |
BORDERS_INSIDE
|
protected static int |
BORDERS_NONE
|
protected static int |
BORDERS_OUTSIDE
|
protected HSLFTableCell[][] |
cells
|
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
protected void |
afterInsert(HSLFSheet sh)
Event which fires when a shape is inserted in the sheet. |
HSLFTableCell |
getCell(int row,
int col)
Gets a cell |
double |
getColumnWidth(int col)
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 |
protected HSLFTableCell |
getRelativeCell(HSLFTableCell origin,
int row,
int col)
|
double |
getRowHeight(int row)
Gets the row height |
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)
Sets the width (in points) of the n-th column |
void |
setRowHeight(int row,
double height)
Sets the row height. |
void |
setSheet(HSLFSheet sheet)
Assign the SlideShow this shape belongs to |
Methods inherited from class org.apache.poi.hslf.usermodel.HSLFGroupShape |
---|
addShape, createAutoShape, createConnector, createFreeform, createGroup, createPicture, createSpContainer, createTable, createTextBox, getAnchor, getEscherChild, getHyperlink, getInteriorAnchor, getShapes, getShapeType, iterator, removeShape, setAnchor, setExteriorAnchor, setInteriorAnchor |
Methods inherited from class org.apache.poi.hslf.usermodel.HSLFShape |
---|
draw, 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, setShapeType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.poi.hslf.usermodel.HSLFShapeContainer |
---|
createAutoShape, createConnector, createFreeform, createGroup, createPicture, createTextBox |
Methods inherited from interface org.apache.poi.sl.usermodel.ShapeContainer |
---|
addShape, createTable, getShapes, removeShape |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Methods inherited from interface org.apache.poi.sl.usermodel.Shape |
---|
draw, getAnchor, getParent, getSheet |
Methods inherited from interface org.apache.poi.sl.usermodel.PlaceableShape |
---|
getAnchor, getFlipHorizontal, getFlipVertical, getParent, getRotation, getSheet, setAnchor, setFlipHorizontal, setFlipVertical, setRotation |
Field Detail |
---|
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
Constructor Detail |
---|
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 shapeMethod Detail |
---|
public HSLFTableCell getCell(int row, int col)
TableShape
getCell
in interface TableShape<HSLFShape,HSLFTextParagraph>
row
- the row index (0-based)col
- the column index (0-based)
public int getNumberOfColumns()
TableShape
getNumberOfColumns
in interface TableShape<HSLFShape,HSLFTextParagraph>
public int getNumberOfRows()
TableShape
getNumberOfRows
in interface TableShape<HSLFShape,HSLFTextParagraph>
protected void afterInsert(HSLFSheet sh)
HSLFShape
afterInsert
in class HSLFShape
sh
- - owning shapeprotected void initTable()
public void setSheet(HSLFSheet sheet)
SlideShow
this shape belongs to
setSheet
in class HSLFShape
sheet
- owner of this shapepublic double getRowHeight(int row)
TableShape
getRowHeight
in interface TableShape<HSLFShape,HSLFTextParagraph>
row
- the row index (0-based)
public void setRowHeight(int row, double height)
TableShape
setRowHeight
in interface TableShape<HSLFShape,HSLFTextParagraph>
row
- the row index (0-based)height
- the height to set (in points)public double getColumnWidth(int col)
TableShape
getColumnWidth
in interface TableShape<HSLFShape,HSLFTextParagraph>
col
- the column index (0-based)
public void setColumnWidth(int col, double width)
TableShape
setColumnWidth
in interface TableShape<HSLFShape,HSLFTextParagraph>
col
- the column index (0-based)width
- the width (in points)protected HSLFTableCell getRelativeCell(HSLFTableCell origin, int row, int col)
protected void moveAndScale(java.awt.geom.Rectangle2D anchorDest)
HSLFGroupShape
ShapeGroup
to the specified anchor.
moveAndScale
in class HSLFGroupShape
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |