Polygon Javafx

Polygon polygon = new Polygon(doubleArray);