public class XSLFTableCell extends XSLFTextShape implements TableCell<XSLFShape,XSLFTextParagraph>
TableCell.BorderEdge
TextShape.TextAutofit, TextShape.TextDirection, TextShape.TextPlaceholder
Modifier and Type | Method and Description |
---|---|
StrokeStyle.LineCap |
getBorderCap(TableCell.BorderEdge edge) |
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) |
protected org.openxmlformats.schemas.drawingml.x2006.main.CTTableCellProperties |
getCellProperties(boolean create) |
java.awt.Color |
getFillColor()
Returns the solid color fill.
|
protected org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody |
getTextBody(boolean create) |
VerticalAlignment |
getVerticalAlignment()
Returns the type of vertical alignment for the text.
|
void |
removeBorder(TableCell.BorderEdge edge)
Remove all line attributes of the given border edge
|
void |
setBorderCap(TableCell.BorderEdge edge,
StrokeStyle.LineCap cap) |
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.
|
void |
setBottomInset(double margin)
Sets the bottom margin.
|
void |
setFillColor(java.awt.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, appendText, clearText, getBottomInset, getInsets, getLeftInset, getRightInset, getText, getTextAutofit, getTextBodyPr, getTextBodyPr, getTextDirection, getTextHeight, getTextParagraphs, getTextPlaceholder, getTextRotation, getTextType, getTopInset, getWordWrap, isHorizontalCentered, iterator, resizeToFitText, setHorizontalCentered, setInsets, setPlaceholder, setText, setTextAutofit, setTextDirection, setTextPlaceholder, setTextRotation, setWordWrap
createHyperlink, getAdjustValue, getAnchor, getFillStyle, getFlipHorizontal, getFlipVertical, getGeometry, getHyperlink, getLineCap, getLineColor, getLineCompound, getLineDash, getLineDecoration, getLineHeadDecoration, getLineHeadLength, getLineHeadWidth, getLinePaint, getLineTailDecoration, getLineTailLength, getLineTailWidth, getLineWidth, getRotation, getSafeXfrm, getShadow, getShapeType, getStrokeStyle, getXfrm, isPlaceholder, setAnchor, setFlipHorizontal, setFlipVertical, setLineCap, setLineColor, setLineCompound, setLineDash, setLineHeadDecoration, setLineHeadLength, setLineHeadWidth, setLineTailDecoration, setLineTailLength, setLineTailWidth, setLineWidth, setRotation, setShapeType, setStrokeStyle
draw, fetchShapeProperty, getBgPr, getBgRef, getCNvPr, getCTPlaceholder, getFillPaint, getGrpSpPr, getPaint, getParent, getPlaceholder, getShapeId, getShapeName, getSheet, getSpPr, getSpStyle, getXmlObject, selectPaint, selectPaint, selectPaint, selectPaint, selectPaint, selectProperty, setParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendText, getInsets, getText, getTextDirection, getTextHeight, getTextParagraphs, getTextPlaceholder, getTextRotation, getWordWrap, isHorizontalCentered, setHorizontalCentered, setInsets, setText, setTextDirection, setTextPlaceholder, setTextRotation, setWordWrap
createHyperlink, getFillStyle, getGeometry, getHyperlink, getLineDecoration, getPlaceholder, getShadow, getShapeType, getStrokeStyle, setPlaceholder, setShapeType, setStrokeStyle
draw, getAnchor, getParent, getSheet
getAdjustValue
getAnchor, getFlipHorizontal, getFlipVertical, getParent, getRotation, getSheet, setAnchor, setFlipHorizontal, setFlipVertical, setRotation
protected org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody getTextBody(boolean create)
getTextBody
in class XSLFTextShape
protected org.openxmlformats.schemas.drawingml.x2006.main.CTTableCellProperties getCellProperties(boolean create)
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 removeBorder(TableCell.BorderEdge edge)
TableCell
removeBorder
in interface TableCell<XSLFShape,XSLFTextParagraph>
edge
- the border edge to be clearedpublic StrokeStyle getBorderStyle(TableCell.BorderEdge edge)
TableCell
null
if border is not definedgetBorderStyle
in interface TableCell<XSLFShape,XSLFTextParagraph>
edge
- the border edgenull
if border is not definedpublic void setBorderStyle(TableCell.BorderEdge edge, StrokeStyle style)
TableCell
StrokeStyle
of the given border edge.
A null
property of the style is ignored.setBorderStyle
in interface TableCell<XSLFShape,XSLFTextParagraph>
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<XSLFShape,XSLFTextParagraph>
edge
- border edgewidth
- the new border widthpublic void setBorderColor(TableCell.BorderEdge edge, java.awt.Color color)
TableCell
setBorderColor
in interface TableCell<XSLFShape,XSLFTextParagraph>
edge
- border edgecolor
- the new border colorpublic java.awt.Color getBorderColor(TableCell.BorderEdge edge)
public StrokeStyle.LineCompound getBorderCompound(TableCell.BorderEdge edge)
public void setBorderCompound(TableCell.BorderEdge edge, StrokeStyle.LineCompound compound)
TableCell
setBorderCompound
in interface TableCell<XSLFShape,XSLFTextParagraph>
edge
- border edgecompound
- the new border line compoundpublic StrokeStyle.LineDash getBorderDash(TableCell.BorderEdge edge)
public void setBorderDash(TableCell.BorderEdge edge, StrokeStyle.LineDash dash)
TableCell
setBorderDash
in interface TableCell<XSLFShape,XSLFTextParagraph>
edge
- border edgedash
- the new border line dashpublic StrokeStyle.LineCap getBorderCap(TableCell.BorderEdge edge)
public void setBorderCap(TableCell.BorderEdge edge, StrokeStyle.LineCap cap)
public void setFillColor(java.awt.Color color)
setFillColor
in interface SimpleShape<XSLFShape,XSLFTextParagraph>
setFillColor
in class XSLFSimpleShape
color
- the solid color fill.
The value of null
unsets the solidFIll attribute from the underlying xmlpublic java.awt.Color getFillColor()
SimpleShape
getFillColor
in interface SimpleShape<XSLFShape,XSLFTextParagraph>
getFillColor
in class XSLFSimpleShape
public void setVerticalAlignment(VerticalAlignment anchor)
TextShape
setVerticalAlignment
in interface TextShape<XSLFShape,XSLFTextParagraph>
setVerticalAlignment
in class XSLFTextShape
anchor
- - the type of alignment.
A null
values unsets this property.public VerticalAlignment getVerticalAlignment()
TextShape
getVerticalAlignment
in interface TextShape<XSLFShape,XSLFTextParagraph>
getVerticalAlignment
in class XSLFTextShape
Copyright 2017 The Apache Software Foundation or its licensors, as applicable.