public final class HSLFTableCell extends HSLFTextBox implements TableCell<HSLFShape,HSLFTextParagraph>
TableCell.BorderEdge
TextShape.TextAutofit, TextShape.TextDirection, TextShape.TextPlaceholder
Modifier and Type | Field and Description |
---|---|
protected static int |
DEFAULT_HEIGHT |
protected static int |
DEFAULT_WIDTH |
WrapByPoints, WrapNone, WrapSquare, WrapThrough, WrapTopBottom
_hyperlink, ADJUST_VALUES, DEFAULT_LINE_WIDTH
Modifier | Constructor and Description |
---|---|
protected |
HSLFTableCell(EscherContainerRecord escherRecord, HSLFTable parent)
Create a TableCell object and initialize it from the supplied Record container.
(创建一个 TableCell 对象并从提供的 Record 容器中初始化它。)
|
|
HSLFTableCell(HSLFTable parent)
Create a new TableCell.
(创建一个新的表格单元。)
|
Modifier and Type | Method and Description |
---|---|
protected HSLFLine |
addLine(TableCell.BorderEdge edge) |
protected void |
applyLineProperties(TableCell.BorderEdge edge, HSLFLine other) |
protected EscherContainerRecord |
createSpContainer(boolean isChild)
Create a new TextBox and initialize its internal structures
(创建一个新的 TextBox 并初始化其内部结构)
|
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
(如果没有定义边框,则返回给定边缘的线条样式或 null)
|
java.lang.Double |
getBorderWidth(TableCell.BorderEdge edge) |
int |
getGridSpan()
Get the number of columns to be spanned/merged
(获取要跨越/合并的列数)
|
HSLFTable |
getParent() |
int |
getRowSpan()
Get the number of rows to be spanned/merged
(获取要跨越/合并的行数)
|
protected HSLFTableCell |
getSiblingCell(int row, int col) |
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(java.awt.geom.Rectangle2D anchor)
Sets the anchor (the bounding box rectangle) of this shape.
(设置此形状的锚点(边界框矩形)。)
|
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.
(设置边框宽度的便捷方法。)
|
protected void |
setGridSpan(int gridSpan)
Set the gridSpan (aka col-span)
(设置 gridSpan(又名 col-span))
|
protected void |
setRowSpan(int rowSpan)
Set the rowSpan
(设置行跨度)
|
setDefaultTextProperties
afterInsert, appendText, getBottomInset, getEscherTextboxWrapper, getHFPlaceholderAtom, getHyperlinks, getInsets, getLeftInset, getMetroShape, getPlaceholderAtom, getRawText, getRightInset, getRunType, getText, getTextDirection, getTextHeight, getTextHeight, getTextId, getTextParagraphs, getTextPlaceholder, getTextRotation, getTopInset, getVerticalAlignment, getWordWrap, getWordWrapEx, isAlignToBaseline, isHorizontalCentered, isPlaceholder, iterator, resizeToFitText, resizeToFitText, setAlignToBaseline, setBottomInset, setHorizontalCentered, setInsets, setLeftInset, setRightInset, setRunType, setSheet, setText, setTextDirection, setTextId, setTextPlaceholder, setTextRotation, setTopInset, setVerticalAlignment, setWordWrap, setWordWrapEx, storeText
createHyperlink, getAdjustValue, getFillColor, getGeometry, getHyperlink, getLineBackgroundColor, getLineCap, getLineColor, getLineCompound, getLineDash, getLineDecoration, getLineHeadDecoration, getLineHeadLength, getLineHeadWidth, getLineTailDecoration, getLineTailLength, getLineTailWidth, getLineWidth, getPlaceholder, getPlaceholderDetails, getShadow, getShadowAngle, getShadowColor, getShadowDistance, getStrokeStyle, setFillColor, setHyperlink, setLineBackgroundColor, setLineCap, setLineColor, setLineCompound, setLineDash, setLineHeadDecoration, setLineHeadLength, setLineHeadWidth, setLineTailDecoration, setLineTailLength, setLineTailWidth, setLineWidth, setPlaceholder, setStrokeStyle
draw, getAnchor, getClientData, getClientDataRecord, getClientRecords, getEscherChild, getEscherChild, getEscherChild, getEscherChild, getEscherOptRecord, getEscherProperty, getEscherProperty, getEscherProperty, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getFillStyle, getFlipHorizontal, getFlipVertical, getRotation, getShapeId, getShapeName, getShapeType, getSheet, getSpContainer, moveTo, setEscherProperty, setEscherProperty, setEscherProperty, setEscherProperty, setEscherProperty, setFlipHorizontal, setFlipVertical, setRotation, setShapeId, setShapeType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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, getShapeId, getShapeName, getSheet
getAdjustValue
getAnchor, getFlipHorizontal, getFlipVertical, getRotation, getSheet, setFlipHorizontal, setFlipVertical, setRotation
protected static final int DEFAULT_WIDTH
protected static final int DEFAULT_HEIGHT
protected HSLFTableCell(EscherContainerRecord escherRecord, HSLFTable parent)
escherRecord
- EscherSpContainer which holds information about this shape
(escherRecord - 保存有关此形状的信息的 EscherSpContainer)
parent
- the parent of the shape
(parent - 形状的父级)
public HSLFTableCell(HSLFTable parent)
parent
- the parent of this Shape. For example, if this text box is a cell in a table then the parent is Table.
(parent - 此 Shape 的父级。例如,如果此文本框是表格中的一个单元格,则父级为表格。)
protected EscherContainerRecord createSpContainer(boolean isChild)
HSLFTextBox
createSpContainer
in class
HSLFTextBox
isChild
-
true
if the Line is inside a group,
false
otherwise
(isChild - 如果 Line 在组内,则为 true,否则为 false)
EscherContainerRecord
which holds shape data
(创建的包含形状数据的 EscherContainerRecord)
public void setAnchor(java.awt.geom.Rectangle2D anchor)
HSLFShape
setAnchor
in interface
PlaceableShape<HSLFShape,HSLFTextParagraph>
(接口 PlaceableShape 中的 setAnchor
setAnchor
in class
HSLFShape
anchor
- new anchor
(锚 - 新锚)
public StrokeStyle getBorderStyle(TableCell.BorderEdge edge)
TableCell
null
if border is not defined
(如果没有定义边框,则返回给定边缘的线条样式或 null)
getBorderStyle
in interface
TableCell<HSLFShape,HSLFTextParagraph>
(接口 TableCell 中的 getBorderStyle
edge
- the border edge
(edge - 边界边缘)
null
if border is not defined
(给定边缘的线条样式,如果未定义边框,则为 null)
public void setBorderStyle(TableCell.BorderEdge edge, StrokeStyle style)
TableCell
StrokeStyle
of the given border edge. A
null
property of the style is ignored.
(设置给定边框边缘的 StrokeStyle。样式的 null 属性将被忽略。)
setBorderStyle
in interface
TableCell<HSLFShape,HSLFTextParagraph>
(接口 TableCell 中的 setBorderStyle
edge
- border edge
(边缘 - 边界边缘)
style
- the new stroke style
(风格 - 新的笔触风格)
public java.lang.Double getBorderWidth(TableCell.BorderEdge edge)
public void setBorderWidth(TableCell.BorderEdge edge, double width)
TableCell
setBorderWidth
in interface
TableCell<HSLFShape,HSLFTextParagraph>
(接口 TableCell 中的 setBorderWidth
edge
- border edge
(边缘 - 边界边缘)
width
- the new border width
(width - 新的边框宽度)
public java.awt.Color getBorderColor(TableCell.BorderEdge edge)
public void setBorderColor(TableCell.BorderEdge edge, java.awt.Color color)
TableCell
setBorderColor
in interface
TableCell<HSLFShape,HSLFTextParagraph>
(接口 TableCell 中的 setBorderColor
edge
- border edge
(边缘 - 边界边缘)
color
- the new border color
(color - 新的边框颜色)
public StrokeStyle.LineDash getBorderDash(TableCell.BorderEdge edge)
public void setBorderDash(TableCell.BorderEdge edge, StrokeStyle.LineDash dash)
TableCell
setBorderDash
in interface
TableCell<HSLFShape,HSLFTextParagraph>
(接口 TableCell 中的 setBorderDash
edge
- border edge
(边缘 - 边界边缘)
dash
- the new border line dash
(破折号 - 新的边界线破折号)
public StrokeStyle.LineCompound getBorderCompound(TableCell.BorderEdge edge)
public void setBorderCompound(TableCell.BorderEdge edge, StrokeStyle.LineCompound compound)
TableCell
setBorderCompound
in interface
TableCell<HSLFShape,HSLFTextParagraph>
(接口 TableCell 中的 setBorderCompound
edge
- border edge
(边缘 - 边界边缘)
compound
- the new border line compound
(复合 - 新的边界线复合)
protected HSLFLine addLine(TableCell.BorderEdge edge)
public void removeBorder(TableCell.BorderEdge edge)
TableCell
removeBorder
in interface
TableCell<HSLFShape,HSLFTextParagraph>
(接口 TableCell 中的 removeBorder
edge
- the border edge to be cleared
(edge - 要清除的边界边缘)
protected HSLFTableCell getSiblingCell(int row, int col)
protected void applyLineProperties(TableCell.BorderEdge edge, HSLFLine other)
public HSLFTable getParent()
getParent
in interface
PlaceableShape<HSLFShape,HSLFTextParagraph>
(接口 PlaceableShape 中的 getParent
getParent
in interface
Shape<HSLFShape,HSLFTextParagraph>
(接口 Shape 中的 getParent
getParent
in class
HSLFShape
protected void setGridSpan(int gridSpan)
gridSpan
- the number of columns to be spanned/merged
(gridSpan - 要跨越/合并的列数)
protected void setRowSpan(int rowSpan)
rowSpan
- the number of rows to be spanned/merged
(rowSpan - 要跨越/合并的行数)
public int getGridSpan()
TableCell
getGridSpan
in interface
TableCell<HSLFShape,HSLFTextParagraph>
(接口 TableCell 中的 getGridSpan
public int getRowSpan()
TableCell
getRowSpan
in interface
TableCell<HSLFShape,HSLFTextParagraph>
(接口 TableCell 中的 getRowSpan
public boolean isMerged()
TableCell
isMerged
in interface
TableCell<HSLFShape,HSLFTextParagraph>
(isMerged 在接口 TableCell 中
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.