Package org.zkoss.poi.hssf.usermodel.HSSFChart

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


    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());

    ser = series[1];
    assertEquals(4, ser.getNumValues());
    assertEquals("Total Expenses", ser.getSeriesTitle());
   
    ser = series[2];
    assertEquals(4, ser.getNumValues());
    assertEquals("Profit/Loss", ser.getSeriesTitle());
   
    for(int j = 0; j < series.length; ++j) {
      System.out.println("--------"+j);
      System.out.println("ser.getValueType():"+ser.getValueType());
      System.out.println("ser.getDataCategoryLabels():"+ser.getDataCategoryLabels());
      System.out.println("ser.getDataName():"+ser.getDataName());
      System.out.println("ser.getDataSecondaryCategoryLabels():"+ser.getDataSecondaryCategoryLabels());
      System.out.println("ser.getDataValues():"+ser.getDataValues());
      System.out.println("ser.getSeries():"+ser.getSeries());
    }
  }
View Full Code Here


    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());
      assertEquals(1, ser.getValueType());
      System.out.println("ser.getDataCategoryLabels():"+ser.getDataCategoryLabels());
      System.out.println("ser.getDataName():"+ser.getDataName());
      System.out.println("ser.getDataSecondaryCategoryLabels():"+ser.getDataSecondaryCategoryLabels());
      System.out.println("ser.getDataValues():"+ser.getDataValues());
      System.out.println("ser.getSeries():"+ser.getSeries());
    }

  }
View Full Code Here

TOP

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

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.