Skip to content

Commit edb6cfe

Browse files
committed
Addresses processing/processing-docs#104 and fixes processing/processing-docs#110 by hiding unusable PImage, PShape, and loadShape() constructors
1 parent 65edbbe commit edb6cfe

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

core/src/processing/core/PApplet.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11704,6 +11704,9 @@ public PShape loadShape(String filename) {
1170411704
}
1170511705

1170611706

11707+
/**
11708+
* @nowebref
11709+
*/
1170711710
public PShape loadShape(String filename, String options) {
1170811711
return g.loadShape(filename, options);
1170911712
}

core/src/processing/core/PGraphics.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1635,7 +1635,9 @@ public PShape loadShape(String filename) {
16351635
return loadShape(filename, null);
16361636
}
16371637

1638-
1638+
/**
1639+
* @nowebref
1640+
*/
16391641
public PShape loadShape(String filename, String options) {
16401642
showMissingWarning("loadShape");
16411643
return null;

core/src/processing/core/PImage.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public class PImage implements PConstants, Cloneable {
194194
* To create a new image, use the <b>createImage()</b> function (do not use
195195
* <b>new PImage()</b>).
196196
* ( end auto-generated )
197-
* @webref image:pimage
197+
* @nowebref
198198
* @usage web_application
199199
* @see PApplet#loadImage(String, String)
200200
* @see PApplet#imageMode(int)
@@ -207,6 +207,7 @@ public PImage() {
207207

208208

209209
/**
210+
* @nowebref
210211
* @param width image width
211212
* @param height image height
212213
*/
@@ -224,7 +225,7 @@ public PImage(int width, int height) {
224225
}
225226

226227
/**
227-
*
228+
* @nowebref
228229
* @param format Either RGB, ARGB, ALPHA (grayscale alpha channel)
229230
*/
230231
public PImage(int width, int height, int format) {
@@ -273,6 +274,7 @@ protected void checkAlpha() {
273274
* that you've done the work of making sure a MediaTracker has been used
274275
* to fully download the data and that the img is valid.
275276
*
277+
* @nowebref
276278
* @param img assumes a MediaTracker has been used to fully download
277279
* the data and the img is valid
278280
*/

core/src/processing/core/PShape.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,17 +268,23 @@ public class PShape implements PConstants {
268268
// public float px;
269269
// public float py;
270270

271+
/**
272+
* @nowebref
273+
*/
271274
public PShape() {
272275
this.family = GROUP;
273276
}
274277

275-
/**
276-
* @nowebref
277-
*/
278+
/**
279+
* @nowebref
280+
*/
278281
public PShape(int family) {
279282
this.family = family;
280283
}
281284

285+
/**
286+
* @nowebref
287+
*/
282288
public PShape(PGraphicsJava2D pg, int family) {
283289
this.g = pg;
284290
this.family = family;

0 commit comments

Comments
 (0)