@Beta public class XWPFChart extends XDDFChart
POIXMLDocumentPart.RelationPart| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_HEIGHT
default height of chart in emu
|
static int |
DEFAULT_WIDTH
default width of chart in emu
|
axes, chart, chartSpace| Modifier | Constructor and Description |
|---|---|
protected |
XWPFChart()
constructor to
Create a new chart in document
|
protected |
XWPFChart(PackagePart part)
Construct a chart from a package part.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
attach(java.lang.String chartRelId,
XWPFRun run)
Attach this chart known by its relation id to the given text run.
|
boolean |
equals(java.lang.Object obj) |
long |
getChartBottomMargin(long margin)
get margin from Bottom
|
protected POIXMLFactory |
getChartFactory() |
long |
getChartHeight()
get chart height
|
long |
getChartLeftMargin(long margin)
get margin from left
|
protected POIXMLRelation |
getChartRelation() |
long |
getChartRightMargin(long margin)
get margin from Right
|
long |
getChartTopMargin(long margin)
get margin from Top
|
long |
getChartWidth()
get chart width
|
protected POIXMLRelation |
getChartWorkbookRelation() |
java.lang.Long |
getChecksum() |
int |
hashCode() |
void |
setChartBottomMargin(long margin)
set margin from bottom
|
void |
setChartBoundingBox(long width,
long height)
set chart height and width
|
void |
setChartHeight(long height)
set chart height
|
void |
setChartLeftMargin(long margin)
set margin from left
|
void |
setChartMargin(long top,
long right,
long bottom,
long left)
set chart margin
|
void |
setChartRightMargin(long margin)
set margin from Right
|
void |
setChartTopMargin(long margin)
set margin from top
|
void |
setChartWidth(long width)
set chart width
|
commit, createCategoryAxis, createData, createDateAxis, createRelationshipInChart, createValueAxis, deleteLegend, deleteShapeProperties, displayBlanksAs, fillSheet, findDefinedParagraphProperty, findDefinedRunProperty, formatRange, getAxes, getChartIndex, getChartSeries, getCTChart, getCTChartSpace, getCTPlotArea, getFormattedTitle, getOrAddLegend, getOrAddManualLayout, getOrAddShapeProperties, getTitle, getTitleOverlay, getWorkbook, importContent, isPlotOnlyVisibleCells, plot, saveWorkbook, setAutoTitleDeleted, setBackWall, setChartIndex, setExternalId, setFloor, setPlotOnlyVisibleCells, setSheetTitle, setSideWall, setTitleOverlay, setTitleText, setValueRange, setWorkbook_invokeOnDocumentRead, addRelation, createRelationship, createRelationship, createRelationship, getNextPartNumber, getPackagePart, getParent, getRelationById, getRelationId, getRelationPartById, getRelationParts, getRelations, getTargetPart, isCommited, onDocumentCreate, onDocumentRead, onDocumentRemove, onSave, prepareForCommit, read, rebase, removeRelation, removeRelation, removeRelation, setCommited, toStringpublic static final int DEFAULT_WIDTH
public static final int DEFAULT_HEIGHT
protected XWPFChart()
protected XWPFChart(PackagePart part) throws java.io.IOException, org.apache.xmlbeans.XmlException
part - the package part holding the chart data,
the content type must be application/vnd.openxmlformats-officedocument.drawingml.chart+xmljava.io.IOExceptionorg.apache.xmlbeans.XmlExceptionprotected POIXMLRelation getChartRelation()
getChartRelation in class XDDFChartprotected POIXMLRelation getChartWorkbookRelation()
getChartWorkbookRelation in class XDDFChartprotected POIXMLFactory getChartFactory()
getChartFactory in class XDDFChartpublic java.lang.Long getChecksum()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectprotected void attach(java.lang.String chartRelId,
XWPFRun run)
throws InvalidFormatException,
java.io.IOException
chartRelId - the relation id of this chart in its parent document.run - the text run to which this chart will be inlined.InvalidFormatExceptionjava.io.IOExceptionpublic void setChartHeight(long height)
height - height of chartpublic void setChartWidth(long width)
width - width of chartpublic long getChartHeight()
public long getChartWidth()
public void setChartBoundingBox(long width,
long height)
width - width of chartheight - height of chartpublic void setChartTopMargin(long margin)
margin - margin from toppublic long getChartTopMargin(long margin)
margin - public void setChartBottomMargin(long margin)
margin - margin from Bottompublic long getChartBottomMargin(long margin)
margin - public void setChartLeftMargin(long margin)
margin - margin from leftpublic long getChartLeftMargin(long margin)
margin - public void setChartRightMargin(long margin)
margin - from rightpublic long getChartRightMargin(long margin)
margin - public void setChartMargin(long top,
long right,
long bottom,
long left)
top - margin from topright - margin from rightbottom - margin from bottomleft - margin from leftCopyright 2018 The Apache Software Foundation or its licensors, as applicable.