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
|
int |
getChartWidth()
Get the width of the chart.
|
int |
getChartX()
Get the X offset of the chart
|
int |
getChartY()
Get the Y offset of the chart
|
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
|
void |
setChartY(int y)
Sets the Y offset of the chart
|
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.
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 axisminimum
- minimum value; Double.NaN - automatic; null - no changemaximum
- maximum value; Double.NaN - automatic; null - no changemajorUnit
- major unit value; Double.NaN - automatic; null - no changeminorUnit
- minor unit value; Double.NaN - automatic; null - no changepublic HSSFChart.HSSFSeries createSeries() throws java.lang.Exception
java.lang.Exception
public boolean removeSeries(HSSFChart.HSSFSeries remSeries)
public HSSFChart.HSSFChartType getType()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.