Package org.zkoss.poi.hssf.usermodel

Examples of org.zkoss.poi.hssf.usermodel.HSSFChart


  @Test
  public void testColumnchart() {
    HSSFSheet sheet1 = (HSSFSheet) _book.getSheet("Sheet1");
    List<ZssChartX> chartXes = new DrawingManagerImpl(sheet1).getChartXs();
    assertEquals(1, chartXes.size());
    HSSFChart chart = (HSSFChart) chartXes.get(0).getChartInfo();
    assertEquals("2003-2006 Income Summary", chart.getChartTitle());
    HSSFSeries[] series = chart.getSeries();
    assertEquals(3, series.length);
   
    HSSFSeries ser = series[0];
    assertEquals(4, ser.getNumValues());
    assertEquals("Total Revenues", ser.getSeriesTitle());
View Full Code Here


  public void testColumnchart() {
    HSSFSheet sheet1 = (HSSFSheet) _book.getSheet("Sheet1");
    List<ZssChartX> chartXes = new DrawingManagerImpl(sheet1).getChartXs();
    assertEquals(1, chartXes.size());
    HSSFChartX chartX = (HSSFChartX) chartXes.get(0);
    HSSFChart chart = (HSSFChart) chartX.getChartInfo();
    assertNull(chart.getChartTitle());
    System.out.println("getgetChartWidth():"+chart.getChartWidth());
    HSSFSeries[] series = chart.getSeries();
    assertEquals(1, series.length);
    for(int j = 0; j < series.length; ++j) {
      HSSFSeries ser = series[j];
      assertEquals(3, ser.getNumValues());
      assertEquals("2003", ser.getSeriesTitle());
View Full Code Here

TOP

Related Classes of org.zkoss.poi.hssf.usermodel.HSSFChart

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.