Package org.apache.poi.xssf.usermodel
Class XSSFConnector
java.lang.Object
org.apache.poi.xssf.usermodel.XSSFShape
org.apache.poi.xssf.usermodel.XSSFConnector
- All Implemented Interfaces:
Shape
A connection shape drawing element. A connection shape is a line, etc.
that connects two other shapes in this drawing.
- Author:
- Yegor Kozlov
-
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedXSSFConnector(XSSFDrawing drawing, org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTConnector ctShape) Construct a new XSSFConnector object. -
Method Summary
Modifier and TypeMethodDescriptionorg.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTConnectorprotected org.openxmlformats.schemas.drawingml.x2006.main.CTShapePropertiesReturns xml bean with shape properties.intGets the shape type, one of the constants defined inShapeTypes.protected static org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTConnectorInitialize default structure of a new auto-shapevoidsetShapeType(int type) Sets the shape types.Methods inherited from class org.apache.poi.xssf.usermodel.XSSFShape
getAnchor, getDrawing, getParent, isNoFill, setFillColor, setLineStyle, setLineStyleColor, setLineWidth, setNoFill
-
Constructor Details
-
XSSFConnector
protected XSSFConnector(XSSFDrawing drawing, org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTConnector ctShape) Construct a new XSSFConnector object.- Parameters:
drawing- the XSSFDrawing that owns this shapectShape- the shape bean that holds all the shape properties
-
-
Method Details
-
prototype
protected static org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTConnector prototype()Initialize default structure of a new auto-shape -
getCTConnector
@Internal public org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTConnector getCTConnector() -
getShapeType
public int getShapeType()Gets the shape type, one of the constants defined inShapeTypes.- Returns:
- the shape type
- See Also:
-
setShapeType
public void setShapeType(int type) Sets the shape types.- Parameters:
type- the shape type, one of the constants defined inShapeTypes.- See Also:
-
getShapeProperties
protected org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties getShapeProperties()Description copied from class:XSSFShapeReturns xml bean with shape properties.- Specified by:
getShapePropertiesin classXSSFShape- Returns:
- xml bean with shape properties.
-
getShapeName
- Returns:
- the name of this shape
-