@Beta public class XWPFChart extends XDDFChart
POIXMLDocumentPart.RelationPart
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_HEIGHT
default height of chart in emu
(emu中图表的默认高度)
|
static int |
DEFAULT_WIDTH
default width of chart in emu
(emu中图表的默认宽度)
|
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.
(将此通过其关系 id 已知的图表附加到给定的文本运行。)
|
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
(设置图表宽度)
|
clear, clearChartSeries, commit, createCategoryAxis, createData, createDateAxis, createRelationshipInChart, createSeriesAxis, createValueAxis, deleteLegend, deleteShapeProperties, displayBlanksAs, fillSheet, findDefinedParagraphProperty, findDefinedRunProperty, formatRange, getAxes, getChartIndex, getChartSeries, getCTChart, getCTChartSpace, getCTPlotArea, getFormattedTitle, getOrAddLegend, getOrAddManualLayout, getOrAddShapeProperties, getOrAddView3D, getTitle, getTitleOverlay, getWorkbook, importContent, incrementSeriesCount, isPlotOnlyVisibleCells, plot, removeTitle, 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, isCommitted, onDocumentCreate, onDocumentRead, onDocumentRemove, onSave, prepareForCommit, read, rebase, removeRelation, removeRelation, removeRelation, setCommitted, toString
public 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+xml
(part - 包含图表数据的包部分,内容类型必须是 application/vnd.openxmlformats-officedocument.drawingml.chart+xml)
java.io.IOException
(java.io.IOException)
org.apache.xmlbeans.XmlException
(org.apache.xmlbeans.XmlException)
protected POIXMLRelation getChartRelation()
getChartRelation
in class
XDDFChart
(类 XDDFChart 中的 getChartRelation)
protected POIXMLRelation getChartWorkbookRelation()
getChartWorkbookRelation
in class
XDDFChart
(XDDFChart 类中的 getChartWorkbookRelation)
protected POIXMLFactory getChartFactory()
getChartFactory
in class
XDDFChart
(类 XDDFChart 中的 getChartFactory)
public java.lang.Long getChecksum()
public boolean equals(java.lang.Object obj)
equals
in class
java.lang.Object
public int hashCode()
hashCode
in class
java.lang.Object
protected void attach(java.lang.String chartRelId, XWPFRun run) throws InvalidFormatException, java.io.IOException
chartRelId
- the relation id of this chart in its parent document.
(chartRelId - 此图表在其父文档中的关系 ID。)
run
- the text run to which this chart will be inlined.
(run - 此图表将内联到的文本运行。)
InvalidFormatException
(无效格式异常)
java.io.IOException
(java.io.IOException)
public void setChartHeight(long height)
height
- height of chart
(height - 图表的高度)
public void setChartWidth(long width)
width
- width of chart
(width - 图表的宽度)
public long getChartHeight()
public long getChartWidth()
public void setChartBoundingBox(long width, long height)
width
- width of chart
(width - 图表的宽度)
height
- height of chart
(height - 图表的高度)
public void setChartTopMargin(long margin)
margin
- margin from top
(边距 - 从顶部开始的边距)
public long getChartTopMargin(long margin)
margin
-
(利润 -)
public void setChartBottomMargin(long margin)
margin
- margin from Bottom
(边距 - 距底部的边距)
public long getChartBottomMargin(long margin)
margin
-
(利润 -)
public void setChartLeftMargin(long margin)
margin
- margin from left
(边距 - 距左边的边距)
public long getChartLeftMargin(long margin)
margin
-
(利润 -)
public void setChartRightMargin(long margin)
margin
- from right
(边距 - 从右)
public long getChartRightMargin(long margin)
margin
-
(利润 -)
public void setChartMargin(long top, long right, long bottom, long left)
top
- margin from top
(top - 从顶部开始的边距)
right
- margin from right
(右边距右边距)
bottom
- margin from bottom
(底部 - 距底部的边距)
left
- margin from left
(left - 左边距)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.