public final class HSLFTableCell extends HSLFTextBox implements TableCell<HSLFShape,HSLFTextParagraph>
TableCell.BorderEdgeTextShape.TextAutofit, TextShape.TextDirection, TextShape.TextPlaceholder| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_HEIGHT |
protected static int |
DEFAULT_WIDTH |
WrapByPoints, WrapNone, WrapSquare, WrapThrough, WrapTopBottom_hyperlink, ADJUST_VALUES, DEFAULT_LINE_WIDTH| Modifier | Constructor and Description |
|---|---|
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.
|
setDefaultTextPropertiesafterInsert, appendText, getBottomInset, getEscherTextboxWrapper, getHFPlaceholderAtom, getHyperlinks, getInsets, getLeftInset, getMetroShape, getPlaceholderAtom, getRawText, getRightInset, getRunType, getText, getTextDirection, getTextHeight, getTextHeight, getTextId, getTextParagraphs, getTextPlaceholder, getTextRotation, getTopInset, getVerticalAlignment, getWordWrap, getWordWrapEx, isAlignToBaseline, isHorizontalCentered, isPlaceholder, iterator, resizeToFitText, resizeToFitText, setAlignToBaseline, setBottomInset, setHorizontalCentered, setInsets, setLeftInset, setRightInset, setRunType, setSheet, setText, setTextDirection, setTextId, setTextPlaceholder, setTextRotation, setTopInset, setVerticalAlignment, setWordWrap, setWordWrapEx, storeTextcreateHyperlink, getAdjustValue, getFillColor, getGeometry, getHyperlink, getLineBackgroundColor, getLineCap, getLineColor, getLineCompound, getLineDash, getLineDecoration, getLineHeadDecoration, getLineHeadLength, getLineHeadWidth, getLineTailDecoration, getLineTailLength, getLineTailWidth, getLineWidth, getPlaceholder, getPlaceholderDetails, getShadow, getShadowAngle, getShadowColor, getShadowDistance, getStrokeStyle, setFillColor, setHyperlink, setLineBackgroundColor, setLineCap, setLineColor, setLineCompound, setLineDash, setLineHeadDecoration, setLineHeadLength, setLineHeadWidth, setLineTailDecoration, setLineTailLength, setLineTailWidth, setLineWidth, setPlaceholder, setStrokeStyledraw, getAnchor, getClientData, getClientDataRecord, getClientRecords, getEscherChild, getEscherChild, getEscherChild, getEscherChild, getEscherOptRecord, getEscherProperty, getEscherProperty, getEscherProperty, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getFillStyle, getFlipHorizontal, getFlipVertical, getRotation, getShapeId, getShapeName, getShapeType, getSheet, getSpContainer, moveTo, setEscherProperty, setEscherProperty, setEscherProperty, setEscherProperty, setEscherProperty, setFlipHorizontal, setFlipVertical, setRotation, setShapeId, setShapeTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendText, getInsets, getText, getTextDirection, getTextHeight, getTextHeight, getTextParagraphs, getTextPlaceholder, getTextRotation, getVerticalAlignment, getWordWrap, isHorizontalCentered, resizeToFitText, resizeToFitText, setHorizontalCentered, setInsets, setText, setTextDirection, setTextPlaceholder, setTextRotation, setVerticalAlignment, setWordWrapcreateHyperlink, getFillColor, getFillStyle, getGeometry, getHyperlink, getLineDecoration, getPlaceholder, getPlaceholderDetails, getShadow, getShapeType, getStrokeStyle, isPlaceholder, setFillColor, setPlaceholder, setShapeType, setStrokeStyledraw, getAnchor, getShapeId, getShapeName, getSheetgetAdjustValuegetAnchor, getFlipHorizontal, getFlipVertical, getRotation, getSheet, setFlipHorizontal, setFlipVertical, setRotationprotected static final int DEFAULT_WIDTH
protected static final int DEFAULT_HEIGHT
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.protected EscherContainerRecord createSpContainer(boolean isChild)
HSLFTextBoxcreateSpContainer in class HSLFTextBoxisChild - true if the Line is inside a group, false otherwiseEscherContainerRecord which holds shape datapublic void setAnchor(java.awt.geom.Rectangle2D anchor)
HSLFShapesetAnchor in interface PlaceableShape<HSLFShape,HSLFTextParagraph>setAnchor in class HSLFShapeanchor - new anchorpublic StrokeStyle getBorderStyle(TableCell.BorderEdge edge)
getBorderStyle in interface TableCell<HSLFShape,HSLFTextParagraph>public void setBorderStyle(TableCell.BorderEdge edge, StrokeStyle style)
setBorderStyle in interface TableCell<HSLFShape,HSLFTextParagraph>public java.lang.Double getBorderWidth(TableCell.BorderEdge edge)
public void setBorderWidth(TableCell.BorderEdge edge, double width)
setBorderWidth in interface TableCell<HSLFShape,HSLFTextParagraph>public java.awt.Color getBorderColor(TableCell.BorderEdge edge)
public void setBorderColor(TableCell.BorderEdge edge, java.awt.Color color)
setBorderColor in interface TableCell<HSLFShape,HSLFTextParagraph>public StrokeStyle.LineDash getBorderDash(TableCell.BorderEdge edge)
public void setBorderDash(TableCell.BorderEdge edge, StrokeStyle.LineDash dash)
setBorderDash in interface TableCell<HSLFShape,HSLFTextParagraph>public StrokeStyle.LineCompound getBorderCompound(TableCell.BorderEdge edge)
public void setBorderCompound(TableCell.BorderEdge edge, StrokeStyle.LineCompound compound)
setBorderCompound in interface TableCell<HSLFShape,HSLFTextParagraph>protected HSLFLine addLine(TableCell.BorderEdge edge)
public void removeBorder(TableCell.BorderEdge edge)
removeBorder in interface TableCell<HSLFShape,HSLFTextParagraph>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()
getGridSpan in interface TableCell<HSLFShape,HSLFTextParagraph>public int getRowSpan()
getRowSpan in interface TableCell<HSLFShape,HSLFTextParagraph>public boolean isMerged()
isMerged in interface TableCell<HSLFShape,HSLFTextParagraph>