< prev index next >

src/java.desktop/share/classes/sun/print/PeekGraphics.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1998, 2017, 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) 1998, 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
*** 745,755 **** * @param yPoints an array of <i>y</i> points * @param nPoints the total number of points * @see java.awt.Graphics#drawPolygon(int[], int[], int) * @since 1.1 */ ! public void drawPolyline(int xPoints[], int yPoints[], int nPoints) { if (nPoints > 0) { int x = xPoints[0]; int y = yPoints[0]; --- 745,755 ---- * @param yPoints an array of <i>y</i> points * @param nPoints the total number of points * @see java.awt.Graphics#drawPolygon(int[], int[], int) * @since 1.1 */ ! public void drawPolyline(int[] xPoints, int[] yPoints, int nPoints) { if (nPoints > 0) { int x = xPoints[0]; int y = yPoints[0];
*** 780,790 **** * @param nPoints a the total number of points. * @see java.awt.Graphics#fillPolygon * @see java.awt.Graphics#drawPolyline * @since 1.0 */ ! public void drawPolygon(int xPoints[], int yPoints[], int nPoints) { if (nPoints > 0) { drawPolyline(xPoints, yPoints, nPoints); drawLine(xPoints[nPoints - 1], yPoints[nPoints - 1], xPoints[0], yPoints[0]); --- 780,790 ---- * @param nPoints a the total number of points. * @see java.awt.Graphics#fillPolygon * @see java.awt.Graphics#drawPolyline * @since 1.0 */ ! public void drawPolygon(int[] xPoints, int[] yPoints, int nPoints) { if (nPoints > 0) { drawPolyline(xPoints, yPoints, nPoints); drawLine(xPoints[nPoints - 1], yPoints[nPoints - 1], xPoints[0], yPoints[0]);
*** 811,821 **** * @param yPoints a an array of {@code y} coordinates. * @param nPoints a the total number of points. * @see java.awt.Graphics#drawPolygon(int[], int[], int) * @since 1.0 */ ! public void fillPolygon(int xPoints[], int yPoints[], int nPoints) { if (nPoints > 0) { int minX = xPoints[0]; int minY = yPoints[0]; int maxX = xPoints[0]; --- 811,821 ---- * @param yPoints a an array of {@code y} coordinates. * @param nPoints a the total number of points. * @see java.awt.Graphics#drawPolygon(int[], int[], int) * @since 1.0 */ ! public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints) { if (nPoints > 0) { int minX = xPoints[0]; int minY = yPoints[0]; int maxX = xPoints[0];
< prev index next >