public final class HSSFChart
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
HSSFChart.HSSFChartType |
static class |
HSSFChart.HSSFSeries
A series in a chart
(图表中的系列)
|
Modifier and Type | Method and Description |
---|---|
void |
createBarChart(HSSFWorkbook workbook, HSSFSheet parentSheet)
Creates a bar chart.
(创建条形图。)
|
HSSFChart.HSSFSeries |
createSeries() |
int |
getChartHeight()
Get the height of the chart.
(获取图表的高度。)
|
java.lang.String |
getChartTitle()
Returns the chart's title, if there is one, or null if not
(如果有则返回图表的标题,如果没有则返回 null)
|
int |
getChartWidth()
Get the width of the chart.
(获取图表的宽度。)
|
int |
getChartX()
Get the X offset of the chart
(获取图表的 X 偏移量)
|
int |
getChartY()
Get the Y offset of the chart
(获取图表的 Y 偏移量)
|
HSSFChart.HSSFSeries[] |
getSeries()
Returns the series of the chart
(返回图表的系列)
|
static HSSFChart[] |
getSheetCharts(HSSFSheet sheet)
Returns all the charts for the given sheet.
(返回给定工作表的所有图表。)
|
HSSFChart.HSSFChartType |
getType() |
boolean |
removeSeries(HSSFChart.HSSFSeries remSeries) |
void |
setChartHeight(int height)
Sets the height of the chart.
(设置图表的高度。)
|
void |
setChartTitle(java.lang.String title)
Changes the chart's title, but only if there was one already.
(更改图表的标题,但前提是已经有一个。)
|
void |
setChartWidth(int width)
Sets the width of the chart.
(设置图表的宽度。)
|
void |
setChartX(int x)
Sets the X offset of the chart
(设置图表的 X 偏移量)
|
void |
setChartY(int y)
Sets the Y offset of the chart
(设置图表的 Y 偏移)
|
void |
setValueRange(int axisIndex, java.lang.Double minimum, java.lang.Double maximum, java.lang.Double majorUnit, java.lang.Double minorUnit)
Set value range (basic Axis Options)
(设定值范围(基本轴选项))
|
public void createBarChart(HSSFWorkbook workbook, HSSFSheet parentSheet)
NOTE: Does not yet work... checking it in just so others can take a look.
(创建条形图。 API 需要一些工作。 :) 注意:还没有工作...检查它只是为了让其他人可以看看。)public static HSSFChart[] getSheetCharts(HSSFSheet sheet)
public int getChartX()
public int getChartY()
public int getChartWidth()
ChartRecord
(获取图表的宽度。图表记录)
public int getChartHeight()
ChartRecord
(获取图表的高度。图表记录)
public void setChartX(int x)
public void setChartY(int y)
public void setChartWidth(int width)
ChartRecord
(设置图表的宽度。图表记录)
public void setChartHeight(int height)
ChartRecord
(设置图表的高度。图表记录)
public HSSFChart.HSSFSeries[] getSeries()
public java.lang.String getChartTitle()
public void setChartTitle(java.lang.String title)
public void setValueRange(int axisIndex, java.lang.Double minimum, java.lang.Double maximum, java.lang.Double majorUnit, java.lang.Double minorUnit)
axisIndex
- 0 - primary axis, 1 - secondary axis
(axisIndex - 0 - 主轴,1 - 次轴)
minimum
- minimum value; Double.NaN - automatic; null - no change
(最小值 - 最小值; Double.NaN - 自动; null - 没有变化)
maximum
- maximum value; Double.NaN - automatic; null - no change
(最大值 - 最大值; Double.NaN - 自动; null - 没有变化)
majorUnit
- major unit value; Double.NaN - automatic; null - no change
(majorUnit - 主要单位值; Double.NaN - 自动; null - 没有变化)
minorUnit
- minor unit value; Double.NaN - automatic; null - no change
(minorUnit - 次要单位值; Double.NaN - 自动; null - 没有变化)
public HSSFChart.HSSFSeries createSeries() throws java.lang.Exception
java.lang.Exception
(java.lang.异常)
public boolean removeSeries(HSSFChart.HSSFSeries remSeries)
public HSSFChart.HSSFChartType getType()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.