< prev index next >

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

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1999, 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 --- 1,7 ---- /* ! * Copyright (c) 1999, 2018, 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
*** 90,115 **** startAngle, arcAngle, Arc2D.OPEN)); } public void drawPolyline(SunGraphics2D sg2d, ! int xPoints[], int yPoints[], int nPoints) { ! int nPointsArray[] = { nPoints }; sg2d.loops.drawPolygonsLoop.DrawPolygons(sg2d, sg2d.getSurfaceData(), xPoints, yPoints, nPointsArray, 1, sg2d.transX, sg2d.transY, false); } public void drawPolygon(SunGraphics2D sg2d, ! int xPoints[], int yPoints[], int nPoints) { ! int nPointsArray[] = { nPoints }; sg2d.loops.drawPolygonsLoop.DrawPolygons(sg2d, sg2d.getSurfaceData(), xPoints, yPoints, nPointsArray, 1, sg2d.transX, sg2d.transY, true); --- 90,115 ---- startAngle, arcAngle, Arc2D.OPEN)); } public void drawPolyline(SunGraphics2D sg2d, ! int[] xPoints, int[] yPoints, int nPoints) { ! int[] nPointsArray = { nPoints }; sg2d.loops.drawPolygonsLoop.DrawPolygons(sg2d, sg2d.getSurfaceData(), xPoints, yPoints, nPointsArray, 1, sg2d.transX, sg2d.transY, false); } public void drawPolygon(SunGraphics2D sg2d, ! int[] xPoints, int[] yPoints, int nPoints) { ! int[] nPointsArray = { nPoints }; sg2d.loops.drawPolygonsLoop.DrawPolygons(sg2d, sg2d.getSurfaceData(), xPoints, yPoints, nPointsArray, 1, sg2d.transX, sg2d.transY, true);
*** 147,157 **** startAngle, arcAngle, Arc2D.PIE)); } public void fillPolygon(SunGraphics2D sg2d, ! int xPoints[], int yPoints[], int nPoints) { ShapeSpanIterator sr = getFillSSI(sg2d); try { --- 147,157 ---- startAngle, arcAngle, Arc2D.PIE)); } public void fillPolygon(SunGraphics2D sg2d, ! int[] xPoints, int[] yPoints, int nPoints) { ShapeSpanIterator sr = getFillSSI(sg2d); try {
*** 331,341 **** if (fs != null) { fs.FillSpans(sg2d, sg2d.getSurfaceData(), si); return; } } ! int spanbox[] = new int[4]; SurfaceData sd = sg2d.getSurfaceData(); while (si.nextSpan(spanbox)) { int x = spanbox[0]; int y = spanbox[1]; int w = spanbox[2] - x; --- 331,341 ---- if (fs != null) { fs.FillSpans(sg2d, sg2d.getSurfaceData(), si); return; } } ! int[] spanbox = new int[4]; SurfaceData sd = sg2d.getSurfaceData(); while (si.nextSpan(spanbox)) { int x = spanbox[0]; int y = spanbox[1]; int w = spanbox[2] - x;
< prev index next >