changeset 7829:5e4ce148e333

RT-36334: Clean up warnings in control component Patch #5, focused on charts cleanup. Contributed-by: Tom Schindl <tom.schindl@bestsolution.at> Reviewed-by: jgiles
author jgiles
date Thu, 28 Aug 2014 11:16:55 +1200
parents 0549284f26c9
children f43dd33a649f 4756dd1cca2c
files modules/controls/src/main/java/javafx/scene/chart/AreaChart.java modules/controls/src/main/java/javafx/scene/chart/Axis.java modules/controls/src/main/java/javafx/scene/chart/BarChart.java modules/controls/src/main/java/javafx/scene/chart/CategoryAxis.java modules/controls/src/main/java/javafx/scene/chart/Chart.java modules/controls/src/main/java/javafx/scene/chart/LineChart.java modules/controls/src/main/java/javafx/scene/chart/NumberAxis.java modules/controls/src/main/java/javafx/scene/chart/PieChart.java modules/controls/src/main/java/javafx/scene/chart/StackedAreaChart.java modules/controls/src/main/java/javafx/scene/chart/StackedBarChart.java modules/controls/src/main/java/javafx/scene/chart/ValueAxis.java modules/controls/src/main/java/javafx/scene/chart/XYChart.java
diffstat 12 files changed, 84 insertions(+), 39 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/javafx/scene/chart/AreaChart.java	Thu Aug 28 09:56:55 2014 +1200
+++ b/modules/controls/src/main/java/javafx/scene/chart/AreaChart.java	Thu Aug 28 11:16:55 2014 +1200
@@ -109,7 +109,7 @@
             return "createSymbols";
         }
 
-        public CssMetaData getCssMetaData() {
+        public CssMetaData<AreaChart<?, ?>,Boolean> getCssMetaData() {
             return StyleableProperties.CREATE_SYMBOLS;
         }
     };
--- a/modules/controls/src/main/java/javafx/scene/chart/Axis.java	Thu Aug 28 09:56:55 2014 +1200
+++ b/modules/controls/src/main/java/javafx/scene/chart/Axis.java	Thu Aug 28 11:16:55 2014 +1200
@@ -31,6 +31,7 @@
 import javafx.css.StyleableBooleanProperty;
 import javafx.css.StyleableDoubleProperty;
 import javafx.css.StyleableObjectProperty;
+
 import com.sun.javafx.css.converters.BooleanConverter;
 import com.sun.javafx.css.converters.EnumConverter;
 import com.sun.javafx.css.converters.PaintConverter;
@@ -43,6 +44,8 @@
 import javafx.beans.binding.ObjectExpression;
 import javafx.beans.binding.StringExpression;
 import javafx.beans.property.*;
+import javafx.beans.value.WritableBooleanValue;
+import javafx.beans.value.WritableValue;
 import javafx.collections.FXCollections;
 import javafx.collections.ObservableList;
 import javafx.css.FontCssMetaData;
@@ -1113,8 +1116,8 @@
             }
 
             @Override
-            public StyleableProperty<Number> getStyleableProperty(Axis n) {
-                return (StyleableProperty<Number>)n.tickLengthProperty();
+            public StyleableProperty<Number> getStyleableProperty(Axis<?> n) {
+                return (StyleableProperty<Number>)(WritableValue<Number>)n.tickLengthProperty();
             }
         };
 
@@ -1161,7 +1164,7 @@
 
             @Override
             public StyleableProperty<Number> getStyleableProperty(Axis<?> n) {
-                return (StyleableProperty<Number>)n.tickLabelGapProperty();
+                return (StyleableProperty<Number>)(WritableValue<Number>)n.tickLabelGapProperty();
             }
         };
 
@@ -1176,7 +1179,7 @@
 
             @Override
             public StyleableProperty<Boolean> getStyleableProperty(Axis<?> n) {
-                return (StyleableProperty<Boolean>)n.tickMarkVisibleProperty();
+                return (StyleableProperty<Boolean>)(WritableValue<Boolean>)n.tickMarkVisibleProperty();
             }
         };
 
@@ -1191,7 +1194,7 @@
 
             @Override
             public StyleableProperty<Boolean> getStyleableProperty(Axis<?> n) {
-                return (StyleableProperty<Boolean>)n.tickLabelsVisibleProperty();
+                return (StyleableProperty<Boolean>)(WritableValue<Boolean>)n.tickLabelsVisibleProperty();
             }
         };
 
--- a/modules/controls/src/main/java/javafx/scene/chart/BarChart.java	Thu Aug 28 09:56:55 2014 +1200
+++ b/modules/controls/src/main/java/javafx/scene/chart/BarChart.java	Thu Aug 28 11:16:55 2014 +1200
@@ -38,6 +38,7 @@
 import javafx.application.Platform;
 import javafx.beans.NamedArg;
 import javafx.beans.property.DoubleProperty;
+import javafx.beans.value.WritableValue;
 import javafx.collections.FXCollections;
 import javafx.collections.ObservableList;
 import javafx.geometry.Orientation;
@@ -47,10 +48,13 @@
 
 import com.sun.javafx.charts.Legend;
 import com.sun.javafx.charts.Legend.LegendItem;
+
 import javafx.css.StyleableDoubleProperty;
 import javafx.css.CssMetaData;
 import javafx.css.PseudoClass;
+
 import com.sun.javafx.css.converters.SizeConverter;
+
 import javafx.css.Styleable;
 import javafx.css.StyleableProperty;
 
@@ -577,7 +581,7 @@
 
             @Override
             public StyleableProperty<Number> getStyleableProperty(BarChart<?,?> node) {
-                return (StyleableProperty<Number>)node.barGapProperty();
+                return (StyleableProperty<Number>)(WritableValue<Number>)node.barGapProperty();
             }
         };
          
@@ -592,7 +596,7 @@
 
             @Override
             public StyleableProperty<Number> getStyleableProperty(BarChart<?,?> node) {
-                return (StyleableProperty<Number>)node.categoryGapProperty();
+                return (StyleableProperty<Number>)(WritableValue<Number>)node.categoryGapProperty();
             }
         };
 
--- a/modules/controls/src/main/java/javafx/scene/chart/CategoryAxis.java	Thu Aug 28 09:56:55 2014 +1200
+++ b/modules/controls/src/main/java/javafx/scene/chart/CategoryAxis.java	Thu Aug 28 11:16:55 2014 +1200
@@ -37,6 +37,7 @@
 import javafx.beans.property.ReadOnlyDoubleProperty;
 import javafx.beans.property.ReadOnlyDoubleWrapper;
 import javafx.beans.property.SimpleDoubleProperty;
+import javafx.beans.value.WritableValue;
 import javafx.collections.FXCollections;
 import javafx.collections.ListChangeListener;
 import javafx.collections.ObservableList;
@@ -45,12 +46,16 @@
 import javafx.util.Duration;
 
 import com.sun.javafx.charts.ChartLayoutAnimator;
+
 import javafx.css.StyleableBooleanProperty;
 import javafx.css.StyleableDoubleProperty;
 import javafx.css.CssMetaData;
+
 import com.sun.javafx.css.converters.BooleanConverter;
 import com.sun.javafx.css.converters.SizeConverter;
+
 import java.util.Collections;
+
 import javafx.css.Styleable;
 import javafx.css.StyleableProperty;
 
@@ -556,7 +561,7 @@
 
             @Override
             public StyleableProperty<Number> getStyleableProperty(CategoryAxis n) {
-                return (StyleableProperty<Number>)n.startMarginProperty();
+                return (StyleableProperty<Number>)(WritableValue<Number>)n.startMarginProperty();
             }
         };
         
@@ -571,7 +576,7 @@
 
             @Override
             public StyleableProperty<Number> getStyleableProperty(CategoryAxis n) {
-                return (StyleableProperty<Number>)n.endMarginProperty();
+                return (StyleableProperty<Number>)(WritableValue<Number>)n.endMarginProperty();
             }
         };
         
@@ -586,7 +591,7 @@
 
             @Override
             public StyleableProperty<Boolean> getStyleableProperty(CategoryAxis n) {
-                return (StyleableProperty<Boolean>)n.gapStartAndEndProperty();
+                return (StyleableProperty<Boolean>)(WritableValue<Boolean>)n.gapStartAndEndProperty();
             }
         };
 
--- a/modules/controls/src/main/java/javafx/scene/chart/Chart.java	Thu Aug 28 09:56:55 2014 +1200
+++ b/modules/controls/src/main/java/javafx/scene/chart/Chart.java	Thu Aug 28 11:16:55 2014 +1200
@@ -30,6 +30,7 @@
 import java.util.List;
 
 import com.sun.javafx.scene.control.skin.Utils;
+
 import javafx.animation.Animation;
 import javafx.animation.KeyFrame;
 import javafx.application.Platform;
@@ -39,6 +40,7 @@
 import javafx.beans.property.SimpleBooleanProperty;
 import javafx.beans.property.StringProperty;
 import javafx.beans.property.StringPropertyBase;
+import javafx.beans.value.WritableValue;
 import javafx.collections.ObservableList;
 import javafx.geometry.Pos;
 import javafx.geometry.Side;
@@ -49,11 +51,14 @@
 
 import com.sun.javafx.charts.ChartLayoutAnimator;
 import com.sun.javafx.charts.Legend;
+
 import javafx.css.StyleableBooleanProperty;
 import javafx.css.StyleableObjectProperty;
 import javafx.css.CssMetaData;
+
 import com.sun.javafx.css.converters.BooleanConverter;
 import com.sun.javafx.css.converters.EnumConverter;
+
 import javafx.css.Styleable;
 import javafx.css.StyleableProperty;
 
@@ -439,7 +444,7 @@
 
             @Override
             public StyleableProperty<Side> getStyleableProperty(Chart node) {
-                return (StyleableProperty<Side>)node.titleSideProperty();
+                return (StyleableProperty<Side>)(WritableValue<Side>)node.titleSideProperty();
             }
         };
         
@@ -455,7 +460,7 @@
 
             @Override
             public StyleableProperty<Side> getStyleableProperty(Chart node) {
-                return (StyleableProperty<Side>)node.legendSideProperty();
+                return (StyleableProperty<Side>)(WritableValue<Side>)node.legendSideProperty();
             }
         };
         
@@ -470,7 +475,7 @@
 
             @Override
             public StyleableProperty<Boolean> getStyleableProperty(Chart node) {
-                return (StyleableProperty<Boolean>)node.legendVisibleProperty();
+                return (StyleableProperty<Boolean>)(WritableValue<Boolean>)node.legendVisibleProperty();
             }
         };
 
--- a/modules/controls/src/main/java/javafx/scene/chart/LineChart.java	Thu Aug 28 09:56:55 2014 +1200
+++ b/modules/controls/src/main/java/javafx/scene/chart/LineChart.java	Thu Aug 28 11:16:55 2014 +1200
@@ -42,9 +42,8 @@
 import javafx.beans.property.DoubleProperty;
 import javafx.beans.property.ObjectProperty;
 import javafx.beans.property.ObjectPropertyBase;
-import javafx.beans.property.SimpleBooleanProperty;
 import javafx.beans.property.SimpleDoubleProperty;
-import javafx.beans.property.SimpleObjectProperty;
+import javafx.beans.value.WritableValue;
 import javafx.collections.FXCollections;
 import javafx.collections.ListChangeListener;
 import javafx.collections.ObservableList;
@@ -60,10 +59,14 @@
 
 import com.sun.javafx.charts.Legend;
 import com.sun.javafx.charts.Legend.LegendItem;
+
 import javafx.css.StyleableBooleanProperty;
 import javafx.css.CssMetaData;
+
 import com.sun.javafx.css.converters.BooleanConverter;
+
 import java.util.*;
+
 import javafx.css.Styleable;
 import javafx.css.StyleableProperty;
 
@@ -622,7 +625,7 @@
 
             @Override
             public StyleableProperty<Boolean> getStyleableProperty(LineChart<?,?> node) {
-                return (StyleableProperty<Boolean>)node.createSymbolsProperty();
+                return (StyleableProperty<Boolean>)(WritableValue<Boolean>)node.createSymbolsProperty();
             }
         };
 
--- a/modules/controls/src/main/java/javafx/scene/chart/NumberAxis.java	Thu Aug 28 09:56:55 2014 +1200
+++ b/modules/controls/src/main/java/javafx/scene/chart/NumberAxis.java	Thu Aug 28 11:16:55 2014 +1200
@@ -31,26 +31,27 @@
 import java.util.Collections;
 import java.util.List;
 
-import com.sun.javafx.binding.StringFormatter;
 import javafx.animation.KeyFrame;
 import javafx.animation.KeyValue;
 import javafx.beans.property.BooleanProperty;
 import javafx.beans.property.BooleanPropertyBase;
 import javafx.beans.property.DoubleProperty;
-import javafx.beans.property.IntegerProperty;
-import javafx.beans.property.SimpleIntegerProperty;
 import javafx.beans.property.SimpleStringProperty;
 import javafx.beans.property.StringProperty;
 import javafx.beans.value.ChangeListener;
+import javafx.beans.value.WritableValue;
 import javafx.geometry.Dimension2D;
 import javafx.geometry.Side;
 import javafx.util.Duration;
 import javafx.util.StringConverter;
 
 import com.sun.javafx.charts.ChartLayoutAnimator;
+
 import javafx.css.StyleableDoubleProperty;
 import javafx.css.CssMetaData;
+
 import com.sun.javafx.css.converters.SizeConverter;
+
 import javafx.css.Styleable;
 import javafx.css.StyleableProperty;
 
@@ -451,7 +452,7 @@
 
             @Override
             public StyleableProperty<Number> getStyleableProperty(NumberAxis n) {
-                return (StyleableProperty<Number>)n.tickUnitProperty();
+                return (StyleableProperty<Number>)(WritableValue<Number>)n.tickUnitProperty();
             }
         };
 
--- a/modules/controls/src/main/java/javafx/scene/chart/PieChart.java	Thu Aug 28 09:56:55 2014 +1200
+++ b/modules/controls/src/main/java/javafx/scene/chart/PieChart.java	Thu Aug 28 11:16:55 2014 +1200
@@ -28,6 +28,7 @@
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.List;
+
 import javafx.animation.Animation;
 import javafx.animation.FadeTransition;
 import javafx.animation.Interpolator;
@@ -46,6 +47,7 @@
 import javafx.beans.property.SimpleDoubleProperty;
 import javafx.beans.property.StringProperty;
 import javafx.beans.property.StringPropertyBase;
+import javafx.beans.value.WritableValue;
 import javafx.collections.FXCollections;
 import javafx.collections.ListChangeListener;
 import javafx.collections.ObservableList;
@@ -65,14 +67,18 @@
 import javafx.scene.text.Text;
 import javafx.scene.transform.Scale;
 import javafx.util.Duration;
+
 import com.sun.javafx.charts.Legend;
 import com.sun.javafx.charts.Legend.LegendItem;
 import com.sun.javafx.collections.NonIterableChange;
+
 import javafx.css.StyleableBooleanProperty;
 import javafx.css.StyleableDoubleProperty;
 import javafx.css.CssMetaData;
+
 import com.sun.javafx.css.converters.BooleanConverter;
 import com.sun.javafx.css.converters.SizeConverter;
+
 import javafx.css.Styleable;
 import javafx.css.StyleableProperty;
 
@@ -988,7 +994,7 @@
 
             @Override
             public StyleableProperty<Boolean> getStyleableProperty(PieChart node) {
-                return (StyleableProperty<Boolean>)node.clockwiseProperty();
+                return (StyleableProperty<Boolean>)(WritableValue<Boolean>)node.clockwiseProperty();
             }
         };
 
@@ -1003,7 +1009,7 @@
 
             @Override
             public StyleableProperty<Boolean> getStyleableProperty(PieChart node) {
-                return (StyleableProperty<Boolean>)node.labelsVisibleProperty();
+                return (StyleableProperty<Boolean>)(WritableValue<Boolean>)node.labelsVisibleProperty();
             }
         };
 
@@ -1018,7 +1024,7 @@
 
             @Override
             public StyleableProperty<Number> getStyleableProperty(PieChart node) {
-                return (StyleableProperty<Number>)node.labelLineLengthProperty();
+                return (StyleableProperty<Number>)(WritableValue<Number>)node.labelLineLengthProperty();
             }
         };
 
@@ -1033,7 +1039,7 @@
 
             @Override
             public StyleableProperty<Number> getStyleableProperty(PieChart node) {
-                return (StyleableProperty<Number>)node.startAngleProperty();
+                return (StyleableProperty<Number>)(WritableValue<Number>)node.startAngleProperty();
             }
         };
 
--- a/modules/controls/src/main/java/javafx/scene/chart/StackedAreaChart.java	Thu Aug 28 09:56:55 2014 +1200
+++ b/modules/controls/src/main/java/javafx/scene/chart/StackedAreaChart.java	Thu Aug 28 11:16:55 2014 +1200
@@ -27,6 +27,7 @@
 
 
 import java.util.*;
+
 import javafx.animation.*;
 import javafx.application.Platform;
 import javafx.beans.NamedArg;
@@ -41,10 +42,13 @@
 import javafx.scene.layout.StackPane;
 import javafx.scene.shape.*;
 import javafx.util.Duration;
+
 import com.sun.javafx.charts.Legend;
 import com.sun.javafx.charts.Legend.LegendItem;
 import com.sun.javafx.css.converters.BooleanConverter;
+
 import javafx.beans.property.BooleanProperty;
+import javafx.beans.value.WritableValue;
 import javafx.css.CssMetaData;
 import javafx.css.Styleable;
 import javafx.css.StyleableBooleanProperty;
@@ -109,7 +113,7 @@
             return "createSymbols";
         }
 
-        public CssMetaData getCssMetaData() {
+        public CssMetaData<StackedAreaChart<?, ?>,Boolean> getCssMetaData() {
             return StyleableProperties.CREATE_SYMBOLS;
         }
     };
@@ -910,7 +914,7 @@
 
             @Override
             public StyleableProperty<Boolean> getStyleableProperty(StackedAreaChart<?,?> node) {
-                return (StyleableProperty<Boolean>) node.createSymbolsProperty();
+                return (StyleableProperty<Boolean>)(WritableValue<Boolean>)node.createSymbolsProperty();
             }
         };
         
--- a/modules/controls/src/main/java/javafx/scene/chart/StackedBarChart.java	Thu Aug 28 09:56:55 2014 +1200
+++ b/modules/controls/src/main/java/javafx/scene/chart/StackedBarChart.java	Thu Aug 28 11:16:55 2014 +1200
@@ -27,10 +27,12 @@
 
 
 import java.util.*;
+
 import javafx.animation.*;
 import javafx.application.Platform;
 import javafx.beans.NamedArg;
 import javafx.beans.property.DoubleProperty;
+import javafx.beans.value.WritableValue;
 import javafx.collections.FXCollections;
 import javafx.collections.ObservableList;
 import javafx.geometry.Orientation;
@@ -38,11 +40,15 @@
 import javafx.scene.Node;
 import javafx.scene.layout.StackPane;
 import javafx.util.Duration;
+
 import com.sun.javafx.charts.Legend;
+
 import javafx.css.StyleableDoubleProperty;
 import javafx.css.CssMetaData;
 import javafx.css.PseudoClass;
+
 import com.sun.javafx.css.converters.SizeConverter;
+
 import javafx.collections.ListChangeListener;
 import javafx.css.Styleable;
 import javafx.css.StyleableProperty;
@@ -496,7 +502,7 @@
         legend.getItems().clear();
         if (getData() != null) {
             for (int seriesIndex = 0; seriesIndex < getData().size(); seriesIndex++) {
-                Series series = getData().get(seriesIndex);
+                Series<X,Y> series = getData().get(seriesIndex);
                 Legend.LegendItem legenditem = new Legend.LegendItem(series.getName());
                 String defaultColorStyleClass = seriesDefaultColorMap.get(series);
                 legenditem.getSymbol().getStyleClass().addAll("chart-bar", "series" + seriesIndex, "bar-legend-symbol",
@@ -551,7 +557,7 @@
 
             @Override
             public StyleableProperty<Number> getStyleableProperty(StackedBarChart<?,?> node) {
-                return (StyleableProperty<Number>)node.categoryGapProperty();
+                return (StyleableProperty<Number>)(WritableValue<Number>)node.categoryGapProperty();
             }
         };
 
--- a/modules/controls/src/main/java/javafx/scene/chart/ValueAxis.java	Thu Aug 28 09:56:55 2014 +1200
+++ b/modules/controls/src/main/java/javafx/scene/chart/ValueAxis.java	Thu Aug 28 11:16:55 2014 +1200
@@ -29,13 +29,16 @@
 import javafx.css.StyleableBooleanProperty;
 import javafx.css.StyleableDoubleProperty;
 import javafx.css.StyleableIntegerProperty;
+
 import com.sun.javafx.css.converters.BooleanConverter;
 import com.sun.javafx.css.converters.SizeConverter;
+
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.List;
 
 import javafx.beans.property.*;
+import javafx.beans.value.WritableValue;
 import javafx.css.Styleable;
 import javafx.css.StyleableProperty;
 import javafx.geometry.Side;
@@ -528,7 +531,7 @@
 
             @Override
             public StyleableProperty<Number> getStyleableProperty(ValueAxis<? extends Number> n) {
-                return (StyleableProperty<Number>)n.minorTickLengthProperty();
+                return (StyleableProperty<Number>)(WritableValue<Number>)n.minorTickLengthProperty();
             }
         };
         
@@ -543,7 +546,7 @@
 
             @Override
             public StyleableProperty<Number> getStyleableProperty(ValueAxis<? extends Number> n) {
-                return (StyleableProperty<Number>)n.minorTickCountProperty();
+                return (StyleableProperty<Number>)(WritableValue<Number>)n.minorTickCountProperty();
             }
         };
         
@@ -558,7 +561,7 @@
 
             @Override
             public StyleableProperty<Boolean> getStyleableProperty(ValueAxis<? extends Number> n) {
-                return (StyleableProperty<Boolean>)n.minorTickVisibleProperty();
+                return (StyleableProperty<Boolean>)(WritableValue<Boolean>)n.minorTickVisibleProperty();
             }
         };
 
--- a/modules/controls/src/main/java/javafx/scene/chart/XYChart.java	Thu Aug 28 09:56:55 2014 +1200
+++ b/modules/controls/src/main/java/javafx/scene/chart/XYChart.java	Thu Aug 28 11:16:55 2014 +1200
@@ -26,9 +26,9 @@
 package javafx.scene.chart;
 
 import com.sun.javafx.collections.NonIterableChange;
+
 import java.util.ArrayList;
 import java.util.Collections;
-import java.util.Comparator;
 import java.util.HashSet;
 import java.util.Iterator;
 import java.util.List;
@@ -45,6 +45,7 @@
 import javafx.beans.property.SimpleObjectProperty;
 import javafx.beans.property.StringProperty;
 import javafx.beans.property.StringPropertyBase;
+import javafx.beans.value.WritableValue;
 import javafx.collections.FXCollections;
 import javafx.collections.ListChangeListener;
 import javafx.collections.ListChangeListener.Change;
@@ -61,10 +62,14 @@
 import javafx.scene.shape.Path;
 import javafx.scene.shape.Rectangle;
 import javafx.util.Duration;
+
 import java.util.BitSet;
+
 import javafx.css.StyleableBooleanProperty;
 import javafx.css.CssMetaData;
+
 import com.sun.javafx.css.converters.BooleanConverter;
+
 import java.util.HashMap;
 import java.util.Map;
 import java.util.Set;
@@ -1024,7 +1029,7 @@
 
             @Override
             public StyleableProperty<Boolean> getStyleableProperty(XYChart<?,?> node) {
-                return (StyleableProperty<Boolean>)node.horizontalGridLinesVisibleProperty();
+                return (StyleableProperty<Boolean>)(WritableValue<Boolean>)node.horizontalGridLinesVisibleProperty();
             }
         };
 
@@ -1040,7 +1045,7 @@
 
             @Override
             public StyleableProperty<Boolean> getStyleableProperty(XYChart<?,?> node) {
-                return (StyleableProperty<Boolean>)node.horizontalZeroLineVisibleProperty();
+                return (StyleableProperty<Boolean>)(WritableValue<Boolean>)node.horizontalZeroLineVisibleProperty();
             }
         };
 
@@ -1056,7 +1061,7 @@
 
             @Override
             public StyleableProperty<Boolean> getStyleableProperty(XYChart<?,?> node) {
-                return (StyleableProperty<Boolean>)node.alternativeRowFillVisibleProperty();
+                return (StyleableProperty<Boolean>)(WritableValue<Boolean>)node.alternativeRowFillVisibleProperty();
             }
         };
 
@@ -1072,7 +1077,7 @@
 
             @Override
             public StyleableProperty<Boolean> getStyleableProperty(XYChart<?,?> node) {
-                return (StyleableProperty<Boolean>)node.verticalGridLinesVisibleProperty();
+                return (StyleableProperty<Boolean>)(WritableValue<Boolean>)node.verticalGridLinesVisibleProperty();
             }
         };
 
@@ -1088,7 +1093,7 @@
 
             @Override
             public StyleableProperty<Boolean> getStyleableProperty(XYChart<?,?> node) {
-                return (StyleableProperty<Boolean>)node.verticalZeroLineVisibleProperty();
+                return (StyleableProperty<Boolean>)(WritableValue<Boolean>)node.verticalZeroLineVisibleProperty();
             }
         };
 
@@ -1104,7 +1109,7 @@
 
             @Override
             public StyleableProperty<Boolean> getStyleableProperty(XYChart<?,?> node) {
-                return (StyleableProperty<Boolean>)node.alternativeColumnFillVisibleProperty();
+                return (StyleableProperty<Boolean>)(WritableValue<Boolean>)node.alternativeColumnFillVisibleProperty();
             }
         };