< prev index next >

src/java.desktop/share/classes/sun/java2d/pipe/ShapeSpanIterator.java

Print this page


   1 /*
   2  * Copyright (c) 1998, 2007, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


 114 
 115     /*
 116      * Sets the rectangle of interest for storing and returning
 117      * span segments.
 118      */
 119     public native void setOutputAreaXYXY(int lox, int loy, int hix, int hiy);
 120 
 121     /*
 122      * Sets the rectangle of interest for storing and returning
 123      * span segments to the specified Rectangle.
 124      */
 125     public void setOutputArea(Rectangle r) {
 126         setOutputAreaXYWH(r.x, r.y, r.width, r.height);
 127     }
 128 
 129     /*
 130      * Sets the rectangle of interest for storing and returning
 131      * span segments to the bounds of the specified Region.
 132      */
 133     public void setOutputArea(Region r) {
 134         setOutputAreaXYXY(r.lox, r.loy, r.hix, r.hiy);
 135     }
 136 
 137     /*
 138      * Sets the winding rule in the native data structures.
 139      */
 140     public native void setRule(int rule);
 141 
 142     /*
 143      * Adds a single PathIterator segment to the internal list of
 144      * path element structures.
 145      */
 146     public native void addSegment(int type, float coords[]);
 147 
 148     /*
 149      * Gets the bbox of the available path segments, clipped to the
 150      * OutputArea.
 151      */
 152     public native void getPathBox(int pathbox[]);
 153 
 154     /*


   1 /*
   2  * Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


 114 
 115     /*
 116      * Sets the rectangle of interest for storing and returning
 117      * span segments.
 118      */
 119     public native void setOutputAreaXYXY(int lox, int loy, int hix, int hiy);
 120 
 121     /*
 122      * Sets the rectangle of interest for storing and returning
 123      * span segments to the specified Rectangle.
 124      */
 125     public void setOutputArea(Rectangle r) {
 126         setOutputAreaXYWH(r.x, r.y, r.width, r.height);
 127     }
 128 
 129     /*
 130      * Sets the rectangle of interest for storing and returning
 131      * span segments to the bounds of the specified Region.
 132      */
 133     public void setOutputArea(Region r) {
 134         setOutputAreaXYXY(r.getLoX(), r.getLoY(), r.getHiX(), r.getHiY());
 135     }
 136 
 137     /*
 138      * Sets the winding rule in the native data structures.
 139      */
 140     public native void setRule(int rule);
 141 
 142     /*
 143      * Adds a single PathIterator segment to the internal list of
 144      * path element structures.
 145      */
 146     public native void addSegment(int type, float coords[]);
 147 
 148     /*
 149      * Gets the bbox of the available path segments, clipped to the
 150      * OutputArea.
 151      */
 152     public native void getPathBox(int pathbox[]);
 153 
 154     /*


< prev index next >