< prev index next >

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

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2015, 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 --- 1,7 ---- /* ! * 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,35 **** * 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; ! import sun.awt.geom.PathConsumer2D; ! final class CollinearSimplifier implements PathConsumer2D { enum SimplifierState { Empty, PreviousPoint, PreviousLine }; --- 21,35 ---- * 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 com.sun.marlin; ! import com.sun.javafx.geom.PathConsumer2D; ! public final class CollinearSimplifier implements PathConsumer2D { enum SimplifierState { Empty, PreviousPoint, PreviousLine };
*** 64,78 **** 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; --- 64,73 ----
< prev index next >