Package org.apache.poi.xssf.usermodel
Class XSSFGraphicFrame
- java.lang.Object
-
- org.apache.poi.xssf.usermodel.XSSFShape
-
- org.apache.poi.xssf.usermodel.XSSFGraphicFrame
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedXSSFGraphicFrame(XSSFDrawing drawing, org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTGraphicalObjectFrame ctGraphicFrame)Construct a new XSSFGraphicFrame object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description XSSFClientAnchorgetAnchor()Returns the frame anchor.org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTGraphicalObjectFramegetCTGraphicalObjectFrame()longgetId()Gets the frame id.StringgetName()Returns the frame name.StringgetShapeName()protected org.openxmlformats.schemas.drawingml.x2006.main.CTShapePropertiesgetShapeProperties()Returns xml bean with shape properties.protected static org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTGraphicalObjectFrameprototype()Initialize default structure of a new graphic frameprotected voidsetAnchor(XSSFClientAnchor anchor)Attaches frame to an anchor.protected voidsetChart(XSSFChart chart, String relId)Assign a DrawingML chart to the graphic frame.protected voidsetId(long id)Sets the frame id.voidsetMacro(String macro)Sets the frame macro.voidsetName(String name)Sets the frame name.-
Methods inherited from class org.apache.poi.xssf.usermodel.XSSFShape
getDrawing, getParent, isNoFill, setFillColor, setLineStyle, setLineStyleColor, setLineWidth, setNoFill
-
-
-
-
Constructor Detail
-
XSSFGraphicFrame
protected XSSFGraphicFrame(XSSFDrawing drawing, org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTGraphicalObjectFrame ctGraphicFrame)
Construct a new XSSFGraphicFrame object.- Parameters:
drawing- the XSSFDrawing that owns this framectGraphicFrame- the XML bean that stores this frame content
-
-
Method Detail
-
getCTGraphicalObjectFrame
@Internal public org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTGraphicalObjectFrame getCTGraphicalObjectFrame()
-
prototype
protected static org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTGraphicalObjectFrame prototype()
Initialize default structure of a new graphic frame
-
setMacro
public void setMacro(String macro)
Sets the frame macro.
-
setName
public void setName(String name)
Sets the frame name.
-
getName
public String getName()
Returns the frame name.- Returns:
- name of the frame
-
setAnchor
protected void setAnchor(XSSFClientAnchor anchor)
Attaches frame to an anchor.
-
getAnchor
public XSSFClientAnchor getAnchor()
Returns the frame anchor.
-
setChart
protected void setChart(XSSFChart chart, String relId)
Assign a DrawingML chart to the graphic frame.
-
getId
public long getId()
Gets the frame id.
-
setId
protected void setId(long id)
Sets the frame id.
-
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
public String getShapeName()
-
-