private double[] getXYFromPathElement(final PathElement ELEMENT) {
        if (ELEMENT instanceof MoveTo) {
            return new double[]{ ((MoveTo) ELEMENT).getX(), ((MoveTo) ELEMENT).getY() };
        } else if (ELEMENT instanceof LineTo) {
            return new double[] { ((LineTo) ELEMENT).getX(), ((LineTo) ELEMENT).getY() };
        } else {
            return new double[] { -1, -1 };
        }
    }
Returns an array of paths where the first entry represents the fill path
and the second entry represents the stroke path
@param SERIES
@return an array of paths where [0] == FillPath and [1] == StrokePath
src/main/java/eu/hansolo/tilesfx/chart/SmoothedChart.java