Edit C:\Program Files\Java\jdk1.8.0_121\com\sun\javafx\sg\prism\NGPolyline.java
/* * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.javafx.sg.prism; import com.sun.javafx.geom.Path2D; import com.sun.javafx.geom.Shape; /** * */ public class NGPolyline extends NGShape { private Path2D path = new Path2D(); public void updatePolyline(float[] points) { path.reset(); if (points == null || points.length == 0 || points.length % 2 != 0) { return; } path.moveTo(points[0], points[1]); for (int i = 1; i < points.length/2; i++) { float px = points[i*2+0]; float py = points[i*2+1]; path.lineTo(px, py); } geometryChanged(); } @Override public Shape getShape() { return path; } }
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de