public interface TableCell<S extends Shape<S,P>,P extends TextParagraph<S,P,? extends TextRun>> extends TextShape<S,P>
Modifier and Type | Interface and Description |
---|---|
static class |
TableCell.BorderEdge |
TextShape.TextAutofit, TextShape.TextDirection, TextShape.TextPlaceholder
Modifier and Type | Method and Description |
---|---|
StrokeStyle |
getBorderStyle(TableCell.BorderEdge edge)
Return line style of given edge or
null if border is not defined
(如果没有定义边框,则返回给定边缘的线条样式或 null)
|
int |
getGridSpan()
Get the number of columns to be spanned/merged
(获取要跨越/合并的列数)
|
int |
getRowSpan()
Get the number of rows to be spanned/merged
(获取要跨越/合并的行数)
|
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 |
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.
(设置给定边框边缘的 StrokeStyle。)
|
void |
setBorderWidth(TableCell.BorderEdge edge, double width)
Convenience method for setting the border width.
(设置边框宽度的便捷方法。)
|
appendText, getInsets, getText, getTextDirection, getTextHeight, getTextHeight, getTextParagraphs, getTextPlaceholder, getTextRotation, getVerticalAlignment, getWordWrap, isHorizontalCentered, resizeToFitText, resizeToFitText, setHorizontalCentered, setInsets, setText, setTextDirection, setTextPlaceholder, setTextRotation, setVerticalAlignment, setWordWrap
createHyperlink, getFillColor, getFillStyle, getGeometry, getHyperlink, getLineDecoration, getPlaceholder, getPlaceholderDetails, getShadow, getShapeType, getStrokeStyle, isPlaceholder, setFillColor, setPlaceholder, setShapeType, setStrokeStyle
draw, getAnchor, getParent, getShapeId, getShapeName, getSheet
getAdjustValue
getAnchor, getFlipHorizontal, getFlipVertical, getParent, getRotation, getSheet, setAnchor, setFlipHorizontal, setFlipVertical, setRotation
StrokeStyle getBorderStyle(TableCell.BorderEdge edge)
null
if border is not defined
(如果没有定义边框,则返回给定边缘的线条样式或 null)
edge
- the border edge
(edge - 边界边缘)
null
if border is not defined
(给定边缘的线条样式,如果未定义边框,则为 null)
void setBorderStyle(TableCell.BorderEdge edge, StrokeStyle style)
StrokeStyle
of the given border edge. A
null
property of the style is ignored.
(设置给定边框边缘的 StrokeStyle。样式的 null 属性将被忽略。)
edge
- border edge
(边缘 - 边界边缘)
style
- the new stroke style
(风格 - 新的笔触风格)
void setBorderWidth(TableCell.BorderEdge edge, double width)
edge
- border edge
(边缘 - 边界边缘)
width
- the new border width
(width - 新的边框宽度)
void setBorderColor(TableCell.BorderEdge edge, java.awt.Color color)
edge
- border edge
(边缘 - 边界边缘)
color
- the new border color
(color - 新的边框颜色)
void setBorderCompound(TableCell.BorderEdge edge, StrokeStyle.LineCompound compound)
edge
- border edge
(边缘 - 边界边缘)
compound
- the new border line compound
(复合 - 新的边界线复合)
void setBorderDash(TableCell.BorderEdge edge, StrokeStyle.LineDash dash)
edge
- border edge
(边缘 - 边界边缘)
dash
- the new border line dash
(破折号 - 新的边界线破折号)
void removeBorder(TableCell.BorderEdge edge)
edge
- the border edge to be cleared
(edge - 要清除的边界边缘)
int getGridSpan()
int getRowSpan()
boolean isMerged()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.