]> source.dussan.org Git - poi.git/commitdiff
Expose one more bit of style information generically (for XSSF). If someone needs...
authorGreg Woolsey <gwoolsey@apache.org>
Thu, 29 Jun 2017 23:06:27 +0000 (23:06 +0000)
committerGreg Woolsey <gwoolsey@apache.org>
Thu, 29 Jun 2017 23:06:27 +0000 (23:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1800341 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/xssf/usermodel/charts/XSSFCategoryAxis.java
src/ooxml/java/org/apache/poi/xssf/usermodel/charts/XSSFChartAxis.java
src/ooxml/java/org/apache/poi/xssf/usermodel/charts/XSSFDateAxis.java
src/ooxml/java/org/apache/poi/xssf/usermodel/charts/XSSFValueAxis.java

index f7a52ebef78ca1d84dccd5f597148da8af4ecad1..acc97f62456efbe9b63c96eb0c2fc60f1ee8fc62 100644 (file)
@@ -33,6 +33,7 @@ import org.openxmlformats.schemas.drawingml.x2006.chart.CTNumFmt;
 import org.openxmlformats.schemas.drawingml.x2006.chart.CTScaling;
 import org.openxmlformats.schemas.drawingml.x2006.chart.CTTickMark;
 import org.openxmlformats.schemas.drawingml.x2006.chart.STTickLblPos;
+import org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties;
 
 /**
  * Category axis type.
@@ -58,6 +59,10 @@ public class XSSFCategoryAxis extends XSSFChartAxis {
                return ctCatAx.getAxId().getVal();
        }
 
+       public CTShapeProperties getLine() {
+           return ctCatAx.getSpPr();
+       }
+       
        protected CTAxPos getCTAxPos() {
                return ctCatAx.getAxPos();
        }
index dacccaaf37dadaf46bc34709365e5d903ed327e6..41e0f148eb6e1afe469d2372be4d6d8bd7fc99eb 100644 (file)
@@ -37,6 +37,7 @@ import org.openxmlformats.schemas.drawingml.x2006.chart.STAxPos;
 import org.openxmlformats.schemas.drawingml.x2006.chart.STCrosses;
 import org.openxmlformats.schemas.drawingml.x2006.chart.STOrientation;
 import org.openxmlformats.schemas.drawingml.x2006.chart.STTickMark;
+import org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties;
 
 /**
  * Base class for all axis types.
@@ -195,6 +196,7 @@ public abstract class XSSFChartAxis implements ChartAxis {
        protected abstract CTTickMark getMajorCTTickMark();
        protected abstract CTTickMark getMinorCTTickMark();
        public abstract CTChartLines getMajorGridLines();
+       public abstract CTShapeProperties getLine();
        
        private static STOrientation.Enum fromAxisOrientation(AxisOrientation orientation) {
                switch (orientation) {
index 7917fc790761cb988e29c0a1cd57a7a325648624..186d1ffa3f1a3b2adb7130c2a936f4dcd4e2e408 100644 (file)
@@ -34,6 +34,7 @@ import org.openxmlformats.schemas.drawingml.x2006.chart.CTNumFmt;
 import org.openxmlformats.schemas.drawingml.x2006.chart.CTScaling;
 import org.openxmlformats.schemas.drawingml.x2006.chart.CTTickMark;
 import org.openxmlformats.schemas.drawingml.x2006.chart.STTickLblPos;
+import org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties;
 
 /**
  * Date axis type.  Currently only implements the same values as {@link XSSFCategoryAxis}, since the two are nearly identical.
@@ -66,6 +67,10 @@ public class XSSFDateAxis extends XSSFChartAxis {
                return ctDateAx.getAxId().getVal();
        }
 
+    public CTShapeProperties getLine() {
+        return ctDateAx.getSpPr();
+    }
+
        protected CTAxPos getCTAxPos() {
                return ctDateAx.getAxPos();
        }
index 990460e1df8c81187809b88d805f7dcab4ffad7e..0e31f03eebed3d215b7b4e0577201fd83122cd13 100644 (file)
@@ -36,6 +36,7 @@ import org.openxmlformats.schemas.drawingml.x2006.chart.CTTickMark;
 import org.openxmlformats.schemas.drawingml.x2006.chart.CTValAx;
 import org.openxmlformats.schemas.drawingml.x2006.chart.STCrossBetween;
 import org.openxmlformats.schemas.drawingml.x2006.chart.STTickLblPos;
+import org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties;
 
 /**
  * Value axis type.
@@ -61,6 +62,10 @@ public class XSSFValueAxis extends XSSFChartAxis implements ValueAxis {
                return ctValAx.getAxId().getVal();
        }
 
+    public CTShapeProperties getLine() {
+        return ctValAx.getSpPr();
+    }
+
        public void setCrossBetween(AxisCrossBetween crossBetween) {
                ctValAx.getCrossBetween().setVal(fromCrossBetween(crossBetween));
        }