|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.xslf.usermodel.XSLFShape org.apache.poi.xslf.usermodel.XSLFSimpleShape org.apache.poi.xslf.usermodel.XSLFTextShape org.apache.poi.xslf.usermodel.XSLFTableCell
public class XSLFTableCell
Represents a cell of a table in a .pptx presentation
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.poi.sl.usermodel.TableCell |
---|
TableCell.BorderEdge |
Nested classes/interfaces inherited from interface org.apache.poi.sl.usermodel.TextShape |
---|
TextShape.TextAutofit, TextShape.TextDirection, TextShape.TextPlaceholder |
Field Summary |
---|
Fields inherited from class org.apache.poi.xslf.usermodel.XSLFShape |
---|
PML_NS |
Method Summary | |
---|---|
java.awt.geom.Rectangle2D |
getAnchor()
|
StrokeStyle.LineCap |
getBorderCap(TableCell.BorderEdge edge)
|
java.awt.Color |
getBorderColor(TableCell.BorderEdge edge)
|
StrokeStyle.LineCompound |
getBorderCompound(TableCell.BorderEdge edge)
|
StrokeStyle.LineDash |
getBorderDash(TableCell.BorderEdge edge)
|
StrokeStyle |
getBorderStyle(TableCell.BorderEdge edge)
|
java.lang.Double |
getBorderWidth(TableCell.BorderEdge edge)
|
protected org.openxmlformats.schemas.drawingml.x2006.main.CTTableCellProperties |
getCellProperties(boolean create)
|
java.awt.Color |
getFillColor()
|
PaintStyle |
getFillPaint()
|
int |
getGridSpan()
|
int |
getRowSpan()
|
protected org.apache.xmlbeans.XmlObject |
getShapeProperties()
Return the shape specific (visual) properties |
protected org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody |
getTextBody(boolean create)
|
TextShape.TextDirection |
getTextDirection()
|
VerticalAlignment |
getVerticalAlignment()
|
protected org.openxmlformats.schemas.drawingml.x2006.main.CTTransform2D |
getXfrm()
Return a fake-xfrm which is used for calculating the text height |
boolean |
isMerged()
|
protected org.apache.poi.xslf.usermodel.XSLFTableCell.XSLFCellTextParagraph |
newTextParagraph(org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraph p)
Helper method to allow subclasses to provide their own text paragraph |
void |
removeBorder(TableCell.BorderEdge edge)
|
void |
setAnchor(java.awt.geom.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,
java.awt.Color color)
|
void |
setBorderCompound(TableCell.BorderEdge edge,
StrokeStyle.LineCompound compound)
|
void |
setBorderDash(TableCell.BorderEdge edge,
StrokeStyle.LineDash dash)
|
void |
setBorderStyle(TableCell.BorderEdge edge,
StrokeStyle style)
|
void |
setBorderWidth(TableCell.BorderEdge edge,
double width)
|
void |
setBottomInset(double margin)
Sets the bottom margin. |
void |
setFillColor(java.awt.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)
|
void |
setTopInset(double margin)
Sets the top margin. |
void |
setVerticalAlignment(VerticalAlignment anchor)
|
Methods inherited from class org.apache.poi.xslf.usermodel.XSLFTextShape |
---|
addNewTextParagraph, appendText, clearText, getBottomInset, getInsets, getLeftInset, getRightInset, getText, getTextAutofit, getTextBodyPr, getTextBodyPr, getTextHeight, getTextHeight, getTextParagraphs, getTextPlaceholder, getTextRotation, getTextType, getTopInset, getWordWrap, isHorizontalCentered, iterator, resizeToFitText, resizeToFitText, setHorizontalCentered, setInsets, setPlaceholder, setText, setTextAutofit, setTextPlaceholder, setTextRotation, setWordWrap |
Methods inherited from class org.apache.poi.xslf.usermodel.XSLFShape |
---|
draw, fetchShapeProperty, getBgPr, getBgRef, getChild, getCNvPr, getCTPlaceholder, getGrpSpPr, getParent, getPlaceholder, getShapeId, getShapeName, getSheet, getSpStyle, getXmlObject, selectPaint, selectPaint, selectPaint, selectPaint, selectPaint, selectProperty, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.poi.sl.usermodel.TextShape |
---|
appendText, getInsets, getText, getTextHeight, getTextHeight, getTextParagraphs, getTextPlaceholder, getTextRotation, getWordWrap, isHorizontalCentered, resizeToFitText, resizeToFitText, setHorizontalCentered, setInsets, setText, setTextPlaceholder, setTextRotation, setWordWrap |
Methods inherited from interface org.apache.poi.sl.usermodel.SimpleShape |
---|
createHyperlink, getFillStyle, getGeometry, getHyperlink, getLineDecoration, getPlaceholder, getShadow, getShapeType, getStrokeStyle, setPlaceholder, setShapeType, setStrokeStyle |
Methods inherited from interface org.apache.poi.sl.usermodel.Shape |
---|
draw, getParent, getSheet |
Methods inherited from interface org.apache.poi.sl.draw.geom.IAdjustableShape |
---|
getAdjustValue |
Methods inherited from interface org.apache.poi.sl.usermodel.PlaceableShape |
---|
getFlipHorizontal, getFlipVertical, getParent, getRotation, getSheet, setFlipHorizontal, setFlipVertical, setRotation |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
protected org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody getTextBody(boolean create)
getTextBody
in class XSLFTextShape
protected org.openxmlformats.schemas.drawingml.x2006.main.CTTableCellProperties getCellProperties(boolean create)
public void setLeftInset(double margin)
XSLFTextShape
setLeftInset
in class XSLFTextShape
margin
- the left marginXSLFTextShape.getLeftInset()
public void setRightInset(double margin)
XSLFTextShape
setRightInset
in class XSLFTextShape
margin
- the right marginXSLFTextShape.getRightInset()
public void setTopInset(double margin)
XSLFTextShape
setTopInset
in class XSLFTextShape
margin
- the top marginXSLFTextShape.getTopInset()
public void setBottomInset(double margin)
XSLFTextShape
setBottomInset
in class XSLFTextShape
margin
- the bottom marginXSLFTextShape.getBottomInset()
public void removeBorder(TableCell.BorderEdge edge)
removeBorder
in interface TableCell<XSLFShape,XSLFTextParagraph>
public StrokeStyle getBorderStyle(TableCell.BorderEdge edge)
getBorderStyle
in interface TableCell<XSLFShape,XSLFTextParagraph>
public void setBorderStyle(TableCell.BorderEdge edge, StrokeStyle style)
setBorderStyle
in interface TableCell<XSLFShape,XSLFTextParagraph>
public java.lang.Double getBorderWidth(TableCell.BorderEdge edge)
public void setBorderWidth(TableCell.BorderEdge edge, double width)
setBorderWidth
in interface TableCell<XSLFShape,XSLFTextParagraph>
public void setBorderColor(TableCell.BorderEdge edge, java.awt.Color color)
setBorderColor
in interface TableCell<XSLFShape,XSLFTextParagraph>
public java.awt.Color getBorderColor(TableCell.BorderEdge edge)
public StrokeStyle.LineCompound getBorderCompound(TableCell.BorderEdge edge)
public void setBorderCompound(TableCell.BorderEdge edge, StrokeStyle.LineCompound compound)
setBorderCompound
in interface TableCell<XSLFShape,XSLFTextParagraph>
public StrokeStyle.LineDash getBorderDash(TableCell.BorderEdge edge)
public void setBorderDash(TableCell.BorderEdge edge, StrokeStyle.LineDash dash)
setBorderDash
in interface TableCell<XSLFShape,XSLFTextParagraph>
public StrokeStyle.LineCap getBorderCap(TableCell.BorderEdge edge)
public void setBorderCap(TableCell.BorderEdge edge, StrokeStyle.LineCap cap)
public void setFillColor(java.awt.Color color)
setFillColor
in interface SimpleShape<XSLFShape,XSLFTextParagraph>
setFillColor
in class XSLFSimpleShape
color
- the solid color fill.
The value of null
unsets the solidFIll attribute from the underlying xmlpublic java.awt.Color getFillColor()
getFillColor
in interface SimpleShape<XSLFShape,XSLFTextParagraph>
getFillColor
in class XSLFSimpleShape
public PaintStyle getFillPaint()
getFillPaint
in class XSLFShape
public int getGridSpan()
getGridSpan
in interface TableCell<XSLFShape,XSLFTextParagraph>
public int getRowSpan()
getRowSpan
in interface TableCell<XSLFShape,XSLFTextParagraph>
public void setVerticalAlignment(VerticalAlignment anchor)
setVerticalAlignment
in interface TextShape<XSLFShape,XSLFTextParagraph>
setVerticalAlignment
in class XSLFTextShape
public VerticalAlignment getVerticalAlignment()
getVerticalAlignment
in interface TextShape<XSLFShape,XSLFTextParagraph>
getVerticalAlignment
in class XSLFTextShape
public void setTextDirection(TextShape.TextDirection orientation)
setTextDirection
in interface TextShape<XSLFShape,XSLFTextParagraph>
setTextDirection
in class XSLFTextShape
public TextShape.TextDirection getTextDirection()
getTextDirection
in interface TextShape<XSLFShape,XSLFTextParagraph>
getTextDirection
in class XSLFTextShape
protected org.openxmlformats.schemas.drawingml.x2006.main.CTTransform2D getXfrm()
public void setAnchor(java.awt.geom.Rectangle2D anchor)
setAnchor
in interface PlaceableShape<XSLFShape,XSLFTextParagraph>
setAnchor
in class XSLFSimpleShape
public java.awt.geom.Rectangle2D getAnchor()
getAnchor
in interface PlaceableShape<XSLFShape,XSLFTextParagraph>
getAnchor
in interface Shape<XSLFShape,XSLFTextParagraph>
getAnchor
in class XSLFSimpleShape
public boolean isMerged()
isMerged
in interface TableCell<XSLFShape,XSLFTextParagraph>
protected org.apache.poi.xslf.usermodel.XSLFTableCell.XSLFCellTextParagraph newTextParagraph(org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraph p)
XSLFTextShape
newTextParagraph
in class XSLFTextShape
p
- the xml reference
protected org.apache.xmlbeans.XmlObject getShapeProperties()
XSLFShape
getShapeProperties
in class XSLFShape
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |