Changing doclets for exceptions to the PGraphics class and fixing comments

This commit is contained in:
Anadroid
2021-06-15 12:19:45 +02:00
parent 392712380d
commit 7c2e472720
4 changed files with 13 additions and 7 deletions
+4 -4
View File
@@ -259,13 +259,13 @@ public class PApplet implements PConstants {
/**
*
* When <b>pixelDensity(2)</d> is used to make use of a high resolution
* When <b>pixelDensity(2)</b> is used to make use of a high resolution
* display (called a Retina display on OS X or high-dpi on Windows and
* Linux), the width and height of the sketch do not change, but the
* number of pixels is doubled. As a result, all operations that use pixels
* (like <b>loadPixels()</b>, <b>get()</b>, <b>set()</b>, etc.) happen
* in this doubled space. As a convenience, the variables <b>pixelWidth</b>
* and <b>pixelHeight<b> hold the actual width and height of the sketch
* and <b>pixelHeight</b> hold the actual width and height of the sketch
* in pixels. This is useful for any sketch that uses the <b>pixels[]</b>
* array, for instance, because the number of elements in the array will
* be <b>pixelWidth*pixelHeight</b>, not <b>width*height</b>.
@@ -282,13 +282,13 @@ public class PApplet implements PConstants {
/**
*
* When <b>pixelDensity(2)</d> is used to make use of a high resolution
* When <b>pixelDensity(2)</b> is used to make use of a high resolution
* display (called a Retina display on OS X or high-dpi on Windows and
* Linux), the width and height of the sketch do not change, but the
* number of pixels is doubled. As a result, all operations that use pixels
* (like <b>loadPixels()</b>, <b>get()</b>, <b>set()</b>, etc.) happen
* in this doubled space. As a convenience, the variables <b>pixelWidth</b>
* and <b>pixelHeight<b> hold the actual width and height of the sketch
* and <b>pixelHeight</b> hold the actual width and height of the sketch
* in pixels. This is useful for any sketch that uses the <b>pixels[]</b>
* array, for instance, because the number of elements in the array will
* be <b>pixelWidth*pixelHeight</b>, not <b>width*height</b>.
@@ -11,7 +11,7 @@ REFERENCES_OUT_PATH=../../../processing-website/content/references/translations/
echo "[REFERENCE GENERATOR] Source Path :: $PROCESSING_SRC_PATH"
echo "[REFERENCE GENERATOR] Library Path :: $PROCESSING_LIB_PATH"
# You can pass one argument "sound" or "video" (without the "") to generate those libraries separately
# You can pass one argument "sound" or "video" to generate those libraries separately
# or "processing" to generate the core without the sound and video libraries
# if there is no argument it will generate everything
if [ $# -eq 0 ]
@@ -77,8 +77,10 @@ public class ClassWriter extends BaseWriter {
for (MethodDoc m : classDoc.methods()) {
if(needsWriting(m)){
MethodWriter.write((HashMap<String, String>)vars.clone(), m, classname, folderName);
methodSet.add(getPropertyInfo(m));
if (!classname.equals("PGraphics") || getName(m).equals("beginDraw()") || getName(m).equals("endDraw()")) {
MethodWriter.write((HashMap<String, String>)vars.clone(), m, classname, folderName);
methodSet.add(getPropertyInfo(m));
}
}
}
@@ -35,6 +35,8 @@ public class MethodWriter extends BaseWriter {
String category = getCategory(tags[0]);
String subcategory = getSubcategory(tags[0]);
if (!classname.equals("PGraphics") || getName(doc).equals("beginDraw()") || getName(doc).equals("endDraw()")) {
try
{
methodJSON.put("type", "method");
@@ -72,6 +74,8 @@ public class MethodWriter extends BaseWriter {
} catch (IOException e) {
e.printStackTrace();
}
}
}
}