public class XSLFTableCell extends XSLFTextShape implements TableCell<XSLFShape,XSLFTextParagraph>
XSLFShape.ReparseFactory<T extends org.apache.xmlbeans.XmlObject>TableCell.BorderEdgeTextShape.TextAutofit, TextShape.TextDirection, TextShape.TextPlaceholder| Modifier and Type | Method and Description |
|---|---|
Rectangle2D |
getAnchor() |
StrokeStyle.LineCap |
getBorderCap(TableCell.BorderEdge edge) |
Color |
getBorderColor(TableCell.BorderEdge edge) |
StrokeStyle.LineCompound |
getBorderCompound(TableCell.BorderEdge edge) |
StrokeStyle.LineDash |
getBorderDash(TableCell.BorderEdge edge) |
XDDFLineProperties |
getBorderProperties(TableCell.BorderEdge edge) |
StrokeStyle |
getBorderStyle(TableCell.BorderEdge edge) |
Double |
getBorderWidth(TableCell.BorderEdge edge) |
protected org.openxmlformats.schemas.drawingml.x2006.main.CTTableCellProperties |
getCellProperties(boolean create) |
Color |
getFillColor() |
PaintStyle |
getFillPaint() |
int |
getGridSpan() |
int |
getRowSpan() |
protected org.apache.xmlbeans.XmlObject |
getShapeProperties()
Return the shape specific (visual) properties
|
protected org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody |
getTextBody(boolean create) |
TextShape.TextDirection |
getTextDirection() |
VerticalAlignment |
getVerticalAlignment() |
protected org.openxmlformats.schemas.drawingml.x2006.main.CTTransform2D |
getXfrm()
Return a fake-xfrm which is used for calculating the text height
|
boolean |
isMerged() |
protected org.apache.poi.xslf.usermodel.XSLFTableCell.XSLFCellTextParagraph |
newTextParagraph(org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraph p)
Helper method to allow subclasses to provide their own text paragraph
|
void |
removeBorder(TableCell.BorderEdge edge) |
void |
setAnchor(Rectangle2D anchor)
There's no real anchor for table cells - this method is used to
temporarily store the location of the cell for a later retrieval, e.g.
|
void |
setBorderCap(TableCell.BorderEdge edge,
StrokeStyle.LineCap cap) |
void |
setBorderColor(TableCell.BorderEdge edge,
Color color) |
void |
setBorderCompound(TableCell.BorderEdge edge,
StrokeStyle.LineCompound compound) |
void |
setBorderDash(TableCell.BorderEdge edge,
StrokeStyle.LineDash dash) |
void |
setBorderProperties(TableCell.BorderEdge edge,
XDDFLineProperties properties) |
void |
setBorderStyle(TableCell.BorderEdge edge,
StrokeStyle style) |
void |
setBorderWidth(TableCell.BorderEdge edge,
double width) |
void |
setBottomInset(double margin)
Sets the bottom margin.
|
void |
setFillColor(Color color)
Specifies a solid color fill.
|
void |
setLeftInset(double margin)
Sets the left margin.
|
void |
setRightInset(double margin)
Sets the right margin.
|
void |
setTextDirection(TextShape.TextDirection orientation) |
void |
setTopInset(double margin)
Sets the top margin.
|
void |
setVerticalAlignment(VerticalAlignment anchor) |
addNewTextParagraph, appendText, clearText, findDefinedParagraphProperty, findDefinedRunProperty, getBottomInset, getInsets, getLeftInset, getRightInset, getText, getTextAutofit, getTextBody, getTextBodyPr, getTextBodyPr, getTextHeight, getTextHeight, getTextParagraphs, getTextPlaceholder, getTextRotation, getTextType, getTopInset, getWordWrap, isHorizontalCentered, iterator, resizeToFitText, resizeToFitText, setHorizontalCentered, setInsets, setPlaceholder, setText, setTextAutofit, setTextPlaceholder, setTextRotation, setWordWrapcreateHyperlink, getAdjustValue, getFillStyle, getFlipHorizontal, getFlipVertical, getGeometry, getHyperlink, getLineCap, getLineColor, getLineCompound, getLineDash, getLineDecoration, getLineHeadDecoration, getLineHeadLength, getLineHeadWidth, getLinePaint, getLineTailDecoration, getLineTailLength, getLineTailWidth, getLineWidth, getRotation, getShadow, getShapeType, getStrokeStyle, getXfrm, setFlipHorizontal, setFlipVertical, setLineCap, setLineColor, setLineCompound, setLineDash, setLineHeadDecoration, setLineHeadLength, setLineHeadWidth, setLineTailDecoration, setLineTailLength, setLineTailWidth, setLineWidth, setRotation, setShapeType, setStrokeStyledraw, fetchShapeProperty, getBgPr, getBgRef, getChild, getCNvPr, getGrpSpPr, getParent, getPlaceholder, getPlaceholderDetails, getShapeId, getShapeName, getSheet, getSpStyle, getXmlObject, isPlaceholder, selectPaint, selectPaint, selectPaint, selectPaint, selectPaint, selectPaint, selectProperty, setParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendText, getInsets, getText, getTextHeight, getTextHeight, getTextParagraphs, getTextPlaceholder, getTextRotation, getWordWrap, isHorizontalCentered, resizeToFitText, resizeToFitText, setHorizontalCentered, setInsets, setText, setTextPlaceholder, setTextRotation, setWordWrapcreateHyperlink, getFillStyle, getGeometry, getHyperlink, getLineDecoration, getPlaceholder, getPlaceholderDetails, getShadow, getShapeType, getStrokeStyle, isPlaceholder, setPlaceholder, setShapeType, setStrokeStyledraw, getParent, getShapeId, getShapeName, getSheetgetAdjustValuegetFlipHorizontal, getFlipVertical, getParent, getRotation, getSheet, setFlipHorizontal, setFlipVertical, setRotationforEach, iterator, spliteratorprotected org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody getTextBody(boolean create)
getTextBody in class XSLFTextShapeprotected org.openxmlformats.schemas.drawingml.x2006.main.CTTableCellProperties getCellProperties(boolean create)
public void setLeftInset(double margin)
XSLFTextShapesetLeftInset in class XSLFTextShapemargin - the left marginXSLFTextShape.getLeftInset()public void setRightInset(double margin)
XSLFTextShapesetRightInset in class XSLFTextShapemargin - the right marginXSLFTextShape.getRightInset()public void setTopInset(double margin)
XSLFTextShapesetTopInset in class XSLFTextShapemargin - the top marginXSLFTextShape.getTopInset()public void setBottomInset(double margin)
XSLFTextShapesetBottomInset in class XSLFTextShapemargin - the bottom marginXSLFTextShape.getBottomInset()public XDDFLineProperties getBorderProperties(TableCell.BorderEdge edge)
public void setBorderProperties(TableCell.BorderEdge edge, XDDFLineProperties properties)
public void removeBorder(TableCell.BorderEdge edge)
removeBorder in interface TableCell<XSLFShape,XSLFTextParagraph>public StrokeStyle getBorderStyle(TableCell.BorderEdge edge)
getBorderStyle in interface TableCell<XSLFShape,XSLFTextParagraph>public void setBorderStyle(TableCell.BorderEdge edge, StrokeStyle style)
setBorderStyle in interface TableCell<XSLFShape,XSLFTextParagraph>public Double getBorderWidth(TableCell.BorderEdge edge)
public void setBorderWidth(TableCell.BorderEdge edge, double width)
setBorderWidth in interface TableCell<XSLFShape,XSLFTextParagraph>public void setBorderColor(TableCell.BorderEdge edge, Color color)
setBorderColor in interface TableCell<XSLFShape,XSLFTextParagraph>public Color getBorderColor(TableCell.BorderEdge edge)
public StrokeStyle.LineCompound getBorderCompound(TableCell.BorderEdge edge)
public void setBorderCompound(TableCell.BorderEdge edge, StrokeStyle.LineCompound compound)
setBorderCompound in interface TableCell<XSLFShape,XSLFTextParagraph>public StrokeStyle.LineDash getBorderDash(TableCell.BorderEdge edge)
public void setBorderDash(TableCell.BorderEdge edge, StrokeStyle.LineDash dash)
setBorderDash in interface TableCell<XSLFShape,XSLFTextParagraph>public StrokeStyle.LineCap getBorderCap(TableCell.BorderEdge edge)
public void setBorderCap(TableCell.BorderEdge edge, StrokeStyle.LineCap cap)
public void setFillColor(Color color)
setFillColor in interface SimpleShape<XSLFShape,XSLFTextParagraph>setFillColor in class XSLFSimpleShapecolor - the solid color fill. The value of null unsets
the solidFIll attribute from the underlying xmlpublic Color getFillColor()
getFillColor in interface SimpleShape<XSLFShape,XSLFTextParagraph>getFillColor in class XSLFSimpleShapepublic PaintStyle getFillPaint()
getFillPaint in class XSLFShapepublic int getGridSpan()
getGridSpan in interface TableCell<XSLFShape,XSLFTextParagraph>public int getRowSpan()
getRowSpan in interface TableCell<XSLFShape,XSLFTextParagraph>public void setVerticalAlignment(VerticalAlignment anchor)
setVerticalAlignment in interface TextShape<XSLFShape,XSLFTextParagraph>setVerticalAlignment in class XSLFTextShapepublic VerticalAlignment getVerticalAlignment()
getVerticalAlignment in interface TextShape<XSLFShape,XSLFTextParagraph>getVerticalAlignment in class XSLFTextShapepublic void setTextDirection(TextShape.TextDirection orientation)
setTextDirection in interface TextShape<XSLFShape,XSLFTextParagraph>setTextDirection in class XSLFTextShapepublic TextShape.TextDirection getTextDirection()
getTextDirection in interface TextShape<XSLFShape,XSLFTextParagraph>getTextDirection in class XSLFTextShapeprotected org.openxmlformats.schemas.drawingml.x2006.main.CTTransform2D getXfrm()
public void setAnchor(Rectangle2D anchor)
setAnchor in interface PlaceableShape<XSLFShape,XSLFTextParagraph>setAnchor in class XSLFSimpleShapepublic Rectangle2D getAnchor()
getAnchor in interface PlaceableShape<XSLFShape,XSLFTextParagraph>getAnchor in interface Shape<XSLFShape,XSLFTextParagraph>getAnchor in class XSLFSimpleShapepublic boolean isMerged()
isMerged in interface TableCell<XSLFShape,XSLFTextParagraph>protected org.apache.poi.xslf.usermodel.XSLFTableCell.XSLFCellTextParagraph newTextParagraph(org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraph p)
XSLFTextShapenewTextParagraph in class XSLFTextShapep - the xml referenceprotected org.apache.xmlbeans.XmlObject getShapeProperties()
XSLFShapegetShapeProperties in class XSLFShape