public class XSLFTableCell extends XSLFTextShape
Modifier and Type | Method and Description |
---|---|
double |
getBorderBottom() |
Color |
getBorderBottomColor() |
double |
getBorderLeft() |
Color |
getBorderLeftColor() |
double |
getBorderRight() |
Color |
getBorderRightColor() |
double |
getBorderTop() |
Color |
getBorderTopColor() |
Color |
getFillColor() |
protected org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody |
getTextBody(boolean create) |
VerticalAlignment |
getVerticalAlignment()
Returns the type of vertical alignment for the text.
|
org.openxmlformats.schemas.drawingml.x2006.main.CTTableCell |
getXmlObject() |
void |
setBorderBottom(double width) |
void |
setBorderBottomColor(Color color) |
void |
setBorderLeft(double width) |
void |
setBorderLeftColor(Color color) |
void |
setBorderRight(double width) |
void |
setBorderRightColor(Color color) |
void |
setBorderTop(double width) |
void |
setBorderTopColor(Color color) |
void |
setBottomInset(double margin)
Sets the botom 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 |
setTopInset(double margin)
Sets the top margin.
|
void |
setVerticalAlignment(VerticalAlignment anchor)
Sets the type of vertical alignment for the text.
|
addNewTextParagraph, clearText, drawContent, getBottomInset, getLeftInset, getRightInset, getText, getTextAutofit, getTextBodyPr, getTextDirection, getTextHeight, getTextParagraphs, getTextType, getTopInset, getWordWrap, iterator, resizeToFitText, setPlaceholder, setText, setTextAutofit, setTextDirection, setWordWrap
draw, getAnchor, getCTPlaceholder, getFlipHorizontal, getFlipVertical, getLineCap, getLineColor, getLineDash, getLineHeadDecoration, getLineHeadLength, getLineHeadWidth, getLineTailDecoration, getLineTailLength, getLineTailWidth, getLineWidth, getNvPr, getRotation, getShadow, getShapeId, getShapeName, getShapeType, getSheet, getSpPr, getSpStyle, setAnchor, setFlipHorizontal, setFlipVertical, setLineCap, setLineColor, setLineDash, setLineHeadDecoration, setLineHeadLength, setLineHeadWidth, setLineTailDecoration, setLineTailLength, setLineTailWidth, setLineWidth, setRotation, setShapeType
applyTransform
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public org.openxmlformats.schemas.drawingml.x2006.main.CTTableCell getXmlObject()
getXmlObject
in class XSLFSimpleShape
protected org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody getTextBody(boolean create)
getTextBody
in class XSLFTextShape
public void setLeftInset(double margin)
XSLFTextShape
setLeftInset
in class XSLFTextShape
margin
- the left marginXSLFTextShape.getLeftInset()
public void setRightInset(double margin)
XSLFTextShape
setRightInset
in class XSLFTextShape
margin
- the right marginXSLFTextShape.getRightInset()
public void setTopInset(double margin)
XSLFTextShape
setTopInset
in class XSLFTextShape
margin
- the top marginXSLFTextShape.getTopInset()
public void setBottomInset(double margin)
XSLFTextShape
setBottomInset
in class XSLFTextShape
margin
- the bottom marginXSLFTextShape.getBottomInset()
public void setBorderLeft(double width)
public double getBorderLeft()
public void setBorderLeftColor(Color color)
public Color getBorderLeftColor()
public void setBorderRight(double width)
public double getBorderRight()
public void setBorderRightColor(Color color)
public Color getBorderRightColor()
public void setBorderTop(double width)
public double getBorderTop()
public void setBorderTopColor(Color color)
public Color getBorderTopColor()
public void setBorderBottom(double width)
public double getBorderBottom()
public void setBorderBottomColor(Color color)
public Color getBorderBottomColor()
public void setFillColor(Color color)
setFillColor
in class XSLFSimpleShape
color
- the solid color fill.
The value of null
unsets the solidFIll attribute from the underlying xmlpublic Color getFillColor()
getFillColor
in class XSLFSimpleShape
public void setVerticalAlignment(VerticalAlignment anchor)
XSLFTextShape
setVerticalAlignment
in class XSLFTextShape
anchor
- - the type of alignment.
A null
values unsets this property.public VerticalAlignment getVerticalAlignment()
XSLFTextShape
getVerticalAlignment
in class XSLFTextShape
Copyright © 2020. All rights reserved.