|
||||||||||
| 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.HSLFSimpleShape
org.apache.poi.hslf.usermodel.HSLFTextShape
org.apache.poi.hslf.usermodel.HSLFTextBox
org.apache.poi.hslf.usermodel.HSLFTableCell
public final class HSLFTableCell
Represents a cell in a ppt table
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.poi.sl.usermodel.TableCell |
|---|
TableCell.BorderEdge |
| Nested classes/interfaces inherited from interface org.apache.poi.sl.usermodel.TextShape |
|---|
TextShape.TextAutofit, TextShape.TextDirection, TextShape.TextPlaceholder |
| Field Summary | |
|---|---|
protected static int |
DEFAULT_HEIGHT
|
protected static int |
DEFAULT_WIDTH
|
| Fields inherited from class org.apache.poi.hslf.usermodel.HSLFTextShape |
|---|
WrapByPoints, WrapNone, WrapSquare, WrapThrough, WrapTopBottom |
| Fields inherited from class org.apache.poi.hslf.usermodel.HSLFSimpleShape |
|---|
_hyperlink, DEFAULT_LINE_WIDTH |
| Constructor Summary | |
|---|---|
protected |
HSLFTableCell(EscherContainerRecord escherRecord,
HSLFTable parent)
Create a TableCell object and initialize it from the supplied Record container. |
|
HSLFTableCell(HSLFTable parent)
Create a new TableCell. |
| Method Summary | |
|---|---|
protected HSLFLine |
addLine(TableCell.BorderEdge edge)
|
protected void |
applyLineProperties(TableCell.BorderEdge edge,
HSLFLine other)
|
protected EscherContainerRecord |
createSpContainer(boolean isChild)
Create a new TextBox and initialize its internal structures |
java.awt.Color |
getBorderColor(TableCell.BorderEdge edge)
|
StrokeStyle.LineCompound |
getBorderCompound(TableCell.BorderEdge edge)
|
StrokeStyle.LineDash |
getBorderDash(TableCell.BorderEdge edge)
|
StrokeStyle |
getBorderStyle(TableCell.BorderEdge edge)
Return line style of given edge or null if border is not defined |
java.lang.Double |
getBorderWidth(TableCell.BorderEdge edge)
|
int |
getGridSpan()
Get the number of columns to be spanned/merged |
HSLFTable |
getParent()
|
int |
getRowSpan()
Get the number of rows to be spanned/merged |
protected HSLFTableCell |
getSiblingCell(int row,
int col)
|
boolean |
isMerged()
Return if this cell is part of a merged cell. |
void |
removeBorder(TableCell.BorderEdge edge)
Remove all line attributes of the given border edge |
void |
setAnchor(java.awt.geom.Rectangle2D anchor)
Sets the anchor (the bounding box rectangle) of this shape. |
void |
setBorderColor(TableCell.BorderEdge edge,
java.awt.Color color)
Convenience method for setting the border color. |
void |
setBorderCompound(TableCell.BorderEdge edge,
StrokeStyle.LineCompound compound)
Convenience method for setting the border line compound. |
void |
setBorderDash(TableCell.BorderEdge edge,
StrokeStyle.LineDash dash)
Convenience method for setting the border line dash. |
void |
setBorderStyle(TableCell.BorderEdge edge,
StrokeStyle style)
Sets the StrokeStyle of the given border edge. |
void |
setBorderWidth(TableCell.BorderEdge edge,
double width)
Convenience method for setting the border width. |
protected void |
setGridSpan(int gridSpan)
Set the gridSpan (aka col-span) |
protected void |
setRowSpan(int rowSpan)
Set the rowSpan |
| Methods inherited from class org.apache.poi.hslf.usermodel.HSLFTextBox |
|---|
setDefaultTextProperties |
| Methods inherited from class org.apache.poi.hslf.usermodel.HSLFShape |
|---|
draw, getAnchor, getClientData, getClientDataRecord, getClientRecords, getEscherChild, getEscherChild, getEscherChild, getEscherChild, getEscherOptRecord, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getFillStyle, getFlipHorizontal, getFlipVertical, getRotation, getShapeId, getShapeName, getShapeType, getSheet, getSpContainer, 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.sl.usermodel.TextShape |
|---|
appendText, getInsets, getText, getTextDirection, getTextHeight, getTextHeight, getTextParagraphs, getTextPlaceholder, getTextRotation, getVerticalAlignment, getWordWrap, isHorizontalCentered, resizeToFitText, resizeToFitText, setHorizontalCentered, setInsets, setText, setTextDirection, setTextPlaceholder, setTextRotation, setVerticalAlignment, setWordWrap |
| Methods inherited from interface org.apache.poi.sl.usermodel.SimpleShape |
|---|
createHyperlink, getFillColor, getFillStyle, getGeometry, getHyperlink, getLineDecoration, getPlaceholder, getShadow, getShapeType, getStrokeStyle, setFillColor, setPlaceholder, setShapeType, setStrokeStyle |
| Methods inherited from interface org.apache.poi.sl.usermodel.Shape |
|---|
draw, getAnchor, getSheet |
| Methods inherited from interface org.apache.poi.sl.draw.geom.IAdjustableShape |
|---|
getAdjustValue |
| Methods inherited from interface org.apache.poi.sl.usermodel.PlaceableShape |
|---|
getAnchor, getFlipHorizontal, getFlipVertical, getRotation, getSheet, setFlipHorizontal, setFlipVertical, setRotation |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Field Detail |
|---|
protected static final int DEFAULT_WIDTH
protected static final int DEFAULT_HEIGHT
| Constructor Detail |
|---|
protected HSLFTableCell(EscherContainerRecord escherRecord,
HSLFTable parent)
escherRecord - EscherSpContainer which holds information about this shapeparent - the parent of the shapepublic HSLFTableCell(HSLFTable parent)
parent - the parent of this Shape. For example, if this text box is a cell
in a table then the parent is Table.| Method Detail |
|---|
protected EscherContainerRecord createSpContainer(boolean isChild)
HSLFTextBox
createSpContainer in class HSLFTextBoxisChild - true if the Line is inside a group, false otherwise
EscherContainerRecord which holds shape datapublic void setAnchor(java.awt.geom.Rectangle2D anchor)
HSLFShape
setAnchor in interface PlaceableShape<HSLFShape,HSLFTextParagraph>setAnchor in class HSLFShapeanchor - new anchorpublic StrokeStyle getBorderStyle(TableCell.BorderEdge edge)
TableCellnull if border is not defined
getBorderStyle in interface TableCell<HSLFShape,HSLFTextParagraph>edge - the border edge
null if border is not defined
public void setBorderStyle(TableCell.BorderEdge edge,
StrokeStyle style)
TableCellStrokeStyle of the given border edge.
A null property of the style is ignored.
setBorderStyle in interface TableCell<HSLFShape,HSLFTextParagraph>edge - border edgestyle - the new stroke stylepublic java.lang.Double getBorderWidth(TableCell.BorderEdge edge)
public void setBorderWidth(TableCell.BorderEdge edge,
double width)
TableCell
setBorderWidth in interface TableCell<HSLFShape,HSLFTextParagraph>edge - border edgewidth - the new border widthpublic java.awt.Color getBorderColor(TableCell.BorderEdge edge)
public void setBorderColor(TableCell.BorderEdge edge,
java.awt.Color color)
TableCell
setBorderColor in interface TableCell<HSLFShape,HSLFTextParagraph>edge - border edgecolor - the new border colorpublic StrokeStyle.LineDash getBorderDash(TableCell.BorderEdge edge)
public void setBorderDash(TableCell.BorderEdge edge,
StrokeStyle.LineDash dash)
TableCell
setBorderDash in interface TableCell<HSLFShape,HSLFTextParagraph>edge - border edgedash - the new border line dashpublic StrokeStyle.LineCompound getBorderCompound(TableCell.BorderEdge edge)
public void setBorderCompound(TableCell.BorderEdge edge,
StrokeStyle.LineCompound compound)
TableCell
setBorderCompound in interface TableCell<HSLFShape,HSLFTextParagraph>edge - border edgecompound - the new border line compoundprotected HSLFLine addLine(TableCell.BorderEdge edge)
public void removeBorder(TableCell.BorderEdge edge)
TableCell
removeBorder in interface TableCell<HSLFShape,HSLFTextParagraph>edge - the border edge to be cleared
protected HSLFTableCell getSiblingCell(int row,
int col)
protected void applyLineProperties(TableCell.BorderEdge edge,
HSLFLine other)
public HSLFTable getParent()
getParent in interface PlaceableShape<HSLFShape,HSLFTextParagraph>getParent in interface Shape<HSLFShape,HSLFTextParagraph>getParent in class HSLFShapeprotected void setGridSpan(int gridSpan)
gridSpan - the number of columns to be spanned/mergedprotected void setRowSpan(int rowSpan)
rowSpan - the number of rows to be spanned/mergedpublic int getGridSpan()
TableCell
getGridSpan in interface TableCell<HSLFShape,HSLFTextParagraph>public int getRowSpan()
TableCell
getRowSpan in interface TableCell<HSLFShape,HSLFTextParagraph>public boolean isMerged()
TableCell
isMerged in interface TableCell<HSLFShape,HSLFTextParagraph>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||