From 4e467010d67118f46a73abbe67181e366f61a318 Mon Sep 17 00:00:00 2001 From: alignedleft Date: Sun, 13 May 2012 02:24:34 +0000 Subject: [PATCH] Parameter alignment for matchAll, split, splitTokens, saveStream, applyMatrix, and nfp --- core/src/processing/core/PApplet.java | 34 +++++++++++-------------- core/src/processing/core/PGraphics.java | 1 + 2 files changed, 16 insertions(+), 19 deletions(-) diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index 1b9291851..6aeef9d95 100644 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -6300,9 +6300,6 @@ public class PApplet extends Applet *

* Note that unlike other api methods, this will not automatically * compress or uncompress gzip files. - * - * @param target the file to write to - * @param source location to read from (a filename, path, or URL) */ public boolean saveStream(File target, String source) { return saveStream(target, createInputRaw(source)); @@ -7552,7 +7549,7 @@ public class PApplet extends Applet * * ( end auto-generated ) * @webref data:string_functions - * @param value the string to be split + * @param value the String to be split * @param delim list of individual characters that will be used as separators * @see PApplet#split(String, String) * @see PApplet#join(String[], String) @@ -7601,7 +7598,7 @@ public class PApplet extends Applet * ( end auto-generated ) * @webref data:string_functions * @usage web_application - * @param value string to be split + * @param value the String to be split * @param delim the character or String used to separate the data */ static public String[] split(String value, char delim) { @@ -7764,7 +7761,7 @@ public class PApplet extends Applet * * ( end auto-generated ) * @webref data:string_functions - * @param what the String to search inside + * @param what the String to be searched * @param regexp the regexp to be used for matching * @see PApplet#match(String, String) * @see PApplet#split(String, String) @@ -8316,7 +8313,7 @@ public class PApplet extends Applet return formatted; } -/** + /** * ( begin auto-generated from nf.xml ) * * Utility function for formatting numbers into strings. There are two @@ -8330,13 +8327,14 @@ public class PApplet extends Applet * functions. * * ( end auto-generated ) - * @webref data:string_functions - * @param num the number(s) to format - * @param digits number of digits to pad with zero - * @see PApplet#nfs(float, int, int) - * @see PApplet#nfp(float, int, int) - * @see PApplet#nfc(float, int) - */ + * @webref data:string_functions + * @param num the number(s) to format + * @param digits number of digits to pad with zero + * @see PApplet#nfs(float, int, int) + * @see PApplet#nfp(float, int, int) + * @see PApplet#nfc(float, int) + * @see PApplet#int(float) + */ static public String nf(int num, int digits) { if ((int_nf != null) && (int_nf_digits == digits) && @@ -8456,7 +8454,7 @@ public class PApplet extends Applet * * ( end auto-generated ) * @webref data:string_functions - * @param num[] the number(s) to format + * @param num the number(s) to format * @param digits number of digits to pad with zeroes * @see PApplet#nf(float, int, int) * @see PApplet#nfs(float, int, int) @@ -8572,7 +8570,6 @@ public class PApplet extends Applet } /** - * @param num[] the number(s) to format * @param left the number of digits to the left of the decimal point * @param right the number of digits to the right of the decimal point */ @@ -8583,9 +8580,7 @@ public class PApplet extends Applet } return formatted; } -/** - * @param num the number(s) to format - */ + static public String nfp(float num, int left, int right) { return (num < 0) ? nf(num, left, right) : ('+' + nf(num, left, right)); } @@ -11901,6 +11896,7 @@ public class PApplet extends Applet /** + * @param n03 numbers which define the 4x4 matrix to be multiplied * @param n13 numbers which define the 4x4 matrix to be multiplied * @param n20 numbers which define the 4x4 matrix to be multiplied * @param n21 numbers which define the 4x4 matrix to be multiplied diff --git a/core/src/processing/core/PGraphics.java b/core/src/processing/core/PGraphics.java index 68d0a52a4..671c612be 100644 --- a/core/src/processing/core/PGraphics.java +++ b/core/src/processing/core/PGraphics.java @@ -4790,6 +4790,7 @@ public class PGraphics extends PImage implements PConstants { /** + * @param n03 numbers which define the 4x4 matrix to be multiplied * @param n13 numbers which define the 4x4 matrix to be multiplied * @param n20 numbers which define the 4x4 matrix to be multiplied * @param n21 numbers which define the 4x4 matrix to be multiplied