Path: blob/master/src/java.desktop/share/classes/sun/java2d/marlin/DPathConsumer2D.java
41159 views
/*1* Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425package sun.java2d.marlin;2627public interface DPathConsumer2D {28/**29* @see java.awt.geom.Path2D.Float#moveTo30*/31public void moveTo(double x, double y);3233/**34* @see java.awt.geom.Path2D.Float#lineTo35*/36public void lineTo(double x, double y);3738/**39* @see java.awt.geom.Path2D.Float#quadTo40*/41public void quadTo(double x1, double y1,42double x2, double y2);4344/**45* @see java.awt.geom.Path2D.Float#curveTo46*/47public void curveTo(double x1, double y1,48double x2, double y2,49double x3, double y3);5051/**52* @see java.awt.geom.Path2D.Float#closePath53*/54public void closePath();5556/**57* Called after the last segment of the last subpath when the58* iteration of the path segments is completely done. This59* method serves to trigger the end of path processing in the60* consumer that would normally be triggered when a61* {@link java.awt.geom.PathIterator PathIterator}62* returns {@code true} from its {@code done} method.63*/64public void pathDone();6566/**67* If a given PathConsumer performs all or most of its work68* natively then it can return a (non-zero) pointer to a69* native function vector that defines C functions for all70* of the above methods.71* The specific pointer it returns is a pointer to a72* PathConsumerVec structure as defined in the include file73* src/share/native/sun/java2d/pipe/PathConsumer2D.h74* @return a native pointer to a PathConsumerVec structure.75*/76public long getNativeConsumer();77}787980