poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1636755 - in /poi/trunk/src: examples/src/org/apache/poi/xssf/usermodel/examples/ java/org/apache/poi/ss/usermodel/charts/ ooxml/java/org/apache/poi/xssf/usermodel/charts/ ooxml/testcases/org/apache/poi/xssf/usermodel/charts/
Date Tue, 04 Nov 2014 22:11:08 GMT
Author: nick
Date: Tue Nov  4 22:11:07 2014
New Revision: 1636755

URL: http://svn.apache.org/r1636755
Log:
Fix bug #57185 - Should be Series not Serie, latter is incorrect English / a Typo

Added:
    poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/ChartSeries.java
      - copied, changed from r1636541, poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/ChartSerie.java
    poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/LineChartSeries.java
      - copied, changed from r1636541, poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/LineChartSerie.java
    poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/ScatterChartSeries.java
      - copied, changed from r1636541, poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/ScatterChartSerie.java
    poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/charts/AbstractXSSFChartSeries.java
      - copied, changed from r1636541, poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/charts/AbstractXSSFChartSerie.java
Removed:
    poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/ChartSerie.java
    poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/LineChartSerie.java
    poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/ScatterChartSerie.java
    poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/charts/AbstractXSSFChartSerie.java
Modified:
    poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/LineChart.java
    poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/LineChartData.java
    poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/ScatterChartData.java
    poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/charts/XSSFLineChartData.java
    poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/charts/XSSFScatterChartData.java
    poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFLineChartData.java
    poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFScatterChartData.java

Modified: poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/LineChart.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/LineChart.java?rev=1636755&r1=1636754&r2=1636755&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/LineChart.java (original)
+++ poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/LineChart.java Tue Nov
 4 22:11:07 2014
@@ -16,17 +16,29 @@
 ==================================================================== */
 package org.apache.poi.xssf.usermodel.examples;
 
-import org.apache.poi.ss.usermodel.*;
-import org.apache.poi.ss.usermodel.charts.*;
+import java.io.FileOutputStream;
+
+import org.apache.poi.ss.usermodel.Cell;
+import org.apache.poi.ss.usermodel.Chart;
+import org.apache.poi.ss.usermodel.ClientAnchor;
+import org.apache.poi.ss.usermodel.Drawing;
+import org.apache.poi.ss.usermodel.Row;
+import org.apache.poi.ss.usermodel.Sheet;
+import org.apache.poi.ss.usermodel.Workbook;
+import org.apache.poi.ss.usermodel.charts.AxisCrosses;
+import org.apache.poi.ss.usermodel.charts.AxisPosition;
+import org.apache.poi.ss.usermodel.charts.ChartAxis;
+import org.apache.poi.ss.usermodel.charts.ChartDataSource;
+import org.apache.poi.ss.usermodel.charts.ChartLegend;
+import org.apache.poi.ss.usermodel.charts.DataSources;
+import org.apache.poi.ss.usermodel.charts.LegendPosition;
+import org.apache.poi.ss.usermodel.charts.LineChartData;
+import org.apache.poi.ss.usermodel.charts.ValueAxis;
 import org.apache.poi.ss.util.CellRangeAddress;
 import org.apache.poi.xssf.usermodel.XSSFWorkbook;
 
-import java.io.FileOutputStream;
-
 /**
  * Line chart example.
- *
- * @author Martin Andersson
  */
 public class LineChart {
 
@@ -66,8 +78,8 @@ public class LineChart {
         ChartDataSource<Number> ys2 = DataSources.fromNumericCellRange(sheet, new CellRangeAddress(2,
2, 0, NUM_OF_COLUMNS - 1));
 
 
-        data.addSerie(xs, ys1);
-        data.addSerie(xs, ys2);
+        data.addSeries(xs, ys1);
+        data.addSeries(xs, ys2);
 
         chart.plot(data, bottomAxis, leftAxis);
 

Copied: poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/ChartSeries.java (from r1636541,
poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/ChartSerie.java)
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/ChartSeries.java?p2=poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/ChartSeries.java&p1=poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/ChartSerie.java&r1=1636541&r2=1636755&rev=1636755&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/ChartSerie.java (original)
+++ poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/ChartSeries.java Tue Nov  4 22:11:07
2014
@@ -21,10 +21,8 @@ import org.apache.poi.ss.util.CellRefere
 
 /**
  * Basic settings for all chart series.
- *
- * @author Martin Andersson
  */
-public interface ChartSerie {
+public interface ChartSeries {
 
     /**
      * Sets the title of the series as a string literal.

Modified: poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/LineChartData.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/LineChartData.java?rev=1636755&r1=1636754&r2=1636755&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/LineChartData.java (original)
+++ poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/LineChartData.java Tue Nov  4 22:11:07
2014
@@ -17,12 +17,12 @@
 
 package org.apache.poi.ss.usermodel.charts;
 
-import org.apache.poi.util.Beta;
-
 import java.util.List;
 
+import org.apache.poi.util.Beta;
+
 /**
- * @author Martin Andersson
+ * Data for a Line Chart
  */
 @Beta
 public interface LineChartData extends ChartData {
@@ -32,10 +32,10 @@ public interface LineChartData extends C
      * @param values     data source for values.
      * @return a new line chart serie.
      */
-    LineChartSerie addSerie(ChartDataSource<?> categories, ChartDataSource<? extends
Number> values);
+    LineChartSeries addSeries(ChartDataSource<?> categories, ChartDataSource<? extends
Number> values);
 
     /**
      * @return list of all series.
      */
-    List<? extends LineChartSerie> getSeries();
+    List<? extends LineChartSeries> getSeries();
 }

Copied: poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/LineChartSeries.java (from r1636541,
poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/LineChartSerie.java)
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/LineChartSeries.java?p2=poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/LineChartSeries.java&p1=poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/LineChartSerie.java&r1=1636541&r2=1636755&rev=1636755&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/LineChartSerie.java (original)
+++ poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/LineChartSeries.java Tue Nov  4
22:11:07 2014
@@ -20,12 +20,10 @@ package org.apache.poi.ss.usermodel.char
 import org.apache.poi.util.Beta;
 
 /**
- * Represents a line chart serie.
- *
- * @author Martin Andersson
+ * Represents a line chart series.
  */
 @Beta
-public interface LineChartSerie extends ChartSerie {
+public interface LineChartSeries extends ChartSeries {
 
     /**
      * @return data source used for category axis data.

Modified: poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/ScatterChartData.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/ScatterChartData.java?rev=1636755&r1=1636754&r2=1636755&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/ScatterChartData.java (original)
+++ poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/ScatterChartData.java Tue Nov  4
22:11:07 2014
@@ -20,18 +20,18 @@ package org.apache.poi.ss.usermodel.char
 import java.util.List;
 
 /**
- * @author Roman Kashitsyn
+ * Data for a Scatter Chart
  */
 public interface ScatterChartData extends ChartData {
 	/**
 	 * @param xs data source to be used for X axis values
 	 * @param ys data source to be used for Y axis values
-	 * @return a new scatter charts serie
+	 * @return a new scatter charts series
 	 */
-	ScatterChartSerie addSerie(ChartDataSource<?> xs, ChartDataSource<? extends Number>
ys);
+	ScatterChartSeries addSerie(ChartDataSource<?> xs, ChartDataSource<? extends Number>
ys);
 
 	/**
 	 * @return list of all series
 	 */
-	List<? extends ScatterChartSerie> getSeries();
+	List<? extends ScatterChartSeries> getSeries();
 }

Copied: poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/ScatterChartSeries.java (from
r1636541, poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/ScatterChartSerie.java)
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/ScatterChartSeries.java?p2=poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/ScatterChartSeries.java&p1=poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/ScatterChartSerie.java&r1=1636541&r2=1636755&rev=1636755&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/ScatterChartSerie.java (original)
+++ poi/trunk/src/java/org/apache/poi/ss/usermodel/charts/ScatterChartSeries.java Tue Nov
 4 22:11:07 2014
@@ -20,13 +20,10 @@ package org.apache.poi.ss.usermodel.char
 import org.apache.poi.util.Beta;
 
 /**
- * Represents scatter charts serie.
- *
- * @author Roman Kashitsyn
- * @author Martin Andersson
+ * Represents scatter charts series.
  */
 @Beta
-public interface ScatterChartSerie extends ChartSerie {
+public interface ScatterChartSeries extends ChartSeries {
 
     /**
      * @return data source used for X axis values

Copied: poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/charts/AbstractXSSFChartSeries.java
(from r1636541, poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/charts/AbstractXSSFChartSerie.java)
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/charts/AbstractXSSFChartSeries.java?p2=poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/charts/AbstractXSSFChartSeries.java&p1=poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/charts/AbstractXSSFChartSerie.java&r1=1636541&r2=1636755&rev=1636755&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/charts/AbstractXSSFChartSerie.java
(original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/charts/AbstractXSSFChartSeries.java
Tue Nov  4 22:11:07 2014
@@ -17,15 +17,15 @@
 
 package org.apache.poi.xssf.usermodel.charts;
 
-import org.apache.poi.ss.usermodel.charts.ChartSerie;
+import org.apache.poi.ss.usermodel.charts.ChartSeries;
 import org.apache.poi.ss.usermodel.charts.TitleType;
 import org.apache.poi.ss.util.CellReference;
 import org.openxmlformats.schemas.drawingml.x2006.chart.CTSerTx;
 
 /**
- * @author Martin Andersson
+ * Base of all XSSF Chart Series
  */
-public abstract class AbstractXSSFChartSerie implements ChartSerie {
+public abstract class AbstractXSSFChartSeries implements ChartSeries {
 
     private String titleValue;
     private CellReference titleRef;

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/charts/XSSFLineChartData.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/charts/XSSFLineChartData.java?rev=1636755&r1=1636754&r2=1636755&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/charts/XSSFLineChartData.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/charts/XSSFLineChartData.java Tue
Nov  4 22:11:07 2014
@@ -17,20 +17,25 @@
 
 package org.apache.poi.xssf.usermodel.charts;
 
+import java.util.ArrayList;
+import java.util.List;
+
 import org.apache.poi.ss.usermodel.Chart;
 import org.apache.poi.ss.usermodel.charts.ChartAxis;
 import org.apache.poi.ss.usermodel.charts.ChartDataSource;
 import org.apache.poi.ss.usermodel.charts.LineChartData;
-import org.apache.poi.ss.usermodel.charts.LineChartSerie;
+import org.apache.poi.ss.usermodel.charts.LineChartSeries;
 import org.apache.poi.util.Beta;
 import org.apache.poi.xssf.usermodel.XSSFChart;
-import org.openxmlformats.schemas.drawingml.x2006.chart.*;
-
-import java.util.ArrayList;
-import java.util.List;
+import org.openxmlformats.schemas.drawingml.x2006.chart.CTAxDataSource;
+import org.openxmlformats.schemas.drawingml.x2006.chart.CTLineChart;
+import org.openxmlformats.schemas.drawingml.x2006.chart.CTLineSer;
+import org.openxmlformats.schemas.drawingml.x2006.chart.CTNumDataSource;
+import org.openxmlformats.schemas.drawingml.x2006.chart.CTPlotArea;
+import org.openxmlformats.schemas.drawingml.x2006.chart.STMarkerStyle;
 
 /**
- * @author Martin Andersson
+ * Holds data for a XSSF Line Chart
  */
 @Beta
 public class XSSFLineChartData implements LineChartData {
@@ -38,19 +43,19 @@ public class XSSFLineChartData implement
     /**
      * List of all data series.
      */
-    private List<Serie> series;
+    private List<Series> series;
 
     public XSSFLineChartData() {
-        series = new ArrayList<Serie>();
+        series = new ArrayList<Series>();
     }
 
-    static class Serie extends AbstractXSSFChartSerie implements LineChartSerie {
+    static class Series extends AbstractXSSFChartSeries implements LineChartSeries {
         private int id;
         private int order;
         private ChartDataSource<?> categories;
         private ChartDataSource<? extends Number> values;
 
-        protected Serie(int id, int order,
+        protected Series(int id, int order,
                         ChartDataSource<?> categories,
                         ChartDataSource<? extends Number> values) {
             this.id = id;
@@ -86,17 +91,17 @@ public class XSSFLineChartData implement
         }
     }
 
-    public LineChartSerie addSerie(ChartDataSource<?> categoryAxisData, ChartDataSource<?
extends Number> values) {
+    public LineChartSeries addSeries(ChartDataSource<?> categoryAxisData, ChartDataSource<?
extends Number> values) {
         if (!values.isNumeric()) {
             throw new IllegalArgumentException("Value data source must be numeric.");
         }
         int numOfSeries = series.size();
-        Serie newSerie = new Serie(numOfSeries, numOfSeries, categoryAxisData, values);
-        series.add(newSerie);
-        return newSerie;
+        Series newSeries = new Series(numOfSeries, numOfSeries, categoryAxisData, values);
+        series.add(newSeries);
+        return newSeries;
     }
 
-    public List<? extends LineChartSerie> getSeries() {
+    public List<? extends LineChartSeries> getSeries() {
         return series;
     }
 
@@ -110,7 +115,7 @@ public class XSSFLineChartData implement
         CTLineChart lineChart = plotArea.addNewLineChart();
         lineChart.addNewVaryColors().setVal(false);
 
-        for (Serie s : series) {
+        for (Series s : series) {
             s.addToChart(lineChart);
         }
 

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/charts/XSSFScatterChartData.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/charts/XSSFScatterChartData.java?rev=1636755&r1=1636754&r2=1636755&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/charts/XSSFScatterChartData.java
(original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/charts/XSSFScatterChartData.java
Tue Nov  4 22:11:07 2014
@@ -17,23 +17,27 @@
 
 package org.apache.poi.xssf.usermodel.charts;
 
+import java.util.ArrayList;
+import java.util.List;
+
 import org.apache.poi.ss.usermodel.Chart;
 import org.apache.poi.ss.usermodel.charts.ChartAxis;
 import org.apache.poi.ss.usermodel.charts.ChartDataSource;
 import org.apache.poi.ss.usermodel.charts.ScatterChartData;
-import org.apache.poi.ss.usermodel.charts.ScatterChartSerie;
+import org.apache.poi.ss.usermodel.charts.ScatterChartSeries;
 import org.apache.poi.util.Beta;
 import org.apache.poi.xssf.usermodel.XSSFChart;
-import org.openxmlformats.schemas.drawingml.x2006.chart.*;
-
-import java.util.ArrayList;
-import java.util.List;
+import org.openxmlformats.schemas.drawingml.x2006.chart.CTAxDataSource;
+import org.openxmlformats.schemas.drawingml.x2006.chart.CTNumDataSource;
+import org.openxmlformats.schemas.drawingml.x2006.chart.CTPlotArea;
+import org.openxmlformats.schemas.drawingml.x2006.chart.CTScatterChart;
+import org.openxmlformats.schemas.drawingml.x2006.chart.CTScatterSer;
+import org.openxmlformats.schemas.drawingml.x2006.chart.CTScatterStyle;
+import org.openxmlformats.schemas.drawingml.x2006.chart.STScatterStyle;
 
 
 /**
  * Represents DrawingML scatter charts.
- *
- * @author Roman Kashitsyn
  */
 @Beta
 public class XSSFScatterChartData implements ScatterChartData {
@@ -41,22 +45,22 @@ public class XSSFScatterChartData implem
     /**
      * List of all data series.
      */
-    private List<Serie> series;
+    private List<Series> series;
 
     public XSSFScatterChartData() {
-        series = new ArrayList<Serie>();
+        series = new ArrayList<Series>();
     }
 
     /**
      * Package private ScatterChartSerie implementation.
      */
-    static class Serie extends AbstractXSSFChartSerie implements ScatterChartSerie {
+    static class Series extends AbstractXSSFChartSeries implements ScatterChartSeries {
         private int id;
         private int order;
         private ChartDataSource<?> xs;
         private ChartDataSource<? extends Number> ys;
 
-        protected Serie(int id, int order,
+        protected Series(int id, int order,
                         ChartDataSource<?> xs,
                         ChartDataSource<? extends Number> ys) {
             super();
@@ -99,13 +103,13 @@ public class XSSFScatterChartData implem
         }
     }
 
-    public ScatterChartSerie addSerie(ChartDataSource<?> xs,
+    public ScatterChartSeries addSerie(ChartDataSource<?> xs,
                                       ChartDataSource<? extends Number> ys) {
         if (!ys.isNumeric()) {
             throw new IllegalArgumentException("Y axis data source must be numeric.");
         }
         int numOfSeries = series.size();
-        Serie newSerie = new Serie(numOfSeries, numOfSeries, xs, ys);
+        Series newSerie = new Series(numOfSeries, numOfSeries, xs, ys);
         series.add(newSerie);
         return newSerie;
     }
@@ -120,7 +124,7 @@ public class XSSFScatterChartData implem
         CTScatterChart scatterChart = plotArea.addNewScatterChart();
         addStyle(scatterChart);
 
-        for (Serie s : series) {
+        for (Series s : series) {
             s.addToChart(scatterChart);
         }
 
@@ -129,7 +133,7 @@ public class XSSFScatterChartData implem
         }
     }
 
-    public List<? extends Serie> getSeries() {
+    public List<? extends Series> getSeries() {
         return series;
     }
 

Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFLineChartData.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFLineChartData.java?rev=1636755&r1=1636754&r2=1636755&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFLineChartData.java
(original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFLineChartData.java
Tue Nov  4 22:11:07 2014
@@ -28,13 +28,13 @@ import org.apache.poi.ss.usermodel.chart
 import org.apache.poi.ss.usermodel.charts.ChartDataSource;
 import org.apache.poi.ss.usermodel.charts.DataSources;
 import org.apache.poi.ss.usermodel.charts.LineChartData;
-import org.apache.poi.ss.usermodel.charts.LineChartSerie;
+import org.apache.poi.ss.usermodel.charts.LineChartSeries;
 import org.apache.poi.ss.util.CellRangeAddress;
 import org.apache.poi.ss.util.SheetBuilder;
 import org.apache.poi.xssf.usermodel.XSSFWorkbook;
 
 /**
- * @author Martin Andersson
+ * Tests for XSSF Line Charts
  */
 public class TestXSSFLineChartData extends TestCase {
 
@@ -58,7 +58,7 @@ public class TestXSSFLineChartData exten
 
         ChartDataSource<String> xs = DataSources.fromStringCellRange(sheet, CellRangeAddress.valueOf("A1:J1"));
         ChartDataSource<Number> ys = DataSources.fromNumericCellRange(sheet, CellRangeAddress.valueOf("A2:J2"));
-        LineChartSerie series = lineChartData.addSerie(xs, ys);
+        LineChartSeries series = lineChartData.addSeries(xs, ys);
 
         assertNotNull(series);
         assertEquals(1, lineChartData.getSeries().size());

Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFScatterChartData.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFScatterChartData.java?rev=1636755&r1=1636754&r2=1636755&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFScatterChartData.java
(original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFScatterChartData.java
Tue Nov  4 22:11:07 2014
@@ -19,16 +19,23 @@ package org.apache.poi.xssf.usermodel.ch
 
 import junit.framework.TestCase;
 
-import org.apache.poi.ss.usermodel.*;
+import org.apache.poi.ss.usermodel.Chart;
+import org.apache.poi.ss.usermodel.ClientAnchor;
+import org.apache.poi.ss.usermodel.Drawing;
+import org.apache.poi.ss.usermodel.Sheet;
+import org.apache.poi.ss.usermodel.Workbook;
+import org.apache.poi.ss.usermodel.charts.AxisPosition;
+import org.apache.poi.ss.usermodel.charts.ChartAxis;
+import org.apache.poi.ss.usermodel.charts.ChartDataSource;
+import org.apache.poi.ss.usermodel.charts.DataSources;
+import org.apache.poi.ss.usermodel.charts.ScatterChartData;
+import org.apache.poi.ss.usermodel.charts.ScatterChartSeries;
 import org.apache.poi.ss.util.CellRangeAddress;
 import org.apache.poi.ss.util.SheetBuilder;
-import org.apache.poi.ss.usermodel.charts.*;
 import org.apache.poi.xssf.usermodel.XSSFWorkbook;
 
 /**
  * Tests for XSSFScatterChartData.
- *
- * @author Roman Kashitsyn
  */
 public final class TestXSSFScatterChartData extends TestCase {
 
@@ -52,7 +59,7 @@ public final class TestXSSFScatterChartD
 
         ChartDataSource<String> xs = DataSources.fromStringCellRange(sheet, CellRangeAddress.valueOf("A1:J1"));
         ChartDataSource<Number> ys = DataSources.fromNumericCellRange(sheet, CellRangeAddress.valueOf("A2:J2"));
-        ScatterChartSerie series = scatterChartData.addSerie(xs, ys);
+        ScatterChartSeries series = scatterChartData.addSerie(xs, ys);
 
         assertNotNull(series);
         assertEquals(1, scatterChartData.getSeries().size());



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message