org.apache.poi.hssf.usermodel
Class HSSFChart

java.lang.Object
  extended by org.apache.poi.hssf.usermodel.HSSFChart

public class HSSFChart
extends java.lang.Object

Has methods for construction of a chart object.

Author:
Glen Stampoultzis (glens at apache.org)

Nested Class Summary
 class HSSFChart.HSSFSeries
          A series in a chart
 
Method Summary
 void createBarChart(HSSFWorkbook workbook, HSSFSheet sheet)
          Creates a bar chart.
 java.lang.String getChartTitle()
          Returns the chart's title, if there is one, or null if not
 HSSFChart.HSSFSeries[] getSeries()
          Returns the series of the chart
static HSSFChart[] getSheetCharts(HSSFSheet sheet)
          Returns all the charts for the given sheet.
 void setChartTitle(java.lang.String title)
          Changes the chart's title, but only if there was one already.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createBarChart

public void createBarChart(HSSFWorkbook workbook,
                           HSSFSheet sheet)
Creates a bar chart. API needs some work. :)

NOTE: Does not yet work... checking it in just so others can take a look.


getSheetCharts

public static HSSFChart[] getSheetCharts(HSSFSheet sheet)
Returns all the charts for the given sheet. NOTE: You won't be able to do very much with these charts yet, as this is very limited support


getSeries

public HSSFChart.HSSFSeries[] getSeries()
Returns the series of the chart


getChartTitle

public java.lang.String getChartTitle()
Returns the chart's title, if there is one, or null if not


setChartTitle

public void setChartTitle(java.lang.String title)
Changes the chart's title, but only if there was one already. TODO - add in the records if not



Copyright 2008 The Apache Software Foundation or its licensors, as applicable.