public class XSLFTableCell extends XSLFTextShape implements TableCell<XSLFShape,XSLFTextParagraph>
TableCell.BorderEdgeTextShape.TextAutofit, TextShape.TextDirection, TextShape.TextPlaceholder| Modifier and Type | Method and Description |
|---|---|
Rectangle2D |
getAnchor()
Returns the anchor (the bounding box rectangle) of this shape.
|
StrokeStyle.LineCap |
getBorderCap(TableCell.BorderEdge edge) |
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 |
Double |
getBorderWidth(TableCell.BorderEdge edge) |
Color |
getFillColor()
Returns the solid color fill.
|
PaintStyle |
getFillPaint() |
int |
getGridSpan()
Get the number of columns to be spanned/merged
|
int |
getRowSpan()
Get the number of rows to be spanned/merged
|
TextShape.TextDirection |
getTextDirection() |
VerticalAlignment |
getVerticalAlignment()
Returns the type of vertical alignment for the text.
|
boolean |
isMerged()
Return if this cell is part of a merged cell.
|
void |
removeBorder(TableCell.BorderEdge edge)
Remove all line attributes of the given border 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)
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(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)
sets the vertical orientation
|
void |
setTopInset(double margin)
Sets the top margin.
|
void |
setVerticalAlignment(VerticalAlignment anchor)
Sets the type of vertical alignment for the text.
|
addNewTextParagraph, appendText, clearText, findDefinedParagraphProperty, findDefinedRunProperty, getBottomInset, getInsets, getLeftInset, getRightInset, getText, getTextAutofit, getTextBody, 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, getLineTailDecoration, getLineTailLength, getLineTailWidth, getLineWidth, getRotation, getShadow, getShapeType, getStrokeStyle, setFlipHorizontal, setFlipVertical, setLineCap, setLineColor, setLineCompound, setLineDash, setLineHeadDecoration, setLineHeadLength, setLineHeadWidth, setLineTailDecoration, setLineTailLength, setLineTailWidth, setLineWidth, setRotation, setShapeType, setStrokeStyledraw, getParent, getPlaceholder, getPlaceholderDetails, getShapeId, getShapeName, getSheet, getXmlObject, isPlaceholder, setParentequals, 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, spliteratorpublic 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 void removeBorder(TableCell.BorderEdge edge)
TableCellremoveBorder in interface TableCell<XSLFShape,XSLFTextParagraph>edge - the border edge to be clearedpublic StrokeStyle getBorderStyle(TableCell.BorderEdge edge)
TableCellnull 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)
TableCellStrokeStyle 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 Double getBorderWidth(TableCell.BorderEdge edge)
public void setBorderWidth(TableCell.BorderEdge edge, double width)
TableCellsetBorderWidth in interface TableCell<XSLFShape,XSLFTextParagraph>edge - border edgewidth - the new border widthpublic void setBorderColor(TableCell.BorderEdge edge, Color color)
TableCellsetBorderColor in interface TableCell<XSLFShape,XSLFTextParagraph>edge - border edgecolor - the new border colorpublic Color getBorderColor(TableCell.BorderEdge edge)
public StrokeStyle.LineCompound getBorderCompound(TableCell.BorderEdge edge)
public void setBorderCompound(TableCell.BorderEdge edge, StrokeStyle.LineCompound compound)
TableCellsetBorderCompound 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)
TableCellsetBorderDash 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(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()
SimpleShapegetFillColor in interface SimpleShape<XSLFShape,XSLFTextParagraph>getFillColor in class XSLFSimpleShapepublic PaintStyle getFillPaint()
public int getGridSpan()
TableCellgetGridSpan in interface TableCell<XSLFShape,XSLFTextParagraph>public int getRowSpan()
TableCellgetRowSpan in interface TableCell<XSLFShape,XSLFTextParagraph>public void setVerticalAlignment(VerticalAlignment anchor)
TextShapesetVerticalAlignment in interface TextShape<XSLFShape,XSLFTextParagraph>setVerticalAlignment in class XSLFTextShapeanchor - - the type of alignment.
A null values unsets this property.public VerticalAlignment getVerticalAlignment()
TextShapegetVerticalAlignment in interface TextShape<XSLFShape,XSLFTextParagraph>getVerticalAlignment in class XSLFTextShapepublic void setTextDirection(TextShape.TextDirection orientation)
TextShapesetTextDirection in interface TextShape<XSLFShape,XSLFTextParagraph>setTextDirection in class XSLFTextShapeorientation - vertical orientation of the textpublic TextShape.TextDirection getTextDirection()
getTextDirection in interface TextShape<XSLFShape,XSLFTextParagraph>getTextDirection in class XSLFTextShapepublic void setAnchor(Rectangle2D anchor)
setAnchor in interface PlaceableShape<XSLFShape,XSLFTextParagraph>setAnchor in class XSLFSimpleShapeanchor - the position of this shape within the drawing canvas.
The coordinates are expressed in pointspublic Rectangle2D getAnchor()
ShapegetAnchor in interface PlaceableShape<XSLFShape,XSLFTextParagraph>getAnchor in interface Shape<XSLFShape,XSLFTextParagraph>getAnchor in class XSLFSimpleShapepublic boolean isMerged()
TableCellisMerged in interface TableCell<XSLFShape,XSLFTextParagraph>Copyright © 2010 - 2020 Adobe. All Rights Reserved