Package org.odftoolkit.odfdom.dom.element.chart

Examples of org.odftoolkit.odfdom.dom.element.chart.ChartSeriesElement


    int numSeries = dataSet.getDataSeriesCount();
    Object[] valueCellRange = getValueCellRange();
    Object[] labelCellRange = getLabelCellRange();

    for (int i = 0; i < numSeries; i++) {
      ChartSeriesElement series = plotArea.newChartSeriesElement();
      series.setChartClassAttribute(chartElement.getChartClassAttribute());
      series.setProperty(StyleGraphicPropertiesElement.Stroke, "solid");
      series.setProperty(StyleGraphicPropertiesElement.FillColor, getRandColorCode());
      series.setProperty(StyleGraphicPropertiesElement.EdgeRounding, "0%");
      series.setProperty(StyleTextPropertiesElement.FontSize, "6pt");
      series.setProperty(StyleTextPropertiesElement.FontSizeAsian, "6pt");
      series.setProperty(StyleTextPropertiesElement.FontCharsetComplex, "6pt");

      if ((String) valueCellRange[i] != null) {
        series.setChartValuesCellRangeAddressAttribute((String) valueCellRange[i]);
      }

      if ((String) labelCellRange[i] != null) {
        series.setChartLabelCellAddressAttribute((String) labelCellRange[i]);
      }

      ChartDataPointElement point = series.newChartDataPointElement();
      point.setChartRepeatedAttribute(new Integer(numSeries));
    }

    ChartWallElement wall = plotArea.newChartWallElement();
    wall.setProperty(StyleGraphicPropertiesElement.Stroke, "none");
View Full Code Here


    if (plotAreas.getLength() > 0) {
      ChartPlotAreaElement plotArea = (ChartPlotAreaElement) plotAreas.item(0);
      NodeList series = plotArea.getElementsByTagName(ChartSeriesElement.ELEMENT_NAME.getQName());
      for (int i = 0; i < series.getLength(); i++) {
        ChartSeriesElement serie = (ChartSeriesElement) series.item(i);
        serie.setChartClassAttribute(type.toString());
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.odftoolkit.odfdom.dom.element.chart.ChartSeriesElement

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.