Package org.apache.poi.xssf.usermodel
Class XSSFShape
- java.lang.Object
-
- org.apache.poi.xssf.usermodel.XSSFShape
-
- All Implemented Interfaces:
Shape
- Direct Known Subclasses:
XSSFConnector,XSSFGraphicFrame,XSSFPicture,XSSFShapeGroup,XSSFSimpleShape
public abstract class XSSFShape extends Object implements Shape
Represents a shape in a SpreadsheetML drawing.
-
-
Field Summary
Fields Modifier and Type Field Description protected XSSFAnchoranchoranchor that is used by this shapeprotected XSSFDrawingdrawingParent drawingprotected XSSFShapeGroupparentThe parent shape, always not-null for shapes in groups
-
Constructor Summary
Constructors Constructor Description XSSFShape()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description XSSFAnchorgetAnchor()XSSFDrawinggetDrawing()Return the drawing that owns this shapeXSSFShapeGroupgetParent()protected abstract org.openxmlformats.schemas.drawingml.x2006.main.CTShapePropertiesgetShapeProperties()Returns xml bean with shape properties.booleanisNoFill()voidsetFillColor(int red, int green, int blue)voidsetLineStyle(int lineStyle)Sets the line style.voidsetLineStyleColor(int red, int green, int blue)voidsetLineWidth(double lineWidth)Specifies the width to be used for the underline stroke.voidsetNoFill(boolean noFill)-
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.ss.usermodel.Shape
getShapeName
-
-
-
-
Field Detail
-
drawing
protected XSSFDrawing drawing
Parent drawing
-
parent
protected XSSFShapeGroup parent
The parent shape, always not-null for shapes in groups
-
anchor
protected XSSFAnchor anchor
anchor that is used by this shape
-
-
Method Detail
-
getDrawing
public XSSFDrawing getDrawing()
Return the drawing that owns this shape- Returns:
- the parent drawing that owns this shape
-
getParent
public XSSFShapeGroup getParent()
-
getAnchor
public XSSFAnchor getAnchor()
-
getShapeProperties
protected abstract org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties getShapeProperties()
Returns xml bean with shape properties.- Returns:
- xml bean with shape properties.
-
setFillColor
public void setFillColor(int red, int green, int blue)- Specified by:
setFillColorin interfaceShape
-
setLineStyleColor
public void setLineStyleColor(int red, int green, int blue)- Specified by:
setLineStyleColorin interfaceShape
-
setLineWidth
public void setLineWidth(double lineWidth)
Specifies the width to be used for the underline stroke.- Parameters:
lineWidth- width in points
-
setLineStyle
public void setLineStyle(int lineStyle)
Sets the line style.
-
-