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

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


    chartElement.setChartClassAttribute(type.toString());
    // set chart:class for the chart:series
    NodeList plotAreas = chartElement.getElementsByTagName(ChartPlotAreaElement.ELEMENT_NAME.getQName());

    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


      OfficeDocumentContentElement content = contentDom.newOdfElement(OfficeDocumentContentElement.class);
      OfficeBodyElement body = contentDom.newOdfElement(OfficeBodyElement.class);
      content.appendChild(body);
      ChartChartElement chart = contentDom.newOdfElement(ChartChartElement.class);
      //create children element
      ChartPlotAreaElement plotArea = chart.newChartPlotAreaElement();
      body.appendChild(chart);
      p0.getParentNode().insertBefore(content, p0);


      XPath xpath = contentDom.getXPath();
View Full Code Here

TOP

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

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.