< prev index next >

src/java.desktop/share/classes/java/awt/Graphics.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1995, 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) 1995, 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
*** 694,704 **** * @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 abstract void drawPolyline(int xPoints[], int yPoints[], int nPoints); /** * Draws a closed polygon defined by * arrays of <i>x</i> and <i>y</i> coordinates. --- 694,704 ---- * @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 abstract void drawPolyline(int[] xPoints, int[] yPoints, int nPoints); /** * Draws a closed polygon defined by * arrays of <i>x</i> and <i>y</i> coordinates.
*** 716,726 **** * @param yPoints a an array of {@code y} coordinates. * @param nPoints a the total number of points. * @see java.awt.Graphics#fillPolygon * @see java.awt.Graphics#drawPolyline */ ! public abstract void drawPolygon(int xPoints[], int yPoints[], int nPoints); /** * Draws the outline of a polygon defined by the specified * {@code Polygon} object. --- 716,726 ---- * @param yPoints a an array of {@code y} coordinates. * @param nPoints a the total number of points. * @see java.awt.Graphics#fillPolygon * @see java.awt.Graphics#drawPolyline */ ! public abstract void drawPolygon(int[] xPoints, int[] yPoints, int nPoints); /** * Draws the outline of a polygon defined by the specified * {@code Polygon} object.
*** 750,760 **** * @param xPoints a an array of {@code x} coordinates. * @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) */ ! public abstract void fillPolygon(int xPoints[], int yPoints[], int nPoints); /** * Fills the polygon defined by the specified Polygon object with * the graphics context's current color. --- 750,760 ---- * @param xPoints a an array of {@code x} coordinates. * @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) */ ! public abstract void fillPolygon(int[] xPoints, int[] yPoints, int nPoints); /** * Fills the polygon defined by the specified Polygon object with * the graphics context's current color.
*** 816,826 **** * {@code offset+length} is greater than the length of the * {@code data} array. * @see java.awt.Graphics#drawBytes * @see java.awt.Graphics#drawString */ ! public void drawChars(char data[], int offset, int length, int x, int y) { drawString(new String(data, offset, length), x, y); } /** * Draws the text given by the specified byte array, using this --- 816,826 ---- * {@code offset+length} is greater than the length of the * {@code data} array. * @see java.awt.Graphics#drawBytes * @see java.awt.Graphics#drawString */ ! public void drawChars(char[] data, int offset, int length, int x, int y) { drawString(new String(data, offset, length), x, y); } /** * Draws the text given by the specified byte array, using this
*** 842,852 **** * is greater than the length of the {@code data} array. * @see java.awt.Graphics#drawChars * @see java.awt.Graphics#drawString */ @SuppressWarnings("deprecation") ! public void drawBytes(byte data[], int offset, int length, int x, int y) { drawString(new String(data, 0, offset, length), x, y); } /** * Draws as much of the specified image as is currently available. --- 842,852 ---- * is greater than the length of the {@code data} array. * @see java.awt.Graphics#drawChars * @see java.awt.Graphics#drawString */ @SuppressWarnings("deprecation") ! public void drawBytes(byte[] data, int offset, int length, int x, int y) { drawString(new String(data, 0, offset, length), x, y); } /** * Draws as much of the specified image as is currently available.
< prev index next >