< prev index next >
src/java.desktop/share/classes/sun/java2d/pipe/ValidatePipe.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1997, 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -124,27 +124,27 @@
sg.fillpipe.fillArc(sg, x, y, width, height, startAngle, arcAngle);
}
}
public void drawPolyline(SunGraphics2D sg,
- int xPoints[], int yPoints[],
+ int[] xPoints, int[] yPoints,
int nPoints) {
if (validate(sg)) {
sg.drawpipe.drawPolyline(sg, xPoints, yPoints, nPoints);
}
}
public void drawPolygon(SunGraphics2D sg,
- int xPoints[], int yPoints[],
+ int[] xPoints, int[] yPoints,
int nPoints) {
if (validate(sg)) {
sg.drawpipe.drawPolygon(sg, xPoints, yPoints, nPoints);
}
}
public void fillPolygon(SunGraphics2D sg,
- int xPoints[], int yPoints[],
+ int[] xPoints, int[] yPoints,
int nPoints) {
if (validate(sg)) {
sg.fillpipe.fillPolygon(sg, xPoints, yPoints, nPoints);
}
}
@@ -170,11 +170,11 @@
if (validate(sg)) {
sg.textpipe.drawGlyphVector(sg, g, x, y);
}
}
public void drawChars(SunGraphics2D sg,
- char data[], int offset, int length,
+ char[] data, int offset, int length,
int x, int y) {
if (validate(sg)) {
sg.textpipe.drawChars(sg, data, offset, length, x, y);
}
}
< prev index next >