public final class HSLFTableCell extends HSLFTextBox implements TableCell<HSLFShape,HSLFTextParagraph>
TableCell.BorderEdge
TextShape.TextAutofit, TextShape.TextDirection, TextShape.TextPlaceholder
WrapByPoints, WrapNone, WrapSquare, WrapThrough, WrapTopBottom
DEFAULT_LINE_WIDTH
Constructor and Description |
---|
HSLFTableCell(HSLFTable parent)
Create a new TableCell.
|
Modifier and Type | Method and Description |
---|---|
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) |
int |
getGridSpan()
Get the number of columns to be spanned/merged
|
HSLFTable |
getParent() |
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 |
setAnchor(Rectangle2D anchor)
Sets the anchor (the bounding box rectangle) of this shape.
|
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.
|
appendText, getBottomInset, 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
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, setLineBackgroundColor, setLineCap, setLineColor, setLineCompound, setLineDash, setLineHeadDecoration, setLineHeadLength, setLineHeadWidth, setLineTailDecoration, setLineTailLength, setLineTailWidth, setLineWidth, setPlaceholder, setStrokeStyle
draw, getAnchor, getClientDataRecord, getEscherChild, getEscherChild, getEscherChild, getEscherChild, getEscherOptRecord, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getFillStyle, getFlipHorizontal, getFlipVertical, getRotation, getShapeId, getShapeName, getShapeType, getSheet, getSpContainer, moveTo, setEscherProperty, setEscherProperty, setFlipHorizontal, setFlipVertical, setRotation, setShapeId, setShapeType
equals, 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
forEach, iterator, spliterator
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.public void setAnchor(Rectangle2D anchor)
HSLFShape
setAnchor
in interface PlaceableShape<HSLFShape,HSLFTextParagraph>
setAnchor
in class HSLFShape
anchor
- new anchorpublic StrokeStyle getBorderStyle(TableCell.BorderEdge edge)
TableCell
null
if border is not definedgetBorderStyle
in interface TableCell<HSLFShape,HSLFTextParagraph>
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<HSLFShape,HSLFTextParagraph>
edge
- border edgestyle
- the new stroke stylepublic Double getBorderWidth(TableCell.BorderEdge edge)
public void setBorderWidth(TableCell.BorderEdge edge, double width)
TableCell
setBorderWidth
in interface TableCell<HSLFShape,HSLFTextParagraph>
edge
- border edgewidth
- the new border widthpublic Color getBorderColor(TableCell.BorderEdge edge)
public void setBorderColor(TableCell.BorderEdge edge, Color color)
TableCell
setBorderColor
in interface TableCell<HSLFShape,HSLFTextParagraph>
edge
- border edgecolor
- the new border colorpublic StrokeStyle.LineDash getBorderDash(TableCell.BorderEdge edge)
public void setBorderDash(TableCell.BorderEdge edge, StrokeStyle.LineDash dash)
TableCell
setBorderDash
in interface TableCell<HSLFShape,HSLFTextParagraph>
edge
- border edgedash
- the new border line dashpublic StrokeStyle.LineCompound getBorderCompound(TableCell.BorderEdge edge)
public void setBorderCompound(TableCell.BorderEdge edge, StrokeStyle.LineCompound compound)
TableCell
setBorderCompound
in interface TableCell<HSLFShape,HSLFTextParagraph>
edge
- border edgecompound
- the new border line compoundpublic void removeBorder(TableCell.BorderEdge edge)
TableCell
removeBorder
in interface TableCell<HSLFShape,HSLFTextParagraph>
edge
- the border edge to be clearedpublic HSLFTable getParent()
getParent
in interface PlaceableShape<HSLFShape,HSLFTextParagraph>
getParent
in interface Shape<HSLFShape,HSLFTextParagraph>
getParent
in class HSLFShape
public int getGridSpan()
TableCell
getGridSpan
in interface TableCell<HSLFShape,HSLFTextParagraph>
public int getRowSpan()
TableCell
getRowSpan
in interface TableCell<HSLFShape,HSLFTextParagraph>
public boolean isMerged()
TableCell
isMerged
in interface TableCell<HSLFShape,HSLFTextParagraph>
Copyright © 2010 - 2020 Adobe. All Rights Reserved