From 1e769b10b262a9093e76bcbc238c9bbdaed6b447 Mon Sep 17 00:00:00 2001 From: alignedleft Date: Sun, 13 May 2012 00:44:57 +0000 Subject: [PATCH] Parameter alignment for scale, link, and sort --- core/src/processing/core/PApplet.java | 18 ++++++++---------- core/src/processing/core/PGraphics.java | 8 +++----- 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index a8c7c40b1..1b9291851 100644 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -2910,8 +2910,8 @@ public class PApplet extends Applet } - public void link(String here) { - link(here, null); + public void link(String url) { + link(url, null); } @@ -2934,8 +2934,8 @@ public class PApplet extends Applet * yet have a standard method for launching URLs. * * @webref input:web - * @param url complete url as a String in quotes - * @param target name of the window to load the URL as a string in quotes + * @param url the complete URL, as a String in quotes + * @param target the name of the window in which to load the URL, as a String in quotes * */ public void link(String url, String target) { @@ -6696,7 +6696,7 @@ public class PApplet extends Applet * * ( end auto-generated ) * @webref data:array_functions - * @param what array to sort + * @param list array to sort * @see PApplet#reverse(boolean[]) */ static public byte[] sort(byte list[]) { @@ -11721,13 +11721,13 @@ public class PApplet extends Applet * * @webref transform * @param s percentage to scale the object - * @see PGraphics#popMatrix() * @see PGraphics#pushMatrix() + * @see PGraphics#popMatrix() + * @see PGraphics#translate(float, float, float) * @see PGraphics#rotate(float) * @see PGraphics#rotateX(float) * @see PGraphics#rotateY(float) * @see PGraphics#rotateZ(float) - * @see PGraphics#translate(float, float, float) */ public void scale(float s) { if (recorder != null) recorder.scale(s); @@ -11743,7 +11743,7 @@ public class PApplet extends Applet * scaled by 1, since there's no way to know what else to scale it by. * * @param x percentage to scale the object in the x-axis - * @param y percentage to scale the objects in the y-axis + * @param y percentage to scale the object in the y-axis */ public void scale(float x, float y) { if (recorder != null) recorder.scale(x, y); @@ -11752,8 +11752,6 @@ public class PApplet extends Applet /** - * @param x percentage to scale the object in the x-axis - * @param y percentage to scale the objects in the y-axis * @param z percentage to scale the object in the z-axis */ public void scale(float x, float y, float z) { diff --git a/core/src/processing/core/PGraphics.java b/core/src/processing/core/PGraphics.java index 2f4cbc03f..68d0a52a4 100644 --- a/core/src/processing/core/PGraphics.java +++ b/core/src/processing/core/PGraphics.java @@ -4609,13 +4609,13 @@ public class PGraphics extends PImage implements PConstants { * * @webref transform * @param s percentage to scale the object - * @see PGraphics#popMatrix() * @see PGraphics#pushMatrix() + * @see PGraphics#popMatrix() + * @see PGraphics#translate(float, float, float) * @see PGraphics#rotate(float) * @see PGraphics#rotateX(float) * @see PGraphics#rotateY(float) * @see PGraphics#rotateZ(float) - * @see PGraphics#translate(float, float, float) */ public void scale(float s) { showMissingWarning("scale"); @@ -4630,7 +4630,7 @@ public class PGraphics extends PImage implements PConstants { * scaled by 1, since there's no way to know what else to scale it by. * * @param x percentage to scale the object in the x-axis - * @param y percentage to scale the objects in the y-axis + * @param y percentage to scale the object in the y-axis */ public void scale(float x, float y) { showMissingWarning("scale"); @@ -4638,8 +4638,6 @@ public class PGraphics extends PImage implements PConstants { /** - * @param x percentage to scale the object in the x-axis - * @param y percentage to scale the objects in the y-axis * @param z percentage to scale the object in the z-axis */ public void scale(float x, float y, float z) {