< prev index next >

openjfx9/modules/javafx.graphics/src/main/java/com/sun/marlin/CollinearSimplifier.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -21,15 +21,15 @@
  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  */
 
-package sun.java2d.marlin;
+package com.sun.marlin;
 
-import sun.awt.geom.PathConsumer2D;
+import com.sun.javafx.geom.PathConsumer2D;
 
-final class CollinearSimplifier implements PathConsumer2D {
+public final class CollinearSimplifier implements PathConsumer2D {
 
     enum SimplifierState {
 
         Empty, PreviousPoint, PreviousLine
     };

@@ -64,15 +64,10 @@
         state = SimplifierState.Empty;
         delegate.closePath();
     }
 
     @Override
-    public long getNativeConsumer() {
-        return 0;
-    }
-
-    @Override
     public void quadTo(float x1, float y1, float x2, float y2) {
         emitStashedLine();
         delegate.quadTo(x1, y1, x2, y2);
         // final end point:
         state = SimplifierState.PreviousPoint;
< prev index next >