Package org.apache.poi.sl.usermodel
Interface TableCell<S extends Shape<S,P>,P extends TextParagraph<S,P,? extends TextRun>>
- All Superinterfaces:
IAdjustableShape,Iterable<P>,PlaceableShape<S,,P> Shape<S,,P> SimpleShape<S,,P> TextShape<S,P>
- All Known Implementing Classes:
HSLFTableCell,XSLFTableCell
public interface TableCell<S extends Shape<S,P>,P extends TextParagraph<S,P,? extends TextRun>>
extends TextShape<S,P>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.apache.poi.sl.usermodel.TextShape
TextShape.TextAutofit, TextShape.TextDirection, TextShape.TextPlaceholder -
Method Summary
Modifier and TypeMethodDescriptionReturn line style of given edge ornullif border is not definedintGet the number of columns to be spanned/mergedintGet the number of rows to be spanned/mergedbooleanisMerged()Return if this cell is part of a merged cell.voidRemove all line attributes of the given border edgevoidsetBorderColor(TableCell.BorderEdge edge, Color color) Convenience method for setting the border color.voidsetBorderCompound(TableCell.BorderEdge edge, StrokeStyle.LineCompound compound) Convenience method for setting the border line compound.voidsetBorderDash(TableCell.BorderEdge edge, StrokeStyle.LineDash dash) Convenience method for setting the border line dash.voidsetBorderStyle(TableCell.BorderEdge edge, StrokeStyle style) Sets theStrokeStyleof the given border edge.voidsetBorderWidth(TableCell.BorderEdge edge, double width) Convenience method for setting the border width.Methods inherited from interface org.apache.poi.sl.draw.geom.IAdjustableShape
getAdjustValueMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.apache.poi.sl.usermodel.PlaceableShape
getAnchor, getFlipHorizontal, getFlipVertical, getParent, getRotation, getSheet, setAnchor, setFlipHorizontal, setFlipVertical, setRotationMethods inherited from interface org.apache.poi.sl.usermodel.Shape
draw, getAnchor, getParent, getShapeId, getShapeName, getSheetMethods inherited from interface org.apache.poi.sl.usermodel.SimpleShape
createHyperlink, getFillColor, getFillStyle, getGeometry, getHyperlink, getLineDecoration, getPlaceholder, getPlaceholderDetails, getShadow, getShapeType, getStrokeStyle, isPlaceholder, setFillColor, setPlaceholder, setShapeType, setStrokeStyleMethods inherited from interface org.apache.poi.sl.usermodel.TextShape
appendText, getInsets, getText, getTextDirection, getTextHeight, getTextHeight, getTextParagraphs, getTextPlaceholder, getTextRotation, getVerticalAlignment, getWordWrap, isHorizontalCentered, resizeToFitText, resizeToFitText, setHorizontalCentered, setInsets, setText, setTextDirection, setTextPlaceholder, setTextRotation, setVerticalAlignment, setWordWrap
-
Method Details
-
getBorderStyle
Return line style of given edge ornullif border is not defined- Parameters:
edge- the border edge- Returns:
- line style of given edge or
nullif border is not defined
-
setBorderStyle
Sets theStrokeStyleof the given border edge. Anullproperty of the style is ignored.- Parameters:
edge- border edgestyle- the new stroke style
-
setBorderWidth
Convenience method for setting the border width.- Parameters:
edge- border edgewidth- the new border width
-
setBorderColor
Convenience method for setting the border color.- Parameters:
edge- border edgecolor- the new border color
-
setBorderCompound
Convenience method for setting the border line compound.- Parameters:
edge- border edgecompound- the new border line compound
-
setBorderDash
Convenience method for setting the border line dash.- Parameters:
edge- border edgedash- the new border line dash
-
removeBorder
Remove all line attributes of the given border edge- Parameters:
edge- the border edge to be cleared
-
getGridSpan
int getGridSpan()Get the number of columns to be spanned/merged- Returns:
- the grid span
- Since:
- POI 3.15-beta2
-
getRowSpan
int getRowSpan()Get the number of rows to be spanned/merged- Returns:
- the row span
- Since:
- POI 3.15-beta2
-
isMerged
boolean isMerged()Return if this cell is part of a merged cell. The top/left cell of a merged region is not regarded as merged - its grid and/or row span is greater than one.- Returns:
- true if this a merged cell
- Since:
- POI 3.15-beta2
-