org.apache.poi.xslf.usermodel
Class XSLFTableCell
- java.lang.Object
-
- org.apache.poi.xslf.usermodel.XSLFShape
-
- org.apache.poi.xslf.usermodel.XSLFSimpleShape
-
- org.apache.poi.xslf.usermodel.XSLFTextShape
-
- org.apache.poi.xslf.usermodel.XSLFTableCell
-
- All Implemented Interfaces:
- java.lang.Iterable<XSLFTextParagraph>
public class XSLFTableCell extends XSLFTextShape
Represents a cell of a table in a .pptx presentation
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetBorderBottom()java.awt.ColorgetBorderBottomColor()doublegetBorderLeft()java.awt.ColorgetBorderLeftColor()doublegetBorderRight()java.awt.ColorgetBorderRightColor()doublegetBorderTop()java.awt.ColorgetBorderTopColor()java.awt.ColorgetFillColor()VerticalAlignmentgetVerticalAlignment()Returns the type of vertical alignment for the text.org.openxmlformats.schemas.drawingml.x2006.main.CTTableCellgetXmlObject()voidsetBorderBottom(double width)voidsetBorderBottomColor(java.awt.Color color)voidsetBorderLeft(double width)voidsetBorderLeftColor(java.awt.Color color)voidsetBorderRight(double width)voidsetBorderRightColor(java.awt.Color color)voidsetBorderTop(double width)voidsetBorderTopColor(java.awt.Color color)voidsetBottomInset(double margin)Sets the botom margin.voidsetFillColor(java.awt.Color color)Specifies a solid color fill.voidsetLeftInset(double margin)Sets the left margin.voidsetRightInset(double margin)Sets the right margin.voidsetTopInset(double margin)Sets the top margin.voidsetVerticalAlignment(VerticalAlignment anchor)Sets the type of vertical alignment for the text.-
Methods inherited from class org.apache.poi.xslf.usermodel.XSLFTextShape
addNewTextParagraph, clearText, drawContent, getBottomInset, getLeftInset, getRightInset, getText, getTextAutofit, getTextDirection, getTextHeight, getTextParagraphs, getTextType, getTopInset, getWordWrap, iterator, resizeToFitText, setPlaceholder, setText, setTextAutofit, setTextDirection, setWordWrap
-
Methods inherited from class org.apache.poi.xslf.usermodel.XSLFSimpleShape
draw, getAnchor, getFlipHorizontal, getFlipVertical, getLineCap, getLineColor, getLineDash, getLineHeadDecoration, getLineHeadLength, getLineHeadWidth, getLineTailDecoration, getLineTailLength, getLineTailWidth, getLineWidth, getRotation, getShadow, getShapeId, getShapeName, getShapeType, getSheet, setAnchor, setFlipHorizontal, setFlipVertical, setLineCap, setLineColor, setLineDash, setLineHeadDecoration, setLineHeadLength, setLineHeadWidth, setLineTailDecoration, setLineTailLength, setLineTailWidth, setLineWidth, setRotation, setShapeType
-
-
-
-
Method Detail
-
getXmlObject
public org.openxmlformats.schemas.drawingml.x2006.main.CTTableCell getXmlObject()
- Overrides:
getXmlObjectin classXSLFSimpleShape- Returns:
- the xml bean holding this shape's data
-
setLeftInset
public void setLeftInset(double margin)
Description copied from class:XSLFTextShapeSets the left margin.- Overrides:
setLeftInsetin classXSLFTextShape- Parameters:
margin- the left margin- See Also:
XSLFTextShape.getLeftInset()
-
setRightInset
public void setRightInset(double margin)
Description copied from class:XSLFTextShapeSets the right margin.- Overrides:
setRightInsetin classXSLFTextShape- Parameters:
margin- the right margin- See Also:
XSLFTextShape.getRightInset()
-
setTopInset
public void setTopInset(double margin)
Description copied from class:XSLFTextShapeSets the top margin.- Overrides:
setTopInsetin classXSLFTextShape- Parameters:
margin- the top margin- See Also:
XSLFTextShape.getTopInset()
-
setBottomInset
public void setBottomInset(double margin)
Description copied from class:XSLFTextShapeSets the botom margin.- Overrides:
setBottomInsetin classXSLFTextShape- Parameters:
margin- the bottom margin- See Also:
XSLFTextShape.getBottomInset()
-
setBorderLeft
public void setBorderLeft(double width)
-
getBorderLeft
public double getBorderLeft()
-
setBorderLeftColor
public void setBorderLeftColor(java.awt.Color color)
-
getBorderLeftColor
public java.awt.Color getBorderLeftColor()
-
setBorderRight
public void setBorderRight(double width)
-
getBorderRight
public double getBorderRight()
-
setBorderRightColor
public void setBorderRightColor(java.awt.Color color)
-
getBorderRightColor
public java.awt.Color getBorderRightColor()
-
setBorderTop
public void setBorderTop(double width)
-
getBorderTop
public double getBorderTop()
-
setBorderTopColor
public void setBorderTopColor(java.awt.Color color)
-
getBorderTopColor
public java.awt.Color getBorderTopColor()
-
setBorderBottom
public void setBorderBottom(double width)
-
getBorderBottom
public double getBorderBottom()
-
setBorderBottomColor
public void setBorderBottomColor(java.awt.Color color)
-
getBorderBottomColor
public java.awt.Color getBorderBottomColor()
-
setFillColor
public void setFillColor(java.awt.Color color)
Specifies a solid color fill. The shape is filled entirely with the specified color.- Overrides:
setFillColorin classXSLFSimpleShape- Parameters:
color- the solid color fill. The value ofnullunsets the solidFIll attribute from the underlying xml
-
getFillColor
public java.awt.Color getFillColor()
- Overrides:
getFillColorin classXSLFSimpleShape- Returns:
- solid fill color of null if not set
-
setVerticalAlignment
public void setVerticalAlignment(VerticalAlignment anchor)
Description copied from class:XSLFTextShapeSets the type of vertical alignment for the text.- Overrides:
setVerticalAlignmentin classXSLFTextShape- Parameters:
anchor- - the type of alignment. Anullvalues unsets this property.
-
getVerticalAlignment
public VerticalAlignment getVerticalAlignment()
Description copied from class:XSLFTextShapeReturns the type of vertical alignment for the text.- Overrides:
getVerticalAlignmentin classXSLFTextShape- Returns:
- the type of vertical alignment
-
-
DataMelt 3.0 © DataMelt by jWork.ORG