|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.hssf.usermodel.HSSFChart
public final class HSSFChart
Has methods for construction of a chart object.
Nested Class Summary | |
---|---|
static class |
HSSFChart.HSSFChartType
|
class |
HSSFChart.HSSFSeries
A series in a chart |
Method Summary | |
---|---|
void |
createBarChart(HSSFWorkbook workbook,
HSSFSheet sheet)
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 series)
|
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) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void createBarChart(HSSFWorkbook workbook, HSSFSheet sheet)
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 series)
public HSSFChart.HSSFChartType getType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |